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.

ParameterTypeRequiredAllowed values
querystringOptionalUp to 120 characters
categorystringOptionalUp to 40 characters
langstringOptionales, en, ca
whstringOptionalUp to 10 characters
sortstringOptionalrelevance, price_asc, price_desc
pageintegerOptionalAny

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 OKJSONX-Credits-Used: 1
Recorded from our API and shortened.

Run this endpoint in the 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.

FieldType
langstring
warehousestring
itemsobject[]