Returns countries available in the store. Use ?expand=market to include market details (currency, locale, tax_inclusive).
JavaScript
import { createClient } from '@spree/sdk' const client = createClient({ baseUrl: 'https://your-store.com', publishableKey: '<api-key>', }) const countries = await client.countries.list()
{ "data": [ { "iso": "DE", "iso3": "IS19", "name": "Germany", "states_required": false, "zipcode_required": true }, { "iso": "US", "iso3": "USA", "name": "United States of America", "states_required": true, "zipcode_required": true } ] }
Publishable API key for store access
Comma-separated list of fields to include (e.g., name,slug,price). id is always included.
countries found
Show child attributes
Was this page helpful?