Skip to content

Instantly share code, notes, and snippets.

@mdelapenya
Created December 23, 2020 01:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mdelapenya/7a7bf8e6f22d86d28ad3b5e3630b1343 to your computer and use it in GitHub Desktop.
Save mdelapenya/7a7bf8e6f22d86d28ad3b5e3630b1343 to your computer and use it in GitHub Desktop.
Mercadona extension

Query

curl -X POST https://7uzjkl1dj0-dsn.algolia.net/1/indexes/products_prod_vlc1_es/query\?x-algolia-agent\=Algolia%20for%20JavaScript%20\(3.35.1\)%3B%20Browser\&x-algolia-application-id\=7UZJKL1DJ0\&x-algolia-api-key\=9d8f2e39e90df472b4f2e559a116fe17 --data '{"params":"query=pi%C3%B1ones&clickAnalytics=true&analyticsTags=%5B%22web%22%5D"}'

JSON response

{
    "hits": [
        {
            "score": 750.0,
            "id": "34210",
            "slug": "pinones-ibericos-hacendado-bote",
            "badges": {
                "is_water": false,
                "requires_age_check": false
            },
            "display_name": "Piñones ibéricos Hacendado",
            "limit": 999,
            "packaging": "Bote",
            "price_instructions": {
                "approx_size": false,
                "bulk_price": "91.00",
                "bunch_selector": false,
                "drained_weight": null,
                "increment_bunch_amount": 1.0,
                "is_new": false,
                "is_pack": false,
                "iva": 4,
                "min_bunch_amount": 1.0,
                "pack_size": null,
                "price_decreased": false,
                "reference_format": "kg",
                "reference_price": "91.00",
                "size_format": "kg",
                "total_units": null,
                "unit_name": null,
                "unit_price": "4.55",
                "unit_selector": true,
                "unit_size": 0.05,
                "selling_method": 0
            },
            "thumbnail": "https://prod-mercadona.imgix.net/images/ddb724e60f464fe38d24cbca3c90adb8.jpg?fit=crop&h=300&w=300",
            "share_url": "https://tienda.mercadona.es/product/34210/pinones-ibericos-hacendado-bote",
            "categories": [
                {
                    "id": 12,
                    "name": "Aceite, especias y salsas",
                    "order": 7,
                    "level": 0,
                    "categories": [
                        {
                            "id": 115,
                            "name": "Especias",
                            "order": 7,
                            "level": 1,
                            "categories": [
                                {
                                    "id": 431,
                                    "name": "Otras especias",
                                    "order": 7,
                                    "level": 2
                                }
                            ]
                        }
                    ]
                }
            ],
            "published": true,
            "brand": "Hacendado",
            "objectID": "34210",
            "_highlightResult": {
                "display_name": {
                    "value": "<em>Piñones</em> ibéricos Hacendado",
                    "matchLevel": "full",
                    "fullyHighlighted": false,
                    "matchedWords": [
                        "pinones"
                    ]
                },
                "packaging": {
                    "value": "Bote",
                    "matchLevel": "none",
                    "matchedWords": []
                },
                "categories": [
                    {
                        "categories": [
                            {
                                "name": {
                                    "value": "Especias",
                                    "matchLevel": "none",
                                    "matchedWords": []
                                },
                                "categories": [
                                    {
                                        "name": {
                                            "value": "Otras especias",
                                            "matchLevel": "none",
                                            "matchedWords": []
                                        }
                                    }
                                ]
                            }
                        ]
                    }
                ],
                "brand": {
                    "value": "Hacendado",
                    "matchLevel": "none",
                    "matchedWords": []
                }
            }
        },
        {
            "score": 291.0,
            "id": "36705",
            "slug": "pinones-hacendado-paquete",
            "badges": {
                "is_water": false,
                "requires_age_check": false
            },
            "display_name": "Piñones Hacendado",
            "limit": 999,
            "packaging": "Paquete",
            "price_instructions": {
                "approx_size": false,
                "bulk_price": "15.50",
                "bunch_selector": false,
                "drained_weight": null,
                "increment_bunch_amount": 1.0,
                "is_new": false,
                "is_pack": false,
                "iva": 10,
                "min_bunch_amount": 1.0,
                "pack_size": null,
                "price_decreased": false,
                "reference_format": "kg",
                "reference_price": "15.50",
                "size_format": "kg",
                "total_units": null,
                "unit_name": null,
                "unit_price": "1.55",
                "unit_selector": true,
                "unit_size": 0.1,
                "selling_method": 0
            },
            "thumbnail": "https://prod-mercadona.imgix.net/images/e27c478c3be1bab9049b6ebf53b1c64d.jpg?fit=crop&h=300&w=300",
            "share_url": "https://tienda.mercadona.es/product/36705/pinones-hacendado-paquete",
            "categories": [
                {
                    "id": 15,
                    "name": "Aperitivos",
                    "order": 9,
                    "level": 0,
                    "categories": [
                        {
                            "id": 133,
                            "name": "Frutos secos y fruta desecada",
                            "order": 9,
                            "level": 1,
                            "categories": [
                                {
                                    "id": 479,
                                    "name": "Frutos secos",
                                    "order": 9,
                                    "level": 2
                                }
                            ]
                        }
                    ]
                }
            ],
            "published": true,
            "brand": "Hacendado",
            "objectID": "36705",
            "_highlightResult": {
                "display_name": {
                    "value": "<em>Piñones</em> Hacendado",
                    "matchLevel": "full",
                    "fullyHighlighted": false,
                    "matchedWords": [
                        "pinones"
                    ]
                },
                "packaging": {
                    "value": "Paquete",
                    "matchLevel": "none",
                    "matchedWords": []
                },
                "categories": [
                    {
                        "categories": [
                            {
                                "name": {
                                    "value": "Frutos secos y fruta desecada",
                                    "matchLevel": "none",
                                    "matchedWords": []
                                },
                                "categories": [
                                    {
                                        "name": {
                                            "value": "Frutos secos",
                                            "matchLevel": "none",
                                            "matchedWords": []
                                        }
                                    }
                                ]
                            }
                        ]
                    }
                ],
                "brand": {
                    "value": "Hacendado",
                    "matchLevel": "none",
                    "matchedWords": []
                }
            }
        },
        {
            "score": 227.0,
            "id": "34111",
            "slug": "pinones-ibericos-hacendado-bote",
            "badges": {
                "is_water": false,
                "requires_age_check": false
            },
            "display_name": "Piñones ibéricos Hacendado",
            "limit": 999,
            "packaging": "Bote",
            "price_instructions": {
                "approx_size": false,
                "bulk_price": "81.00",
                "bunch_selector": false,
                "drained_weight": null,
                "increment_bunch_amount": 1.0,
                "is_new": false,
                "is_pack": false,
                "iva": 4,
                "min_bunch_amount": 1.0,
                "pack_size": null,
                "price_decreased": false,
                "reference_format": "kg",
                "reference_price": "81.00",
                "size_format": "kg",
                "total_units": null,
                "unit_name": null,
                "unit_price": "12.15",
                "unit_selector": true,
                "unit_size": 0.15,
                "selling_method": 0
            },
            "thumbnail": "https://prod-mercadona.imgix.net/images/a9f93cc5b8b06ef75a04bdab1dbefc9b.jpg?fit=crop&h=300&w=300",
            "share_url": "https://tienda.mercadona.es/product/34111/pinones-ibericos-hacendado-bote",
            "categories": [
                {
                    "id": 12,
                    "name": "Aceite, especias y salsas",
                    "order": 7,
                    "level": 0,
                    "categories": [
                        {
                            "id": 115,
                            "name": "Especias",
                            "order": 7,
                            "level": 1,
                            "categories": [
                                {
                                    "id": 431,
                                    "name": "Otras especias",
                                    "order": 7,
                                    "level": 2
                                }
                            ]
                        }
                    ]
                }
            ],
            "published": true,
            "brand": "Hacendado",
            "objectID": "34111",
            "_highlightResult": {
                "display_name": {
                    "value": "<em>Piñones</em> ibéricos Hacendado",
                    "matchLevel": "full",
                    "fullyHighlighted": false,
                    "matchedWords": [
                        "pinones"
                    ]
                },
                "packaging": {
                    "value": "Bote",
                    "matchLevel": "none",
                    "matchedWords": []
                },
                "categories": [
                    {
                        "categories": [
                            {
                                "name": {
                                    "value": "Especias",
                                    "matchLevel": "none",
                                    "matchedWords": []
                                },
                                "categories": [
                                    {
                                        "name": {
                                            "value": "Otras especias",
                                            "matchLevel": "none",
                                            "matchedWords": []
                                        }
                                    }
                                ]
                            }
                        ]
                    }
                ],
                "brand": {
                    "value": "Hacendado",
                    "matchLevel": "none",
                    "matchedWords": []
                }
            }
        },
        {
            "score": 587.0,
            "id": "6282",
            "slug": "pasta-pinones-hacendado-sopa-paquete",
            "badges": {
                "is_water": false,
                "requires_age_check": false
            },
            "display_name": "Pasta piñones Hacendado",
            "limit": 999,
            "packaging": "Paquete",
            "price_instructions": {
                "approx_size": false,
                "bulk_price": "1.38",
                "bunch_selector": false,
                "drained_weight": null,
                "increment_bunch_amount": 1.0,
                "is_new": false,
                "is_pack": false,
                "iva": 10,
                "min_bunch_amount": 1.0,
                "pack_size": null,
                "price_decreased": false,
                "reference_format": "kg",
                "reference_price": "1.38",
                "size_format": "kg",
                "total_units": null,
                "unit_name": null,
                "unit_price": "0.69",
                "unit_selector": true,
                "unit_size": 0.5,
                "selling_method": 0
            },
            "thumbnail": "https://prod-mercadona.imgix.net/images/1ae98670792970d7c3808c4471361765.jpg?fit=crop&h=300&w=300",
            "share_url": "https://tienda.mercadona.es/product/6282/pasta-pinones-hacendado-sopa-paquete",
            "categories": [
                {
                    "id": 13,
                    "name": "Arroz, legumbres y pasta",
                    "order": 10,
                    "level": 0,
                    "categories": [
                        {
                            "id": 120,
                            "name": "Pasta y fideos",
                            "order": 10,
                            "level": 1,
                            "categories": [
                                {
                                    "id": 442,
                                    "name": "Fideos",
                                    "order": 10,
                                    "level": 2
                                }
                            ]
                        }
                    ]
                }
            ],
            "published": true,
            "brand": "Hacendado",
            "objectID": "6282",
            "_highlightResult": {
                "display_name": {
                    "value": "Pasta <em>piñones</em> Hacendado",
                    "matchLevel": "full",
                    "fullyHighlighted": false,
                    "matchedWords": [
                        "pinones"
                    ]
                },
                "packaging": {
                    "value": "Paquete",
                    "matchLevel": "none",
                    "matchedWords": []
                },
                "categories": [
                    {
                        "categories": [
                            {
                                "name": {
                                    "value": "Pasta y fideos",
                                    "matchLevel": "none",
                                    "matchedWords": []
                                },
                                "categories": [
                                    {
                                        "name": {
                                            "value": "Fideos",
                                            "matchLevel": "none",
                                            "matchedWords": []
                                        }
                                    }
                                ]
                            }
                        ]
                    }
                ],
                "brand": {
                    "value": "Hacendado",
                    "matchLevel": "none",
                    "matchedWords": []
                }
            }
        },
        {
            "score": 17.0,
            "id": "2123",
            "slug": "morcilla-blanca-con-pinones-bandeja",
            "badges": {
                "is_water": false,
                "requires_age_check": false
            },
            "display_name": "Morcilla blanca con piñones",
            "limit": 999,
            "packaging": "Bandeja",
            "price_instructions": {
                "approx_size": true,
                "bulk_price": "5.60",
                "bunch_selector": false,
                "drained_weight": null,
                "increment_bunch_amount": 1.0,
                "is_new": false,
                "is_pack": false,
                "iva": 10,
                "min_bunch_amount": 1.0,
                "pack_size": null,
                "price_decreased": false,
                "reference_format": "kg",
                "reference_price": "5.60",
                "size_format": "kg",
                "total_units": null,
                "unit_name": null,
                "unit_price": "1.68",
                "unit_selector": true,
                "unit_size": 0.3,
                "selling_method": 0
            },
            "thumbnail": "https://prod-mercadona.imgix.net/images/c2cfa932060b108a9ebd297f9c39ca01.jpg?fit=crop&h=300&w=300",
            "share_url": "https://tienda.mercadona.es/product/2123/morcilla-blanca-con-pinones-bandeja",
            "categories": [
                {
                    "id": 3,
                    "name": "Carne",
                    "order": 17,
                    "level": 0,
                    "categories": [
                        {
                            "id": 43,
                            "name": "Embutido",
                            "order": 17,
                            "level": 1,
                            "categories": [
                                {
                                    "id": 286,
                                    "name": "Embutido",
                                    "order": 17,
                                    "level": 2
                                }
                            ]
                        }
                    ]
                }
            ],
            "published": true,
            "brand": null,
            "objectID": "2123",
            "_highlightResult": {
                "display_name": {
                    "value": "Morcilla blanca con <em>piñones</em>",
                    "matchLevel": "full",
                    "fullyHighlighted": false,
                    "matchedWords": [
                        "pinones"
                    ]
                },
                "packaging": {
                    "value": "Bandeja",
                    "matchLevel": "none",
                    "matchedWords": []
                },
                "categories": [
                    {
                        "categories": [
                            {
                                "name": {
                                    "value": "Embutido",
                                    "matchLevel": "none",
                                    "matchedWords": []
                                },
                                "categories": [
                                    {
                                        "name": {
                                            "value": "Embutido",
                                            "matchLevel": "none",
                                            "matchedWords": []
                                        }
                                    }
                                ]
                            }
                        ]
                    }
                ]
            }
        },
        {
            "score": 273.0,
            "id": "3555",
            "slug": "rellenito-vacuno-con-pasas-pinones-paquete",
            "badges": {
                "is_water": false,
                "requires_age_check": false
            },
            "display_name": "Rellenito de vacuno con pasas y piñones",
            "limit": 999,
            "packaging": "Paquete",
            "price_instructions": {
                "approx_size": true,
                "bulk_price": "9.00",
                "bunch_selector": false,
                "drained_weight": null,
                "increment_bunch_amount": 1.0,
                "is_new": false,
                "is_pack": false,
                "iva": 10,
                "min_bunch_amount": 1.0,
                "pack_size": null,
                "price_decreased": false,
                "reference_format": "kg",
                "reference_price": "9.00",
                "size_format": "kg",
                "total_units": null,
                "unit_name": null,
                "unit_price": "9.00",
                "unit_selector": true,
                "unit_size": 1.0,
                "selling_method": 0
            },
            "thumbnail": "https://prod-mercadona.imgix.net/images/425ec1c04773dfb6011caaf949f4288c.jpg?fit=crop&h=300&w=300",
            "share_url": "https://tienda.mercadona.es/product/3555/rellenito-vacuno-con-pasas-pinones-paquete",
            "categories": [
                {
                    "id": 3,
                    "name": "Carne",
                    "order": 17,
                    "level": 0,
                    "categories": [
                        {
                            "id": 40,
                            "name": "Vacuno",
                            "order": 17,
                            "level": 1,
                            "categories": [
                                {
                                    "id": 283,
                                    "name": "Vacuno",
                                    "order": 17,
                                    "level": 2
                                }
                            ]
                        }
                    ]
                }
            ],
            "published": true,
            "brand": null,
            "objectID": "3555",
            "_highlightResult": {
                "display_name": {
                    "value": "Rellenito de vacuno con pasas y <em>piñones</em>",
                    "matchLevel": "full",
                    "fullyHighlighted": false,
                    "matchedWords": [
                        "pinones"
                    ]
                },
                "packaging": {
                    "value": "Paquete",
                    "matchLevel": "none",
                    "matchedWords": []
                },
                "categories": [
                    {
                        "categories": [
                            {
                                "name": {
                                    "value": "Vacuno",
                                    "matchLevel": "none",
                                    "matchedWords": []
                                },
                                "categories": [
                                    {
                                        "name": {
                                            "value": "Vacuno",
                                            "matchLevel": "none",
                                            "matchedWords": []
                                        }
                                    }
                                ]
                            }
                        ]
                    }
                ]
            }
        }
    ],
    "nbHits": 6,
    "page": 0,
    "nbPages": 1,
    "hitsPerPage": 120,
    "exhaustiveNbHits": true,
    "query": "piñones",
    "queryAfterRemoval": "piñones",
    "params": "query=pi%C3%B1ones&clickAnalytics=true&analyticsTags=%5B%22web%22%5D",
    "queryID": "da09d02ca2c709364941d4c3b8bc0ef7",
    "processingTimeMS": 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment