API Sports Football Get Countries

1 credits/call
ae_api_sports_football_get_countries

Search for countries and retrieve their codes in API-Sports Football.

Entertainment
1 credits/call

Pricing

1 credits/call
ConditionCharge
Each call1 credits/call

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
codestringNoCountry code used by API-Sports Football. Some football countries use subdivision-style codes, for example England is GB-ENG, not GB. If you have a country name, prefer search.—
namestringNoFilter by name.—
searchstringNoSearch countries by name, for example England.—

Invocation example

Copy the request and explore its response example.

POST/agent-api/v1/tool/executeX-Api-Key
Request coderequest.sh
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_api_sports_football_get_countries' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {}
}'
Response exampleresponse.json
JSONPartial content
{
  "errors": [],
  "get": "countries",
  "paging": {
    "current": 1,
    "total": 1
  },
  "response": [
    {
      "code": "AL",
      "flag": "https://media.api-sports.io/flags/al.svg",
      "name": "Albania"
    }
  ],
  "results": 171
}

This example shows part of the response. Copied content is valid JSON.