List available Countries
GET/v1/countries
This endpoint will return all the Countries that Goodstack currently supports. If hasRegistry is true, it will return the subset of Countries that Goodstack currently has nonprofit data for.
Request​
Query Parameters
hasRegistry boolean
Only return Countries with Registries
Responses​
- 200
- 400
- 401
- 403
Successfully retrieved Countries
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
data
object[]
codestring
Example:
BELnamestring
Example:
BelgiumhasRegistryboolean
Example:
trueendonymsobject
Example:
{"de":"Belgien","fr":"Belgique","nl":"België"}objectstring
Example:
Country{
"data": [
{
"code": "BEL",
"name": "Belgium",
"hasRegistry": true,
"endonyms": {
"de": "Belgien",
"fr": "Belgique",
"nl": "België"
}
}
],
"object": "Country"
}
Error validating inputs
- application/json
- Schema
- Example (from schema)
Schema
error
object
codestring
Example:
bad_requesttitlestring
Example:
Bad requestmessagestring
Example:
One or more of the inputs were invalidreasonsstring[]
{
"error": {
"code": "bad_request",
"title": "Bad request",
"message": "One or more of the inputs were invalid",
"reasons": [
"pageSize must be greater than or equal to 0"
]
}
}
Unauthorized
Forbidden (scope)
- application/json
- Schema
- Example (from schema)
Schema
error
object
codestring
Example:
forbiddentitlestring
Example:
Forbiddenmessagestring
Example:
Access is denied due to missing scope permissions{
"error": {
"code": "forbidden",
"title": "Forbidden",
"message": "Access is denied due to missing scope permissions"
}
}