Reference
Get a country
get/countries/{code}
Request
- Base URLhttps://gorest.co.in/public/v3
- URLhttps://gorest.co.in/public/v3/countries/{code}
- Authnone required
Query parameters
fields[countries]=name,currency_code returns only those fields; code is always there.
include'currency'
currency adds the currency of each item.
Headers
If-None-Matchstring
An ETag from an earlier answer; an unchanged item answers 304 with no body.
Response
The item.
Example response
{
"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.