List countries
GET
/v1/countries
curl "https://api.summerbase.com/v1/countries" \ -H "Authorization: Bearer sb_..."const response = await fetch("https://api.summerbase.com/v1/countries", { headers: { Authorization: "Bearer sb_...", },})const data = await response.json()Every country, by name.
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”limit
integer
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.
Response
Section titled “Response”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}