Returns a single country by ISO code. Supports ?expand=states for address forms and ?expand=market for market details.
JavaScript
import { createSpreeClient } from '@spree/sdk' const client = createSpreeClient({ baseUrl: 'https://your-store.com', publishableKey: '<api-key>', }) const country = await client.store.countries.get('US')
{ "iso": "US", "iso3": "USA", "name": "United States of America", "states_required": true, "zipcode_required": true }
Publishable API key for store access
Country ISO 3166-1 alpha-2 code (e.g., "US", "DE")
country found
Was this page helpful?