# Jiji — 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 jiji.ng.

**Category:** Marketplaces | **Website:** [jiji.ng/](https://jiji.ng/) | **Docs:** [parse.bot/marketplace/6920adaa-0ae6-4fa6-a8d9-b5380a038070/jiji-ng-api](https://parse.bot/marketplace/6920adaa-0ae6-4fa6-a8d9-b5380a038070/jiji-ng-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-jiji-ng-api-6920adaa/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_listing

Retrieve full details of a single Jiji.ng listing by its GUID. Returns comprehensive information including description, all product attributes, images, price history context, view count, and favorites. The GUID is obtained from search_listings results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `listing_id` | string | Yes | Unique listing GUID (e.g. 'aDriycKjTAtZCkWQ0GdXh8JU'). Obtained from search_listings results' id field. |

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

### search_listings

Search Jiji.ng marketplace listings. Returns paginated results with prices, categories, regions, and condition. When no query is provided but a category_slug is given, lists all items in that category. Results are ordered by relevance by default. Each listing carries a GUID usable with the detail endpoint.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category_slug` | string | No | Category slug to filter listings (e.g. 'mobile-phones', 'computers-and-laptops'). Obtainable from search results' category_slug field. |
| `page` | integer | No | Page number for pagination (1-based). |
| `price_max` | string | No | Maximum price filter in Naira (e.g. '500000'). |
| `price_min` | string | No | Minimum price filter in Naira (e.g. '50000'). |
| `query` | string | No | Free-text search query (e.g. 'iphone', 'samsung phone'). Omit to browse by category. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-jiji-ng-api-6920adaa/search_listings \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category_slug":"<string>","page":"<integer>","price_max":"<string>","price_min":"<string>","query":"<string>"}'
```
