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.
1 credits/call
Pricing
1 credits/call
| Condition | Charge |
|---|---|
| Each call | 1 credits/call |
Parameters
Optional parameters use the platform defaults when omitted.
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
code | string | No | Country 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. | — |
name | string | No | Filter by name. | — |
search | string | No | Search countries by name, for example England. | — |
Invocation example
Copy the request and explore its response example.
POST
/agent-api/v1/tool/executeX-Api-KeyRequest 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
{
"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.

