# Craigslist City sites API (craigslist.areas)

- Canonical page: [https://everyinfra.com/en/craigslist-api/areas](https://everyinfra.com/en/craigslist-api/areas?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "craigslist", "action": "areas", "params": {...}}
- Price: $0.000556 per call ($0.56 per 1,000 requests); failed calls and empty results are not charged
- Returns: list
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=craigslist&action=areas

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| limit | integer (1–) | no | not declared | Positive integer (≥1): the maximum number of results to return; omit it to get every result from this call. Setting it only trims the response to at most this many and never fetches more; billing is the same with or without `limit`, whatever the value. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| city | Host name of the city site, such as newyork, sfbay or london. |
| area_id | Numeric ID of the city site. |
| name | Name: in `areas` the city site's name, such as new york city; in `categories` the category name, such as bicycles - by owner. |
| country_code | Two-letter code of the city site's country, such as US or GB. |
| state | State or province code of the city site, such as NY or ON; absent in countries without one. |
| lat | Latitude. |
| lng | Longitude. |
| timezone | The city site's time zone (IANA name), such as America/New_York. |
| subareas | Codes of the parts the city site is split into, such as mnh and brk for newyork; absent on sites that are not split. |
| subareas_detail | Each part's code and name: a list of {subarea, name}. |
| rank | Position of the row in the platform's order, from 1. |
| collected_at | When this record was collected (ISO 8601, UTC). |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "craigslist",
  "action": "areas",
  "params": {}
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "craigslist",
        "action": "areas",
        "params": {},
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "id": "req_…",
  "platform": "craigslist",
  "action": "areas",
  "results": [
    {
      "city": …,
      "area_id": …,
      "name": …,
      "country_code": …,
      "state": …,
      "lat": …,
      "lng": …,
      "timezone": …,
      "subareas": …,
      "subareas_detail": …,
      "rank": …,
      "collected_at": …,
      "platform": …
    }
  ],
  "count": …,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=craigslist
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
