# Blibli Search API Documentation

<p><strong>Blibli Search API</strong> searches products on Blibli in Indonesia. Each item has the price, original price and discount as IDR numbers, the rating, review count, merchant, shop id, shop location and a full image url. The shop id feeds the Shop API unchanged.</p><p>Filter by price range, minimum rating, location and sort. Every item in the answer follows the filters you send. There are 40 results per page and page N returns the real page N.</p><p>The product id, base sku and merchant code feed the other routes unchanged. Costs 1 credit per successful request. Empty results and failed requests are free.</p>

- **Documentation:** [https://scrappa.co/docs/blibli-api/blibli_search](https://scrappa.co/docs/blibli-api/blibli_search)
- **API group:** Blibli API
- **Endpoint:** `GET https://scrappa.co/api/blibli/search`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `query` | string | Yes | Search text, 1 to 120 characters, for example sepatu lari. |
| `page` | integer | No | One-based page number, 40 results per page (default 1). |
| `sort` | string | No | One of relevance, price_asc, price_desc, rating. |
| `min_price` | number | No | Lowest price in IDR. |
| `max_price` | number | No | Highest price in IDR. |
| `min_rating` | number | No | Lowest item rating, 0 to 5. |
| `location` | string | No | Location text to match. |

## Example response

```json
{
    "data": {
        "query": "sepatu lari",
        "filters": [],
        "results": [
            {
                "url": "https://www.blibli.com/p/sepatu-lari",
                "shop": {
                    "id": "APF-70017",
                    "code": "APF-70017",
                    "name": "Olahraga Store",
                    "location": "Jakarta",
                    "is_official": true
                },
                "image": "https://static.blibli.com/abc.jpg",
                "price": 250000,
                "title": "Sepatu Lari Pria",
                "rating": 4.7,
                "base_sku": "MIS-60145",
                "currency": "IDR",
                "item_sku": "MIS-60145-02191",
                "location": "Jakarta",
                "merchant": {
                    "code": "APF-70017",
                    "name": "Olahraga Store",
                    "is_official": true
                },
                "product_id": "MIS-60145-02191",
                "sold_count": null,
                "formatted_id": "ps--MIS-60145-02191",
                "review_count": 88,
                "original_price": 350000,
                "discount_percent": 28.6
            }
        ],
        "currency": "IDR",
        "pagination": {
            "page": 1,
            "has_next": true,
            "per_page": 40,
            "total_results": 17799
        }
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "search"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A required parameter or a value is invalid. This response is not billable. |
| 503 | Upstream Unavailable | The source could not be reached. This response is not billable. Retry shortly. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
