---
title: "eMAG API: Search | Perceptlayer"
description: "Search from eMAG as JSON. 1–28 credits per successful call."
url: https://perceptlayer.com/apis/emag/search
---

[APIs](https://perceptlayer.com/apis) / [eMAG](https://perceptlayer.com/apis/emag) / Search

# eMAG: Search

Search from eMAG as JSON. 1–28 credits per successful call.

GET `/v1/emag/search`

## Parameters

Send parameters in the query string.

Required Send `query`, `category` or `filter_url`.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `site` | string | Optional | ro, bg |
| `query` | string | Optional | Up to 200 characters |
| `category` | string | Optional | Up to 200 characters |
| `filter_url` | string | Optional | Up to 500 characters |
| `price_from` | number | Optional | Any |
| `price_to` | number | Optional | Any |
| `brand` | string | Optional | samsung, apple, xiaomi, motorola, honor, google, oppo, poco, huawei, lenovo, asus, acer, dell, hp, hewlett\_packard, hewlett-packard |
| `seller` | string | Optional | Up to 100 characters |
| `in_stock` | boolean | Optional | Any |
| `sort` | string | Optional | relevance, price\_asc, price\_desc, reviews\_desc |
| `page` | integer | Optional | Any |

## Example request

eMAG

GET /v1/emag/search?site=ro&query=laptop 

```
{
  "success": true,
  "data": {
    "items": [
      {
        "id": 143626261,
        "part_number_key": "DDB2JB7BM",
        "offer_id": 442823387,
        "name": "Laptop Acer Aspire Lite AL15-37P-C5B8 procesor Intel® N50 pana la 3.40 GHz, 15.6\" Full HD IPS, 8GB RAM, 128 GB PCIe Gen3 SSD, Intel® UHD Graphics, Windows 11 Home, Light Silver",
        "url": {
          "path": "/laptop-acer-aspire-lite-al15-37p-c5b8-procesor-intelr-n50-pana-la-3-40-ghz-15-6-full-hd-ips-8gb-ram-128-gb-pcie-gen3-ssd-intelr-uhd-graphics-windows-11-home-light-silver-nx-x76ex-003/pd/DDB2JB7BM/"
        },
        "image": {
          "original": "https://s13emagst.akamaized.net/products/143627/143626261/images/res_bcc6addfca942fdc6621dfa01a2c8e5e.png",
          "resized_images": [
            "https://s13emagst.akamaized.net/products/143627/143626261/images/res_bcc6addfca942fdc6621dfa01a2c8e5e.png?width=200&height=200&hash=DA67C8EF38E7C1E9A4BB57205951195E",
            "https://s13emagst.akamaized.net/products/143627/143626261/images/res_bcc6addfca942fdc6621dfa01a2c8e5e.png?width=350&height=350&hash=3EC4877AD6FED156B99A4EDDB7286483",
            "https://s13emagst.akamaized.net/products/143627/143626261/images/res_bcc6addfca942fdc6621dfa01a2c8e5e.png?width=720&height=720&hash=0A9E11CEC4D0ACAA4E4640A7C14446DE"
          ]
        },
        "price": {
          "amount": 1649.99,
          "currency": "RON"
        },
        "original_price": {
          "amount": 2199.99,
          "currency": "RON"
        },
        "discount_percent": 25,
        "discount_value": 550,
        "lowest_price_30_days": 2199.99,
        "vendor": {
          "name": "eMAG",
          "id": 1
        },
        "seller": {
          "name": "eMAG"
        },
        "availability": {
          "code": "in_stock",
          "in_stock": true
        },
        "review_count": 0,
        "is_genius": false
      },
      {
        "id": 127672075,
        "part_number_key": "DMHVT92BM",
        "offer_id": 369389151,
        "name": "Laptop Gaming Lenovo LOQ 17IRX10 cu procesor Intel Core™ i7-14700HX pana la 5.5GHz, 17.3\" Full HD, IPS, 165Hz, 24GB DDR5, 1TB SSD, NVIDIA GeForce RTX™ 5070 8GB GDDR7, No OS, Luna Grey",
        "url": {
          "path": "/laptop-gaming-lenovo-loq-17irx10-cu-procesor-intel-coretm-i7-14700hx-pana-la-5-5ghz-17-3-full-hd-ips-165hz-24gb-ddr5-1tb-ssd-nvidia-geforce-rtxtm-5070-8gb-gddr7-no-os-luna-grey-83jh00germ/pd/DMHVT92BM/"
        },
        "image": {
          "original": "https://s13emagst.akamaized.net/products/98129/98128179/images/res_4803206807f9500cddda725c5c88494a.jpg",
          "resized_images": [
            "https://s13emagst.akamaized.net/products/98129/98128179/images/res_4803206807f9500cddda725c5c88494a.jpg?width=200&height=200&hash=73F4CD3EA59C5023403A59B1F8A68A7B",
            "https://s13emagst.akamaized.net/products/98129/98128179/images/res_4803206807f9500cddda725c5c88494a.jpg?width=350&height=350&hash=821FCE724E49F8C238990C3769DF1CD6",
            "https://s13emagst.akamaized.net/products/98129/98128179/images/res_4803206807f9500cddda725c5c88494a.jpg?width=720&height=720&hash=8F4F3051C345623E3F44D204E5AF656C"
          ]
        },
        "price": {
          "amount": 8699.99,
          "currency": "RON"
        },
        "original_price": {
          "amount": 10199.99,
          "currency": "RON"
        },
        "discount_percent": 14,
        "discount_value": 1500,
        "lowest_price_30_days": 10199.99,
        "vendor": {
          "name": "eMAG",
          "id": 1
        },
        "seller": {
          "name": "eMAG"
        },
        "availability": {
          "code": "in_stock",
          "in_stock": true
        },
        "rating": 4.33,
        "review_count": 3,
        "is_genius": false
      },
      {
        "id": 132598860,
        "part_number_key": "DVYWS42BM",
        "offer_id": 389333794,
        "name": "Laptop Apple MacBook Air 13'' cu procesor Apple M5, 10 nuclee CPU, 8 nuclee GPU, 16GB RAM, 512GB SSD, Midnight, Tastatura US English, Fara incarcator",
        "url": {
          "path": "/laptop-apple-macbook-air-13-cu-procesor-apple-m5-10-nuclee-cpu-8-nuclee-gpu-16gb-ram-512gb-ssd-midnight-tastatura-us-english-fara-incarcator-z1l6000fp/pd/DVYWS42BM/"
        },
        "image": {
          "original": "https://s13emagst.akamaized.net/products/88283/88282977/images/res_a6c650c79a72885951461ac3b97b0380.jpg",
          "resized_images": [
            "https://s13emagst.akamaized.net/products/88283/88282977/images/res_a6c650c79a72885951461ac3b97b0380.jpg?width=200&height=200&hash=0BEC6BB06162BC8F7B056D855694B8EE",
            "https://s13emagst.akamaized.net/products/88283/88282977/images/res_a6c650c79a72885951461ac3b97b0380.jpg?width=350&height=350&hash=2604891DA518F42E59BD508AD0795E1A",
            "https://s13emagst.akamaized.net/products/88283/88282977/images/res_a6c650c79a72885951461ac3b97b0380.jpg?width=720&height=720&hash=5041C83F96FBFDBA2F8483B5D07EB1F8"
          ]
        },
        "price": {
          "amount": 6299.99,
          "currency": "RON"
        },
        "original_price": {
          "amount": 7399.99,
          "currency": "RON"
        },
        "discount_percent": 14,
        "discount_value": 1100,
        "vendor": {
          "name": "eMAG",
          "id": 1
        },
        "seller": {
          "name": "eMAG"
        },
        "availability": {
          "code": "in_stock",
          "in_stock": true
        },
        "rating": 5,
        "review_count": 5,
        "is_genius": false
      }
    ],
    "pagination": {
      "current_page": 1,
      "per_page": 60,
      "total_results": 12655,
      "has_next": true
    },
    "filters": {
      "query": "laptop",
      "sort": "relevance",
      "options": [
        {
          "name": "Timp de livrare estimat",
          "options": [
            "…",
            "…",
            "…"
          ]
        },
        {
          "name": "Produse la oferta",
          "options": [
            "…",
            "…"
          ]
        },
        {
          "name": "Sistem de operare",
          "options": [
            "…",
            "…",
            "…"
          ]
        }
      ],
      "sort_options": [
        {
          "id": "popularity_v_opt_rec",
          "name": "Cele mai relevante",
          "direction": "desc",
          "is_selected": true,
          "is_auto_selected": true,
          "is_default": true,
          "url": {
            "path": "/laptopuri/c",
            "desktop_base": "https://www.emag.ro",
            "mobile_base": "https://www.emag.ro"
          }
        },
        {
          "id": "id",
          "name": "Cele mai noi",
          "direction": "desc",
          "is_selected": false,
          "is_auto_selected": false,
          "is_default": false,
          "url": {
            "path": "/laptopuri/sort-iddesc/c",
            "desktop_base": "https://www.emag.ro",
            "mobile_base": "https://www.emag.ro"
          }
        },
        {
          "id": "price",
          "name": "Pret crescator",
          "direction": "asc",
          "is_selected": false,
          "is_auto_selected": false,
          "is_default": false,
          "url": {
            "path": "/laptopuri/sort-priceasc/c",
            "desktop_base": "https://www.emag.ro",
            "mobile_base": "https://www.emag.ro"
          }
        }
      ]
    },
    "site": "RO",
    "currency": "RON"
  },
  "meta": {
    "endpoint_family": "search",
    "request_id": "req_8f3edce3e1424482aad3441f711e2e8c",
    "credits_charged": 1,
    "credits_remaining": 4918
  }
}
```

200 OK JSON X-Credits-Used: 1

Recorded from our API and shortened.

[Run this endpoint in the playground](https://perceptlayer.com/apis/emag?try=search#playground) with your own parameters. 1–28 credits per successful call (1 credit for most calls, 28 when the store can only be reached by a costlier route); failed calls are free.

## Response fields

`data` has these 4 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

| Field | Type |
| --- | --- |
| `items` | object\[\] |
| `pagination` | object |
| `site` | string |
| `currency` | string |
