Skip to content

List countries

GET
/v1/countries
curl "https://api.summerbase.com/v1/countries" \
-H "Authorization: Bearer sb_..."

Every country, by name.

limit
integer
default: 20 >= 1 <= 100

How many records to return, 1 to 100. Defaults to 20.

cursor
string

The next_cursor of the previous page, to read the page after it.

include_total_count
boolean

Whether to add total_count, how many records match altogether. On the first page only: it is the same number on every page of one list, so keep the first page’s, and it is refused beside a cursor.

Returns a list of country objects, a page at a time. See Pagination.

Media typeapplication/json

Example

{
"data": [
{
"code": "US",
"name": "United States",
"object": "country"
}
],
"has_more": false,
"next_cursor": null,
"object": "list",
"total_count": 1
}