List countries
Request
- Base URLhttps://gorest.co.in/public/v3
- URLhttps://gorest.co.in/public/v3/countries
- Authnone required
Query parameters
Items on one page.
The cursor of the next page, from meta.next_cursor or the Link header. Treat it as opaque; it works only with the same query.
Offset paging, 1 based, at most 10,000. Cannot be sent with page[after]. Pages can shift while you write.
true adds meta.total to a cursor page (it costs a count).
Case-insensitive text search over the resource's text fields.
filter[region]=Asia,Europe (any of the UN M49 continents), filter[currency_code]=INR (either case). search matches the codes and the name.
One field; a leading - sorts descending. Default name.
fields[countries]=name,currency_code returns only those fields; code is always there.
currency adds the currency of each item.
Headers
An ETag from an earlier answer; an unchanged item answers 304 with no body.
Response
One page of countries.
Example response
{
"data": [
{
"alpha3": "IND",
"calling_code": "+91",
"code": "IN",
"currency": {
"code": "INR",
"minor_unit": 2,
"name": "Indian Rupee",
"symbol": "₹"
},
"currency_code": "INR",
"name": "India",
"numeric_code": "356"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.