Get Countries
GET https://{{host}}/v3/countries?filter[iso]=GB
Returns a list of countries. Pagination is disabled.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
filter[iso] | string | string - Filters by country iso field. |
- Allow blank - Yes.
- Allow array - Yes. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string | ||
Content-Type | string | ||
Api-Key | string |
RESPONSES
status: OK
{"data":[{"id":"9c56fe0f-eff0-4742-85f6-24868959344a","type":"countries","attributes":{"name":"United Kingdom","prefix":"44","iso":"GB"}},{"id":"5d3d7640-16d2-4dc0-9aca-408789fbefc6","type":"countries","attributes":{"name":"United States","prefix":"1","iso":"US"}}]}