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:
BEL
namestring
Example:
Belgium
hasRegistryboolean
Example:
true
endonymsobject
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_request
titlestring
Example:
Bad request
messagestring
Example:
One or more of the inputs were invalid
reasonsstring[]
{
"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:
forbidden
titlestring
Example:
Forbidden
messagestring
Example:
Access is denied due to missing scope permissions
{
"error": {
"code": "forbidden",
"title": "Forbidden",
"message": "Access is denied due to missing scope permissions"
}
}