# Gmarket Search API Documentation

<p><strong>Gmarket Search API Documentation</strong> Search products on Gmarket, one of South Korea's largest marketplaces. Return up to 60 products per page with the title, the sale price and original price as numbers in KRW, the discount in percent, a full size image, the product url, the seller and delivery flags. Filter by a price range, sort by relevance or ascending price, and select overseas delivery or the Big Smile badge. Every returned product matches the price filter you send. An item whose price is shown as free has a null price and a price_is_free flag, never zero. Rating and review count are not part of search results; read them from the product endpoint. Each result carries a GoodsCode that the product endpoint accepts unchanged. Cost: 1 credit per request. Empty results and failed requests are not billed.</p>

- **Documentation:** [https://scrappa.co/docs/gmarket-api/gmarket_search](https://scrappa.co/docs/gmarket-api/gmarket_search)
- **API group:** Gmarket API
- **Endpoint:** `GET https://scrappa.co/api/gmarket/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 keyword, for example 노트북. Required. |
| `min_price` | integer | No | Lowest price in KRW. Every returned product costs at least this much. |
| `max_price` | integer | No | Highest price in KRW. Every returned product costs at most this much. |
| `sort` | string | No | relevance (default) or price_asc. |
| `page` | integer | No | Page number from 1. Each page has up to 60 products. |
| `oversea` | boolean | No | true to return only overseas-delivered products. |
| `big_smile` | boolean | No | true for products with the Big Smile delivery badge. |

## Example response

```json
{
    "data": {
        "items": [
            {
                "id": "464146218",
                "image": "https://gdimg.gmarket.co.kr/464146218/still/280?ver=0",
                "price": 19800,
                "title": "Lotus Peeling Gel Exfoliator SEBUM",
                "images": [
                    "https://gdimg.gmarket.co.kr/464146218/still/280?ver=0"
                ],
                "l_code": null,
                "m_code": null,
                "s_code": null,
                "seller": "Lotus",
                "oversea": false,
                "currency": "KRW",
                "discount": 2,
                "big_smile": false,
                "sponsored": false,
                "seller_url": null,
                "product_url": "https://mg.gmarket.co.kr/Item?goodscode=464146218",
                "free_shipping": false,
                "price_is_free": false,
                "original_price": 20300,
                "ad_coupon_price": null
            }
        ],
        "filters": {
            "page": 1,
            "query": "\ub178\ud2b8\ubd81"
        },
        "currency": "KRW",
        "pagination": {
            "page": 1,
            "has_next": true,
            "page_size": 60
        }
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "search"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A query parameter is missing or invalid. This response is not billable. |
| 503 | Upstream Unavailable | Gmarket did not answer after the internal retries. This response is not billable. |

## 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)
