# Jumia (Ghana) — 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.

> Browse and search thousands of products from Jumia Ghana's catalog, view detailed product information, and explore items across different categories. Get real-time search suggestions and instantly access pricing, descriptions, and availability for any item on Ghana's leading e-commerce platform.

**Category:** E-commerce | **Website:** [jumia.com.gh/](https://jumia.com.gh/) | **Docs:** [parse.bot/marketplace/af3566c3-fbcd-4db2-a59f-558f322197b6/jumia-com-gh-api](https://parse.bot/marketplace/af3566c3-fbcd-4db2-a59f-558f322197b6/jumia-com-gh-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-jumia-com-gh-api-af3566c3/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_categories

Get all available product categories and subcategories from Jumia Ghana's navigation menu. Returns category names, URL slugs, and full URLs. Use the slug values as input to get_category_products.

**Estimated cost:** Metered

_No parameters required._

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

### get_category_products

Browse products in a specific category on Jumia Ghana. Returns paginated product listings. Use get_categories to discover available category slugs. Each page returns up to 40 products.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category_slug` | string | Yes | Category URL slug from get_categories endpoint (e.g., 'phones-tablets', 'electronics', 'android-phones') |
| `page` | integer | No | Page number for pagination |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-jumia-com-gh-api-af3566c3/get_category_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category_slug":"<string>","page":"<integer>"}'
```

### get_product_details

Get detailed information about a specific product including description, images, features, variants, and stock info. The product_url can be obtained from search_products or get_category_products results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `product_url` | string | Yes | Product URL path (e.g., '/samsung-galaxy-a06-64gb-4gb-ram-300555967.html') or full URL. Obtainable from search_products or get_category_products results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-jumia-com-gh-api-af3566c3/get_product_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"product_url":"<string>"}'
```

### get_search_suggestions

Get search autocomplete suggestions for a partial query. Returns suggested search terms with their corresponding URLs. Useful for building search-as-you-type interfaces or discovering popular search terms.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Partial search query for suggestions (e.g., 'samsung', 'lap') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-jumia-com-gh-api-af3566c3/get_search_suggestions \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```

### search_products

Search for products on Jumia Ghana by keyword. Returns paginated product listings with pricing, ratings, and category information. Each page returns up to 40 products. Use the total_pages field to know how many pages are available.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination |
| `query` | string | Yes | Search query (e.g., 'samsung phone', 'laptop', 'shoes') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-jumia-com-gh-api-af3566c3/search_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","query":"<string>"}'
```
