Countries
This endpoint allows you to retrieve the countries.
You can use the alpha field to get the country.
Multi-language: This feature allows the user to manually change the language of the API response by adding value to the
langattribute. Example:lang=en.
Pagination: The endpoint uses an offset and limit system. Specify the offset and limit parameters to fetch the desired range of results. The maximum and default number of results per request is 50.
Update Period: The endpoint is updated several times per day.
Recommended Calls: Limit calls to 1 per week.
You can get the image of the country by calling the following url: https://images.sportmicro.com/{hash_image}.png
Use Cases
Get countrieshttps://badminton.sportmicro.com/countries
Get country based on the idhttps://badminton.sportmicro.com/countries?id=eq.{id}
Get countries based on the alphahttps://badminton.sportmicro.com/countries?alpha=eq.{alpha}
Query Parameters
- id integer
The id of the country
Example: eq.1 - alpha character varying
The alpha name of the country
Example: eq.CF - offset string
Default value:
0Limiting and Pagination
Example: 0 - limit string
Default value:
50Limiting and Pagination
Example: 50 - lang string
Default value:
enMulti-language
Example: en
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema array
- id integer
The id of the country
Note: This is a Primary Key.
- name text
The name of the country
- alpha character varying
Possible values:
<= 2 charactersThe alpha name of the country
- hash_image character varying
Possible values:
<= 64 charactersThe name of the image
[
{
"id": 1,
"name": "Central African Republic",
"alpha": "CF",
"hash_image": "5c62e0b4977585c1b8aecfb35a731f2f6669e3c814cd6feab19ee492d56499f1"
}
]