# Losangeles Craigslist — Wrapped API

> **You are on:** `https://api.beta.paywithlocus.com/api` | [llms.txt](https://beta.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 for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.beta.paywithlocus.com/api/wrapped/credits/losangeles-craigslist/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## 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.beta.paywithlocus.com/api/wrapped/credits/losangeles-craigslist/get-categories \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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.beta.paywithlocus.com/api/wrapped/credits/losangeles-craigslist/get-listing-detail \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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.beta.paywithlocus.com/api/wrapped/credits/losangeles-craigslist/search-listings \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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.beta.paywithlocus.com/api/wrapped/credits/losangeles-craigslist/search-with-location \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"category":"<string>","query":"<string>","radius":"<integer>","zip_code":"<string>"}'
```

## Next steps

- [All wrapped API providers](https://beta.paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://beta.paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://beta.paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://beta.paywithlocus.com/agent/index.md): every Locus agent page.