> For the complete Lynkow documentation index in agent-friendly format, see [llms.txt](/llms.txt).

# List active markets

**Published**: 2026-11-30
**Category**: Commerce

## `GET /markets`

**List active markets**

Lists the site's active markets, oldest first, not paginated, to build a country
selector. Draft markets are left out.

`meta.checkoutCountries` lists the delivery countries checkout accepts: the active
markets' countries, else the EU member states when the site charges VAT, else `null`
for any country.

Errors: 404 when markets are not enabled on the site.

> **Note:** Available only on sites with e-commerce enabled.

### Responses

| Status | Description |
| --- | --- |
| `200` | Successful response |
| `401` | Missing or invalid storefront publishable key |
| `402` | The site subscription does not currently permit this operation |
| `403` | The storefront key origin is not allowed |
| `404` | Site, resource, or commerce feature not found |


> **Notes:** Every visitor reads the same response. Cache: `Cache-Control: public, max-age=0, s-maxage=300`. Rate-limit bucket: general.

### SDK

```typescript
import { createClient } from 'lynkow'

const lynkow = createClient({
  siteId: process.env.LYNKOW_SITE_ID!,
  publishableKey: process.env.LYNKOW_PK,
})

const { data: markets } = await lynkow.markets.list()

// The market a buyer's country belongs to, if any.
const market = markets.find((m) => m.countries.includes('BE'))
if (market) {
  console.log(market.name, market.currency, market.defaultLocale)
} else {
  // The site does not deliver to that country.
}
```

### Examples

```curl
curl "https://api.lynkow.com/storefront/{siteId}/markets" \
  -H "X-Lynkow-Pk: lkw_pk_..."
```

```javascript
const res = await fetch(`https://api.lynkow.com/storefront/${siteId}/markets`, {
  headers: { 'X-Lynkow-Pk': publishableKey },
})
const { data } = await res.json()
// One country selector entry per code of every market
const countries = data.flatMap((market) => market.countries)
```

### Response Example

```json
{
  "data": [
    {
      "id": "mkt_7wnrr7kd997qq6he3herwzvaj0",
      "name": "France",
      "countries": [
        "FR"
      ],
      "locales": [
        "fr"
      ],
      "defaultLocale": "fr",
      "currency": "EUR"
    },
    {
      "id": "mkt_01j9pc5a2b3c4d5e6f7g8h9jka",
      "name": "Germany and Austria",
      "countries": [
        "AT",
        "DE"
      ],
      "locales": [
        "de",
        "en"
      ],
      "defaultLocale": "de",
      "currency": "EUR"
    }
  ],
  "meta": {
    "checkoutCountries": [
      "AT",
      "DE",
      "FR"
    ]
  }
}
```

---