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

# Craigslist search

> Read a Craigslist search page with a five-digit US ZIP code in postal as JSON with the craigslist-search parser. $0.001 per 10 listings.

Reads a Craigslist search page with a five-digit US ZIP code in postal, like sfbay.craigslist.org/search/sss?query=bike\&postal=94103, and returns a list of listings as JSON.

## Make a request

Send the page's URL to [scrape](https://docs.stophy.dev/api-reference/endpoint/scrape.md) with a `json` format that names the parser. Get an API key in the [Quickstart](https://docs.stophy.dev/quickstart).

```bash cURL theme={null}
curl -X POST https://api.stophy.dev/v1/scrape \
  -H "Authorization: Bearer $STOPHY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://sfbay.craigslist.org/search/sss?query=bike&postal=94103&search_distance=25","formats":[{"type":"json","parser":"craigslist-search"}]}'
```

```typescript TypeScript theme={null}
const response = await fetch("https://api.stophy.dev/v1/scrape", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.STOPHY_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    url: "https://sfbay.craigslist.org/search/sss?query=bike&postal=94103&search_distance=25",
    formats: [{ type: "json", parser: "craigslist-search" }],
  }),
});
console.log(await response.json());
```

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

import requests

response = requests.post(
    "https://api.stophy.dev/v1/scrape",
    headers={"Authorization": f"Bearer {os.environ['STOPHY_API_KEY']}"},
    json={
        "url": "https://sfbay.craigslist.org/search/sss?query=bike&postal=94103&search_distance=25",
        "formats": [{"type": "json", "parser": "craigslist-search"}],
    },
)
print(response.json())
```

## Read the response

The parser's data is in `data.json`. Its fields include `results`, `cursor`, `page` and `total`. This sample is cut to the first items.

```json theme={null}
{
  "success": true,
  "data": {
    "json": {
      "results": [
        {
          "id": "7995382659",
          "url": "https://www.craigslist.org/view/d/san-francisco-2013-bmw-k1600/9GFQHZkctQ4nJBUeAfZHQh",
          "title": "2013 BMW K1600",
          "description": null,
          "price": {
            "amount": 6500,
            "currency": "USD"
          },
          "pricePeriod": null,
          "status": null,
          "address": "noe valley",
          "location": {
            "latitude": 37.745,
            "longitude": -122.4383
          },
          "bedrooms": null,
          "bathrooms": null,
          "area": null,
          "propertyType": null,
          "rating": null,
          "reviewCount": null,
          "images": [
            "https://images.craigslist.org/01212_dEwA5HIEfjT_1320MM_600x450.jpg"
          ],
          "host": null,
          "publishedAt": "2026-11-04T23:12:28.000Z"
        }
      ],
      "cursor": null,
      "page": null,
      "total": 5031
    }
  }
}
```

## Options

Send options in the `options` object of the `json` format.

| Option | What it does |
| - | - |
| `minPrice` | Lowest price in US dollars (e.g., 50). |
| `maxPrice` | Highest price in US dollars (e.g., 500). |
| `limit` | Return at most this many listings. You pay \$0.001 for each 10 returned. |

## Price

\$0.001 per 10 listings. See [Pricing](https://docs.stophy.dev/account/pricing.md).

## Limits and errors

* The URL must be a Craigslist search page with a five-digit US ZIP code in postal, like sfbay.craigslist.org/search/sss?query=bike\&postal=94103. Any other URL fails with `invalidRequest`.
* The answer comes back in `data.json`. If the page cannot be read, the call fails with an error code from [Errors](https://docs.stophy.dev/api-reference/errors.md).

## Related

* [Pre-built parsers](https://docs.stophy.dev/scrape/prebuilt-parsers) lists every parser.
* [Scrape](https://docs.stophy.dev/scrape/overview) has the options every scrape takes.
* [Craigslist listing](https://docs.stophy.dev/scrape/prebuilt-parsers/shopping/craigslist-listing.md)
* [Amazon search](https://docs.stophy.dev/scrape/prebuilt-parsers/shopping/amazon-search.md)
* [Amazon product](https://docs.stophy.dev/scrape/prebuilt-parsers/shopping/amazon-product.md)


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