API-FOOTBALL

FREEMIUM
Verified
By API-SPORTS | Updated 11일 전 | Sports
Popularity

10 / 10

Latency

370ms

Service Level

100%

Health Check

N/A

Back to All Discussions

Is the "Status" Endpoint Still Working?

Rapid account: Jeximps
jeximps
12일 전

Dear Support Team,

I am writing to inquire about an issue I am experiencing with your API service on RapidAPI.com. In my application, there is a field where I need to enter the API from your service, along with a “Check” button that should utilize the https://api-football-v1.p.rapidapi.com/v3/status endpoint to send a request and retrieve data about the account (its type, limits, etc.) to verify that the API is correctly configured and can be used.

However, I am unable to retrieve this information, and I receive the following response:

Response Status Code: 404
Response Content: {“message”:“Endpoint ‘/v3/status’ does not exist”}

According to the documentation, this endpoint should exist.

I would greatly appreciate if you could assist me in resolving this issue.

Here is a snippet of my code that attempts to retrieve the API information:

def check_api_key(e):
api_key = api_key_input.value
url = "https://api-football-v1.p.rapidapi.com/v3/status"
headers = {
“X-RapidAPI-Host”: “api-football-v1.p.rapidapi.com”,
“X-RapidAPI-Key”: api_key
}

    try:
        response = requests.request("GET", url, headers=headers)
        print(f"Request URL: {response.url}")
        print(f"Request Headers: {response.request.headers}")
        print(f"Response Status Code: {response.status_code}")
        print(f"Response Content: {response.text}")

        if response.status_code == 200:
            data = response.json()
            print(f"Response JSON: {json.dumps(data, indent=2)}")

Thank you for your assistance in addressing this matter. I look forward to your prompt response.
Best regards,

Rapid account: Api Sports
api-sports Commented 12일 전

Hi

This endpoint is only for users that have subscribe on our dashboard and not via RapidAPI.

==> https://www.api-football.com/documentation-v3#section/Authentication/API-SPORTS-Account

Best

Join in the discussion - add comment below:

Login / Signup to post new comments