Piloterr

Mango Product

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

GET
/v2/mango/product

Fetch a Mango product by URL, including the selling price and sizes in stock.

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

A shop.mango.com product URL. The colour segment in the path selects the colour.

country?string

Unused when query is a full product URL. The URL path carries the region.

Default"fr"
return_page_source?boolean

Return the page HTML instead of the parsed product.

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
url?string
brand?string
image?string
price?number
sizes?array<>
title?string
colors?array<>
colour?string
images?array<string>
country?string
currency?string
colour_id?string
product_id?integer
composition?string
description?string
price_display?string
compare_at_price?number
Example Request
curl -X GET 'https://api.piloterr.com/v2/mango/product?query=string'
Example Response
{
  "url": "https://shop.mango.com/fr/fr/p/femme/robes-et-combinaisons/courte/robe-courte-maille/37097796/92/00",
  "brand": "Mango",
  "image": "https://media.mango.com/is/image/punto/37097796-92-002",
  "price": 29.99,
  "sizes": [
    {
      "size": "XXS",
      "is_in_stock": false,
      "is_low_in_stock": false
    },
    {
      "size": "XS",
      "is_in_stock": true,
      "is_low_in_stock": false
    },
    {
      "size": "S",
      "is_in_stock": true,
      "is_low_in_stock": false
    },
    {
      "size": "M",
      "is_in_stock": true,
      "is_low_in_stock": false
    },
    {
      "size": "L",
      "is_in_stock": true,
      "is_low_in_stock": false
    },
    {
      "size": "XL",
      "is_in_stock": false,
      "is_low_in_stock": false
    },
    {
      "size": "XXL",
      "is_in_stock": false,
      "is_low_in_stock": false
    }
  ],
  "title": "Robe courte maille",
  "colors": [
    {
      "url": "https://shop.mango.com/fr/fr/p/femme/robes-et-combinaisons/courte/robe-courte-maille/37097796/56/00",
      "colour": "Bleu marine",
      "colour_id": "56"
    },
    {
      "url": "https://shop.mango.com/fr/fr/p/femme/robes-et-combinaisons/courte/robe-courte-maille/37097796/92/00",
      "colour": "Gris",
      "colour_id": "92"
    }
  ],
  "colour": "Gris",
  "images": [
    "https://media.mango.com/is/image/punto/37097796-92-002",
    "https://media.mango.com/is/image/punto/37097796-92-001",
    "https://media.mango.com/is/image/punto/37097796-92-003",
    "https://media.mango.com/is/image/punto/37097796-92-004",
    "https://media.mango.com/is/image/punto/37097796-92-900",
    "https://media.mango.com/is/image/punto/37097796-92-023",
    "https://media.mango.com/is/image/punto/37097796-92-030"
  ],
  "country": "fr",
  "currency": "EUR",
  "colour_id": "92",
  "product_id": 37097796,
  "composition": "Composition: 31% polyester, 63% acrylique, 4% laine, 2% elasthanne",
  "description": "Tissu en grosse maille. Finitions côtelées. Silhouette droite. Coupe courte. Col montant avec fermeture à boutons. Manches longues",
  "price_display": "29,99 €",
  "compare_at_price": 39.99
}