[Python] How can i request data standings data with /league-standings endpoint from fbrapi.com?

Discussão em 'Python' iniciado por Stack, Junho 28, 2025.

  1. Stack

    Stack Membro Participativo

    If anyone has any experience in working with fbrapi.com to request data I would like some help.

    I am trying to request the data for League Standings but I am keep getting an internal server error. Other endpoints have worked so far but I do not know how to reach the team managing the api to seek support. There is no contact us section anywhere visible in the page.

    For reference below is the code chunk I run.

    import time
    import pandas as pd
    import json

    response = requests.post('https://fbrapi.com/generate_api_key')
    api_key = response.json()['api_key']
    print("API Key:", api_key)

    url = "https://fbrapi.com/league-standings"
    params = {"league_id": "9",
    "season_id": "2023-2024"
    }
    headers = {"X-API-Key": api_key}

    response = requests.get(url, params=params, headers=headers)
    print(response.json())


    The error message I get is the one below:

    {'message': 'Internal Server Error'}

    Thanks a lot in advance!

    Continue reading...

Compartilhe esta Página