# Listing ids for sitemaps

Source: https://help.ruuster.com/idx/listings-ids

> Walk every listing your boards let you show, a page at a time, with ids, slugs and modification times, to build your listing sitemap.

```http
GET https://idx.ruuster.com/v1/listings/ids
```

secret key only · 5 units · never cached

Every listing in your key's scope, a page at a time, each row with its `id`, `slug`, `mlsNumber`,
`mls`, `updatedAt` and `modifiedAt`. It is the source for your listing sitemap and for a full resync.

## What to know

- **Secret key only,** from your server.
- Follow `nextCursor` until it is null. `limit` is up to 1,000, and 500 when you leave it out.
- Use `modifiedAt` as the sitemap's `lastmod`. `updatedAt` also moves when nothing a page shows changed.
- A cursor is tied to your boards. When they change, the API refuses it and you start the walk again.
- Over 50,000 listings, split the sitemap. [SEO and AI answers](https://help.ruuster.com/idx/guide-seo-ai-answers), step 5.

## Query parameters

| Name | Type | Description |
|---|---|---|
| `cursor` | string | The nextCursor of the previous page (icur_…). A cursor is bound to this key's boards: when they change it is refused and the sitemap restarts. |
| `limit` | integer 1 to 1000, default 500 | Listings per page (1 to 1000). |

## Response

The answer is `{ ok: true, data, meta }`. These are the fields of `data`; `meta` carries `brokerageId`, `freshness.asOf`, `mls` (each board's display rules) and `canonical`.

| Field | Type | Description |
|---|---|---|
| `listings` | array of object |  |
| `listings[].id` | string | The listing's platform UUID: the API id (never an MLS number). |
| `listings[].slug` | string | The permanent URL slug, {address-slug}-{id}, or just {id} when the address is hidden. Build the page URL from it (your /homes/{slug}). |
| `listings[].updatedAt` | string | When the platform last wrote the listing's row (any write, no-op re-saves included): use it as the sitemap's lastmod. modifiedAt says when the MLS last changed the listing. |
| `listings[].mlsNumber` | string or null | The MLS number as the board prints it, when known. |
| `listings[].mls` | string | The board's MLS id (the id a changes scope_removed row names). |
| `listings[].modifiedAt` | string or null | When the MLS last modified the listing (its modificationTimestamp), ISO 8601 UTC; null when the board sends none. A hint: updatedAt also moves when the platform re-saves a listing without changing anything a page shows. |
| `nextCursor` | string or null | Pass as cursor for the next page; null at the end. 400 invalid_cursor when the boards in scope changed (start again), 410 after 30 days. |
| `asOf` | string | When this page was read. |

## Errors

These are the error codes this endpoint can answer. Every error has the same body; [Errors](https://help.ruuster.com/idx/reference-errors) explains each code and what to show.

`invalid_cursor`, `invalid_parameter`, `secret_key_in_url`, `invalid_credentials`, `missing_credentials`, `payment_required`, `access_revoked`, `brokerage_not_enabled`, `secret_key_in_browser`, `secret_key_required`, `cursor_expired`, `daily_quota_exceeded`, `rate_limited`, `internal_error`, `api_paused`, `source_unavailable`

## Example request

cURL:

```bash
curl -s -G "https://idx.ruuster.com/v1/listings/ids" \
  --data-urlencode limit=500 \
  -H "Authorization: Bearer $IDX_SECRET_KEY"
```

TypeScript:

```typescript
import { createClient } from "@ruuster/idx";

const idx = createClient({ secretKey: process.env.IDX_SECRET_KEY });

const r = await idx.ids({
  limit: 500,
});
if (!r.ok) throw new Error(`${r.error.code}: ${r.error.message}`);
console.log(r.data);
```

Python:

```python
import os

import requests

res = requests.get(
    "https://idx.ruuster.com/v1/listings/ids",
    params={
        "limit": "500",
    },
    headers={"Authorization": "Bearer " + os.environ["IDX_SECRET_KEY"]},
    timeout=30,
)
body = res.json()
if not body["ok"]:
    raise RuntimeError(body["error"]["code"] + ": " + body["error"]["message"])
print(body["data"])
```

PHP:

```php
<?php

$query = http_build_query([
    'limit' => '500',
], '', '&', PHP_QUERY_RFC3986);
$ch = curl_init('https://idx.ruuster.com/v1/listings/ids' . '?' . $query);
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . getenv('IDX_SECRET_KEY')],
    CURLOPT_TIMEOUT => 30,
]);
$body = json_decode(curl_exec($ch), true);
curl_close($ch);
if (!$body['ok']) {
    throw new RuntimeException($body['error']['code'] . ': ' . $body['error']['message']);
}
print_r($body['data']);
```

## Example response

```json
{
  "ok": true,
  "data": {
    "listings": [
      {
        "id": "aaaaaaaa-0000-4000-8000-000000000001",
        "slug": "123-peachtree-st-ne-atlanta-ga-30308-aaaaaaaa-0000-4000-8000-000000000001",
        "updatedAt": "2026-10-21T12:05:00.000Z",
        "mlsNumber": "FXSTD100",
        "mls": "11111111-1111-4111-8111-111111111111",
        "modifiedAt": "2026-10-21T12:00:00.000Z"
      },
      {
        "id": "aaaaaaaa-0000-4000-8000-000000000002",
        "slug": "aaaaaaaa-0000-4000-8000-000000000002",
        "updatedAt": "2026-10-21T12:05:00.000Z",
        "mlsNumber": "FXHID100",
        "mls": "11111111-1111-4111-8111-111111111111",
        "modifiedAt": "2026-10-21T12:00:00.000Z"
      },
      {
        "id": "aaaaaaaa-0000-4000-8000-000000000003",
        "slug": "aaaaaaaa-0000-4000-8000-000000000003",
        "updatedAt": "2026-10-21T12:05:00.000Z",
        "mlsNumber": "2345678",
        "mls": "43c8a0ee-4ac7-48e3-b684-72f1770ccb58",
        "modifiedAt": "2026-10-21T12:00:00.000Z"
      },
      {
        "id": "aaaaaaaa-0000-4000-8000-000000000004",
        "slug": "123-peachtree-st-ne-atlanta-ga-30308-aaaaaaaa-0000-4000-8000-000000000004",
        "updatedAt": "2026-10-21T12:05:00.000Z",
        "mlsNumber": "FXNOMAP100",
        "mls": "33333333-3333-4333-8333-333333333333",
        "modifiedAt": "2026-10-21T12:00:00.000Z"
      },
      {
        "id": "aaaaaaaa-0000-4000-8000-000000000005",
        "slug": "123-peachtree-st-ne-atlanta-ga-30308-aaaaaaaa-0000-4000-8000-000000000005",
        "updatedAt": "2026-10-21T12:05:00.000Z",
        "mlsNumber": "FXCTC100",
        "mls": "44444444-4444-4444-8444-444444444444",
        "modifiedAt": "2026-10-21T12:00:00.000Z"
      },
      {
        "id": "aaaaaaaa-0000-4000-8000-000000000006",
        "slug": "123-peachtree-st-ne-portland-me-30308-aaaaaaaa-0000-4000-8000-000000000006",
        "updatedAt": "2026-10-21T12:05:00.000Z",
        "mlsNumber": "FXME100",
        "mls": "802219ea-d7ac-46cf-b3e2-83e78ef13f68",
        "modifiedAt": "2026-10-21T12:00:00.000Z"
      },
      {
        "id": "aaaaaaaa-0000-4000-8000-000000000008",
        "slug": "123-peachtree-st-ne-atlanta-ga-30308-aaaaaaaa-0000-4000-8000-000000000008",
        "updatedAt": "2026-10-21T12:05:00.000Z",
        "mlsNumber": "FXSOLD100",
        "mls": "11111111-1111-4111-8111-111111111111",
        "modifiedAt": "2026-10-21T12:00:00.000Z"
      },
      {
        "id": "aaaaaaaa-0000-4000-8000-00000000000a",
        "slug": "123-peachtree-st-ne-seattle-wa-98101-aaaaaaaa-0000-4000-8000-00000000000a",
        "updatedAt": "2026-10-21T12:05:00.000Z",
        "mlsNumber": "2345679",
        "mls": "43c8a0ee-4ac7-48e3-b684-72f1770ccb58",
        "modifiedAt": "2026-10-21T12:00:00.000Z"
      },
      {
        "id": "aaaaaaaa-0000-4000-8000-00000000000b",
        "slug": "aaaaaaaa-0000-4000-8000-00000000000b",
        "updatedAt": "2026-10-21T12:05:00.000Z",
        "mlsNumber": "FXOPT100",
        "mls": "44444444-4444-4444-8444-444444444444",
        "modifiedAt": "2026-10-21T12:00:00.000Z"
      },
      {
        "id": "aaaaaaaa-0000-4000-8000-0000000000d1",
        "slug": "77-twin-board-ln-atlanta-ga-30308-aaaaaaaa-0000-4000-8000-0000000000d1",
        "updatedAt": "2026-10-21T12:05:00.000Z",
        "mlsNumber": "FXDUPA100",
        "mls": "11111111-1111-4111-8111-111111111111",
        "modifiedAt": "2026-10-21T11:59:58.000Z"
      },
      {
        "id": "aaaaaaaa-0000-4000-8000-0000000000d2",
        "slug": "77-twin-board-ln-atlanta-ga-30308-aaaaaaaa-0000-4000-8000-0000000000d2",
        "updatedAt": "2026-10-21T12:05:00.000Z",
        "mlsNumber": "FXDUPB100",
        "mls": "33333333-3333-4333-8333-333333333333",
        "modifiedAt": "2026-10-21T11:59:56.000Z"
      },
      {
        "id": "aaaaaaaa-0000-4000-8000-0000000000e0",
        "slug": "123-peachtree-st-ne-atlanta-ga-30308-aaaaaaaa-0000-4000-8000-0000000000e0",
        "updatedAt": "2026-10-21T12:05:00.000Z",
        "mlsNumber": "FXMKC0100",
        "mls": "11111111-1111-4111-8111-111111111111",
        "modifiedAt": "2026-10-21T11:50:00.000Z"
      },
      {
        "id": "aaaaaaaa-0000-4000-8000-0000000000e1",
        "slug": "123-peachtree-st-ne-atlanta-ga-30308-aaaaaaaa-0000-4000-8000-0000000000e1",
        "updatedAt": "2026-10-21T12:05:00.000Z",
        "mlsNumber": "FXMKC1100",
        "mls": "11111111-1111-4111-8111-111111111111",
        "modifiedAt": "2026-10-21T11:50:07.000Z"
      },
      {
        "id": "aaaaaaaa-0000-4000-8000-0000000000e2",
        "slug": "123-peachtree-st-ne-atlanta-ga-30308-aaaaaaaa-0000-4000-8000-0000000000e2",
        "updatedAt": "2026-10-21T12:05:00.000Z",
        "mlsNumber": "FXMKC2100",
        "mls": "11111111-1111-4111-8111-111111111111",
        "modifiedAt": "2026-10-21T11:50:14.000Z"
      },
      {
        "id": "aaaaaaaa-0000-4000-8000-0000000000e3",
        "slug": "123-peachtree-st-ne-atlanta-ga-30308-aaaaaaaa-0000-4000-8000-0000000000e3",
        "updatedAt": "2026-10-21T12:05:00.000Z",
        "mlsNumber": "FXMKC3100",
        "mls": "11111111-1111-4111-8111-111111111111",
        "modifiedAt": "2026-10-21T11:50:21.000Z"
      },
      {
        "id": "aaaaaaaa-0000-4000-8000-0000000000e4",
        "slug": "123-peachtree-st-ne-atlanta-ga-30308-aaaaaaaa-0000-4000-8000-0000000000e4",
        "updatedAt": "2026-10-21T12:05:00.000Z",
        "mlsNumber": "FXMKC4100",
        "mls": "11111111-1111-4111-8111-111111111111",
        "modifiedAt": "2026-10-21T11:50:28.000Z"
      },
      {
        "id": "aaaaaaaa-0000-4000-8000-0000000000e5",
        "slug": "123-peachtree-st-ne-atlanta-ga-30308-aaaaaaaa-0000-4000-8000-0000000000e5",
        "updatedAt": "2026-10-21T12:05:00.000Z",
        "mlsNumber": "FXMKC5100",
        "mls": "11111111-1111-4111-8111-111111111111",
        "modifiedAt": "2026-10-21T11:50:35.000Z"
      },
      {
        "id": "aaaaaaaa-0000-4000-8000-0000000000f1",
        "slug": "123-peachtree-st-ne-atlanta-ga-30308-aaaaaaaa-0000-4000-8000-0000000000f1",
        "updatedAt": "2026-10-21T12:05:00.000Z",
        "mlsNumber": "FXMKA0100",
        "mls": "43c8a0ee-4ac7-48e3-b684-72f1770ccb58",
        "modifiedAt": "2026-10-21T11:58:00.000Z"
      },
      {
        "id": "aaaaaaaa-0000-4000-8000-0000000000f2",
        "slug": "123-peachtree-st-ne-atlanta-ga-30308-aaaaaaaa-0000-4000-8000-0000000000f2",
        "updatedAt": "2026-10-21T12:05:00.000Z",
        "mlsNumber": "FXMKA1100",
        "mls": "43c8a0ee-4ac7-48e3-b684-72f1770ccb58",
        "modifiedAt": "2026-10-21T11:58:01.000Z"
      },
      {
        "id": "aaaaaaaa-0000-4000-8000-000000000200",
        "slug": "400-bull-st-savannah-ga-31405-aaaaaaaa-0000-4000-8000-000000000200",
        "updatedAt": "2026-10-21T12:05:00.000Z",
        "mlsNumber": "FXPRD0100",
        "mls": "11111111-1111-4111-8111-111111111111",
        "modifiedAt": "2026-10-20T09:00:00.000Z"
      },
      {
        "id": "aaaaaaaa-0000-4000-8000-000000000201",
        "slug": "401-bull-st-savannah-ga-31401-aaaaaaaa-0000-4000-8000-000000000201",
        "updatedAt": "2026-10-21T12:05:00.000Z",
        "mlsNumber": "FXPRD1100",
        "mls": "11111111-1111-4111-8111-111111111111",
        "modifiedAt": "2026-10-20T09:00:03.000Z"
      },
      {
        "id": "aaaaaaaa-0000-4000-8000-000000000202",
        "slug": "402-bull-st-savannah-ga-31405-aaaaaaaa-0000-4000-8000-000000000202",
        "updatedAt": "2026-10-21T12:05:00.000Z",
        "mlsNumber": "FXPRD2100",
        "mls": "11111111-1111-4111-8111-111111111111",
        "modifiedAt": "2026-10-20T09:00:06.000Z"
      },
      {
        "id": "aaaaaaaa-0000-4000-8000-000000000203",
        "slug": "403-bull-st-savannah-ga-31401-aaaaaaaa-0000-4000-8000-000000000203",
        "updatedAt": "2026-10-21T12:05:00.000Z",
        "mlsNumber": "FXPRD3100",
        "mls": "11111111-1111-4111-8111-111111111111",
        "modifiedAt": "2026-10-20T09:00:09.000Z"
      },
      {
        "id": "aaaaaaaa-0000-4000-8000-000000000204",
        "slug": "404-bull-st-savannah-ga-31405-aaaaaaaa-0000-4000-8000-000000000204",
        "updatedAt": "2026-10-21T12:05:00.000Z",
        "mlsNumber": "FXPRD4100",
        "mls": "11111111-1111-4111-8111-111111111111",
        "modifiedAt": "2026-10-20T09:00:12.000Z"
      },
      {
        "id": "aaaaaaaa-0000-4000-8000-000000000205",
        "slug": "405-bull-st-savannah-ga-31401-aaaaaaaa-0000-4000-8000-000000000205",
        "updatedAt": "2026-10-21T12:05:00.000Z",
        "mlsNumber": "FXPRD5100",
        "mls": "11111111-1111-4111-8111-111111111111",
        "modifiedAt": "2026-10-20T09:00:15.000Z"
      }
    ],
    "nextCursor": null,
    "asOf": "2026-10-22T15:00:00.000Z"
  },
  "meta": {
    "brokerageId": "bbbbbbbb-0000-4000-8000-000000000001",
    "freshness": {
      "asOf": "2026-10-22T15:00:00.000Z"
    },
    "mls": [
      {
        "mlsId": "11111111-1111-4111-8111-111111111111",
        "mlsName": "Fixture MLS",
        "displayType": "IDX",
        "disclaimer": {
          "text": "Fixture MLS data is deemed reliable but not guaranteed. CLIENTOK-disclaimer",
          "html": null
        },
        "logo": {
          "url": "https://ruuster-public.s3.amazonaws.com/mls-logo/fixture.png",
          "width": 80,
          "height": 40,
          "alt": "Fixture MLS logo"
        },
        "attributionTemplate": null,
        "required": [
          {
            "element": "listing_office",
            "placement": "card"
          },
          {
            "element": "disclaimer",
            "placement": "page"
          }
        ],
        "notices": [
          {
            "kind": "dmca",
            "text": "To report content that you believe infringes your copyright, write to the MLS's designated copyright agent.",
            "html": null
          }
        ],
        "draft": true
      },
      {
        "mlsId": "43c8a0ee-4ac7-48e3-b684-72f1770ccb58",
        "mlsName": "NWMLS",
        "displayType": "IDX",
        "disclaimer": {
          "text": "NWMLS data is deemed reliable but not guaranteed. CLIENTOK-disclaimer",
          "html": null
        },
        "logo": {
          "url": "https://ruuster-public.s3.amazonaws.com/mls-logo/fixture.png",
          "width": 80,
          "height": 40,
          "alt": "NWMLS logo"
        },
        "attributionTemplate": null,
        "required": [
          {
            "element": "listing_office",
            "placement": "card"
          },
          {
            "element": "disclaimer",
            "placement": "page"
          }
        ],
        "notices": [],
        "draft": true
      },
      {
        "mlsId": "33333333-3333-4333-8333-333333333333",
        "mlsName": "No-Map MLS",
        "displayType": "IDX",
        "disclaimer": {
          "text": "No-Map MLS data is deemed reliable but not guaranteed. CLIENTOK-disclaimer",
          "html": null
        },
        "logo": {
          "url": "https://ruuster-public.s3.amazonaws.com/mls-logo/fixture.png",
          "width": 80,
          "height": 40,
          "alt": "No-Map MLS logo"
        },
        "attributionTemplate": null,
        "required": [
          {
            "element": "listing_office",
            "placement": "card"
          },
          {
            "element": "disclaimer",
            "placement": "page"
          }
        ],
        "notices": [],
        "draft": true
      },
      {
        "mlsId": "44444444-4444-4444-8444-444444444444",
        "mlsName": "Contact MLS",
        "displayType": "IDX",
        "disclaimer": {
          "text": "Contact MLS data is deemed reliable but not guaranteed. CLIENTOK-disclaimer",
          "html": null
        },
        "logo": {
          "url": "https://ruuster-public.s3.amazonaws.com/mls-logo/fixture.png",
          "width": 80,
          "height": 40,
          "alt": "Contact MLS logo"
        },
        "attributionTemplate": "Listed by {listAgentName}, {agentPhone}, {agentEmail}, {listOfficeName}",
        "required": [
          {
            "element": "listing_agent",
            "placement": "detail"
          },
          {
            "element": "agent_contact",
            "placement": "detail"
          },
          {
            "element": "courtesy_line",
            "placement": "card"
          }
        ],
        "notices": [],
        "draft": true
      },
      {
        "mlsId": "802219ea-d7ac-46cf-b3e2-83e78ef13f68",
        "mlsName": "Maine Listings",
        "displayType": "IDX",
        "disclaimer": {
          "text": "Maine Listings data is deemed reliable but not guaranteed. CLIENTOK-disclaimer",
          "html": null
        },
        "logo": {
          "url": "https://ruuster-public.s3.amazonaws.com/mls-logo/fixture.png",
          "width": 80,
          "height": 40,
          "alt": "Maine Listings logo"
        },
        "attributionTemplate": null,
        "required": [
          {
            "element": "listing_office",
            "placement": "card"
          },
          {
            "element": "disclaimer",
            "placement": "page"
          }
        ],
        "notices": [],
        "draft": true
      }
    ],
    "canonical": null,
    "audience": "display"
  }
}
```
