# Kijiji — 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.

> Access data from KIJIJI.COM.

**Category:** Marketplaces | **Website:** [kijiji.com/](https://kijiji.com/) | **Docs:** [parse.bot/marketplace/6d3464eb-f957-4805-bfe8-f1594ed108a4/kijiji-com-api](https://parse.bot/marketplace/6d3464eb-f957-4805-bfe8-f1594ed108a4/kijiji-com-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-kijiji-com-api-6d3464eb/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_listing

Retrieve full details for a single Kijiji listing by its numeric ID. Returns comprehensive listing data including full description, all images at higher resolution, seller information, location coordinates, and item attributes.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `listing_id` | string | Yes | Numeric Kijiji listing ID (e.g. '1739083107'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-kijiji-com-api-6d3464eb/get_listing \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"listing_id":"<string>"}'
```

### search_listings

Search Kijiji listings by keyword within a geographic area. Results are paginated (40 per page) and can be filtered by price range and sorted by date or price. Location is specified by coordinates and radius. Each listing includes title, price, location, images, and seller attributes.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category_id` | string | No | Kijiji category ID to filter results (e.g. '760' for Cell Phones, '10' for Buy & Sell). Omit for all categories. |
| `latitude` | string | No | Latitude of the search center point. |
| `location` | string | No | Human-readable location name used in the address parameter. |
| `location_id` | string | No | Kijiji internal location identifier. 1700273 is City of Toronto. |
| `longitude` | string | No | Longitude of the search center point. |
| `max_price` | string | No | Maximum price filter in dollars (e.g. '500'). |
| `min_price` | string | No | Minimum price filter in dollars (e.g. '100'). |
| `page` | integer | No | Page number for pagination (1-based). |
| `query` | string | Yes | Search keyword(s) to find listings. |
| `radius` | string | No | Search radius in kilometers from the center point. |
| `sort` | string | No | Sort order for results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-kijiji-com-api-6d3464eb/search_listings \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category_id":"<string>","latitude":"<string>","location":"<string>","location_id":"<string>","longitude":"<string>","max_price":"<string>","min_price":"<string>","page":"<integer>","query":"<string>","radius":"<string>","sort":"<string>"}'
```
