Piloterr

Mango Search

Use in bulk with DataflowRun this endpoint over a file or a list, once or on a schedule.

GET
/v2/mango/search

Search Mango by keyword and return product cards with the current selling price.

Credit cost: 1 credit per call

Authorization

ApiKeyAuth
headerx-api-key<token>

Your API key. Include it in the x-api-key header for every request.

Query Parameters

query*string

Keyword or a shop.mango.com search URL.

country?string

Store for a keyword. fr (default) is /fr/fr/search/femme. us is /us/en/search/women. gb and uk are /gb/en/search/women. A full URL keeps its own path.

Default"fr"
return_page_source?boolean

Return the page HTML instead of the parsed search.

Defaultfalse
fields?string

Comma-separated list of response fields to return, with dot notation for nested fields (e.g. name,location.city).

is_async?boolean

Run the request as a background job: the API answers 202 with a job_id to poll on GET /v1/jobs/{id}.

Defaultfalse
soft_fail?boolean

Return HTTP 200 even when the request fails; the error is in the error field of the body.

Defaultfalse

Response Body

Successful response

application/json
  1. response
results?array<>
pagination?
Example Request
curl -X GET 'https://api.piloterr.com/v2/mango/search?query=string'
Example Response
{
  "results": [
    {
      "url": "https://shop.mango.com/fr/fr/p/femme/robes-et-combinaisons/courte/robe-courte-maille/37097796/92/00",
      "image": "https://media.mango.com/is/image/punto/37097796-92-001",
      "price": 29.99,
      "title": "Robe courte maille",
      "colour": "Gris",
      "currency": "EUR",
      "colour_id": "92",
      "product_id": 37097796,
      "price_display": "29,99 €",
      "compare_at_price": 39.99
    }
  ],
  "pagination": {
    "next": null,
    "page": 1,
    "per_page": 8,
    "total_pages": null,
    "total_results": 535
  }
}