> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scrapebadger.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Markets

> List the Gumtree sites this API covers — UK, Australia and South Africa — with their currency, distance unit, page size and id format.

List the Gumtree sites this API covers. Pass a market's `market` code as the
`market` parameter of every other Gumtree endpoint. This endpoint is **free**.

**Credits:** 0

> [!NOTE]
>
> The three markets are separate platforms. Category, location and listing ids
> from one market mean nothing in another — always pair an id with the
> `market` it came from.

## Authorization

**X-API-Key** `string` *required*

Your ScrapeBadger API key.

## Response

**result\_count** `integer`

Number of markets.

**markets** `MarketInfo[]`

Supported markets.

**MarketInfo**

**market** `string`

`uk`, `au` or `za` — the `market` parameter value.

**domain** `string`

e.g. `www.gumtree.com.au`.

**country** `string`

ISO country code, e.g. `AU`.

**currency** `string`

`GBP`, `AUD` or `ZAR`.

**distance\_unit** `string`

Unit of the `/search``distance` parameter — `miles`, `km`, or `null` when the market has no radius search.

**page\_size** `integer`

Organic results per `/search` page (featured ads come on top).

**id\_format** `string`

How `/search` takes `category` and `location`.

## Example

```bash cURL theme={null}
curl "https://scrapebadger.com/v1/gumtree/markets" \
  -H "X-API-Key: YOUR_API_KEY"
```

```javascript Node.js theme={null}
const res = await fetch("https://scrapebadger.com/v1/gumtree/markets", {
  headers: { "X-API-Key": process.env.SCRAPEBADGER_API_KEY },
});
const { markets } = await res.json();
```

```python Python theme={null}
import requests

res = requests.get(
    "https://scrapebadger.com/v1/gumtree/markets",
    headers={"X-API-Key": "YOUR_API_KEY"},
)
markets = res.json()["markets"]
```

```json Response theme={null}
{
  "result_count": 3,
  "markets": [
    {
      "market": "uk",
      "domain": "www.gumtree.com",
      "country": "GB",
      "currency": "GBP",
      "distance_unit": "miles",
      "page_size": 25,
      "id_format": "slugs: category 'cars', location 'london' or a UK postcode"
    },
    {
      "market": "au",
      "domain": "www.gumtree.com.au",
      "country": "AU",
      "currency": "AUD",
      "distance_unit": "km",
      "page_size": 24,
      "id_format": "numeric ids from /categories and /locations (market=au)"
    },
    {
      "market": "za",
      "domain": "www.gumtree.co.za",
      "country": "ZA",
      "currency": "ZAR",
      "distance_unit": null,
      "page_size": 20,
      "id_format": "refs like 'p6dnh' from /categories and /locations (market=za)"
    }
  ]
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.