---
title: "Listing id corpus. Registry: corpus.sitemap"
method: GET
path: "/madlan/listings/ids"
tags: ["Madlan"]
---

# Listing id corpus. Registry: corpus.sitemap

`GET /madlan/listings/ids`

## Request

- Base URL: `https://scrappa.co/api`
- URL: `https://scrappa.co/api/madlan/listings/ids`
- Auth: API key in header `X-API-KEY`

## Query parameters

- `offset` integer, nullable
- `limit` integer, nullable

## Response `200`

- union
  - string
  - object
    - `success` boolean, required
    - `total` integer, required
    - `offset` integer, required
    - `limit` integer, required
    - `returned` integer, required
    - `listing_ids` unknown[], required
      - unknown
    - `notes` unknown[], required
      - unknown
  - object
    - `success` boolean, required
    - `error` object, required
      - `code` 'upstream_unavailable', required
      - `message` 'The listing corpus is being built. Please retry shortly.', required
      - `http_status` 503, required
      - `retryable` boolean, required

## Other responses

- `401`: Unauthorized - API key is missing or invalid
- `404`: The id is well-formed and Madlan answered, but nothing is published under it. The body carries `found => false`. The lookup was answered, so it is billed; unlike a 503 this is not an upstream fault and retrying will not change it.
- `422`: One or more parameters are missing, out of range, or a filter Madlan cannot apply. Filters it cannot apply are refused rather than ignored, so the response never carries the unfiltered corpus in answer to a filter. The response lists the...
- `503`: Madlan answered the request but refused to compute it. Branch on `error.code`: this response is not retryable. Nothing is charged for a failed request. Madlan answered with a client-side rejection before running the query, for example a...

---

[API](https://skmtc.dev/scrappa/apis/scrappa-api-documentation.md) · [All operations](https://skmtc.dev/scrappa/apis/scrappa-api-documentation/llms.txt) · [OpenAPI document](https://skmtc.dev/scrappa/apis/scrappa-api-documentation/revisions/1e1aa78ff103?raw)
