---
title: "Mercadona API: Search | Perceptlayer"
description: "Search from Mercadona as JSON. 1 credit per successful call."
url: https://perceptlayer.com/apis/mercadona/search
---

[APIs](https://perceptlayer.com/apis) / [Mercadona](https://perceptlayer.com/apis/mercadona) / Search

# Mercadona: Search

Search from Mercadona as JSON. 1 credit per successful call.

GET `/v1/mercadona/search`

## Parameters

Send parameters in the query string.

Required Send `query` or `category`.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `query` | string | Optional | Up to 120 characters |
| `category` | string | Optional | Up to 40 characters |
| `lang` | string | Optional | es, en, ca |
| `wh` | string | Optional | Up to 10 characters |
| `sort` | string | Optional | relevance, price\_asc, price\_desc |
| `page` | integer | Optional | Any |

## Example request

Mercadona

GET /v1/mercadona/search?query=leche&lang=es&sort=relevance 

```
{
  "success": true,
  "data": {
    "query": "leche",
    "page": 1,
    "sort": "relevance",
    "count": 24,
    "has_next_page": true,
    "lang": "es",
    "warehouse": "vlc1",
    "items": [
      {
        "position": 1,
        "id": "10381",
        "name": "Leche semidesnatada Hacendado",
        "brand": "Hacendado",
        "slug": "leche-semidesnatada-hacendado-pack-6",
        "url": "https://tienda.mercadona.es/product/10381/leche-semidesnatada-hacendado-pack-6",
        "image": "https://prod-mercadona.imgix.net/images/c15010ddd0e6fc881e5ef94446d43bef.jpg?fit=crop&h=300&w=300",
        "images": [
          "https://prod-mercadona.imgix.net/images/c15010ddd0e6fc881e5ef94446d43bef.jpg?fit=crop&h=300&w=300"
        ],
        "size": "6 l",
        "currency": "EUR",
        "categories": [
          "Huevos, leche y mantequilla"
        ],
        "price": 4.98,
        "unit_price": 0.83,
        "unit": "l",
        "price_decreased": false
      },
      {
        "position": 2,
        "id": "10379",
        "name": "Leche entera Hacendado",
        "brand": "Hacendado",
        "slug": "leche-entera-hacendado-pack-6",
        "url": "https://tienda.mercadona.es/product/10379/leche-entera-hacendado-pack-6",
        "image": "https://prod-mercadona.imgix.net/images/e471e628a91aef1a7d6473da2cb904c6.jpeg?fit=crop&h=300&w=300",
        "images": [
          "https://prod-mercadona.imgix.net/images/e471e628a91aef1a7d6473da2cb904c6.jpeg?fit=crop&h=300&w=300"
        ],
        "size": "6 l",
        "currency": "EUR",
        "categories": [
          "Huevos, leche y mantequilla"
        ],
        "price": 5.76,
        "unit_price": 0.96,
        "unit": "l",
        "price_decreased": false
      },
      {
        "position": 3,
        "id": "10721",
        "name": "Leche semidesnatada sin lactosa Hacendado",
        "brand": "Hacendado",
        "slug": "leche-semidesnatada-sin-lactosa-hacendado-pack-6",
        "url": "https://tienda.mercadona.es/product/10721/leche-semidesnatada-sin-lactosa-hacendado-pack-6",
        "image": "https://prod-mercadona.imgix.net/images/6b02e742d27be2ee2db0994bc431fe99.jpg?fit=crop&h=300&w=300",
        "images": [
          "https://prod-mercadona.imgix.net/images/6b02e742d27be2ee2db0994bc431fe99.jpg?fit=crop&h=300&w=300"
        ],
        "size": "6 l",
        "currency": "EUR",
        "categories": [
          "Huevos, leche y mantequilla"
        ],
        "price": 5.64,
        "unit_price": 0.94,
        "unit": "l",
        "price_decreased": false
      }
    ]
  },
  "meta": {
    "endpoint_family": "search",
    "request_id": "req_f87b3e61b913464f9eb265919ab99785",
    "credits_charged": 1,
    "credits_remaining": 4835
  }
}
```

200 OK JSON X-Credits-Used: 1

Recorded from our API and shortened.

[Run this endpoint in the playground](https://perceptlayer.com/apis/mercadona?try=search#playground) with your own parameters. 1 credit per successful call; failed calls are free.

## Response fields

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

| Field | Type |
| --- | --- |
| `lang` | string |
| `warehouse` | string |
| `items` | object\[\] |
