# Losangeles Craigslist — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Search and browse Craigslist Los Angeles listings with powerful filtering options, including keyword search, price ranges, category filters, and location-based results. Retrieve full listing details across all major categories including for sale, housing, jobs, and more.

**Category:** Marketplaces | **Website:** [losangeles.craigslist.org/](https://losangeles.craigslist.org/) | **Docs:** [parse.bot/marketplace/e02868d4-bf32-4ce1-a401-e2df8d7efe98/losangeles-craigslist-org-api](https://parse.bot/marketplace/e02868d4-bf32-4ce1-a401-e2df8d7efe98/losangeles-craigslist-org-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-losangeles-craigslist-org-api-e02868d4/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_categories

Return a mapping of Craigslist category codes and display names organized by top-level sections (community, services, housing, for sale, jobs, gigs). This is a static mapping that does not change frequently.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-losangeles-craigslist-org-api-e02868d4/get_categories \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_listing_detail

Fetch full details for a single listing given its Craigslist URL. Returns title, price, full description text, key-value attributes, image URLs, location with coordinates, and posting/update timestamps. The URL must be a valid Craigslist listing page URL with the correct sub-category path.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url` | string | Yes | Full Craigslist listing URL (e.g. https://losangeles.craigslist.org/ant/bik/d/santa-clarita-cannondale-bad-boy-belt/7926227173.html). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-losangeles-craigslist-org-api-e02868d4/get_listing_detail \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"<string>"}'
```

### search_listings

Search for listings across all categories on Craigslist Los Angeles. Returns paginated results with listing summaries including title, price, posting date, and images. Pagination is offset-based with a configurable batch size. Results are sorted by date by default. Supports price range filtering and keyword search.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category` | string | No | Category code for filtering listings. |
| `limit` | integer | No | Maximum number of results to return per request. |
| `max_price` | integer | No | Maximum price filter. |
| `min_price` | integer | No | Minimum price filter. |
| `offset` | integer | No | Result offset for pagination. |
| `query` | string | No | Search keyword to filter listings. |
| `sort` | string | No | Sort order for results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-losangeles-craigslist-org-api-e02868d4/search_listings \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category":"<string>","limit":"<integer>","max_price":"<integer>","min_price":"<integer>","offset":"<integer>","query":"<string>","sort":"<string>"}'
```

### search_with_location

Search for listings within a geographic radius of a ZIP code. Returns the same listing format as search_listings but filtered by proximity to the specified location. Delegates to the same search API with postal and search_distance parameters added.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category` | string | No | Category code. |
| `query` | string | No | Search keyword. |
| `radius` | integer | No | Search radius in miles from ZIP code. |
| `zip_code` | string | No | 5-digit US ZIP code for location-based search (e.g. 90210). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-losangeles-craigslist-org-api-e02868d4/search_with_location \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category":"<string>","query":"<string>","radius":"<integer>","zip_code":"<string>"}'
```
