Shopify Scraper

ENDPOINTS
GET/products/inventory

Product Inventory

Get how many units of each variant can be bought right now, plus the product's total stock.

QUERY PARAMS

Product link, handle or numeric ID. A link is all you need; a handle or ID also needs store.

Examples:

  • URL: https://fentybeauty.com/products/gloss-bomb-universal-lip-luminizer-fenty-glow
  • Handle: gloss-bomb-universal-lip-luminizer-fenty-glow
  • ID: 4350174232621

Store domain. Only needed when product is a handle or ID — a full link already names its store.

Example: fentybeauty.com

2-letter country code of the market to read: prices come back in that market's currency. Falls back to the store's default market when the store does not sell there.

Default: the store's own market

Allowed values: any ISO 3166-1 alpha-2 code (US, CA, GB, DE, FR, JP, ...)

Language for titles and descriptions, when the store publishes it.

Default: the store's own language

Allowed values: any ISO 639-1 code (en, fr, de, es, ja, ...)

{
  "store": "fentybeauty.com",
  "market": {
    "country": "US",
    "language": "en"
  },
  "product": {
    "id": 5293605486637,
    "handle": "gloss-bomb-universal-lip-luminizer-fenty-glow",
    "title": "Gloss Bomb Universal Lip Luminizer — Fenty Glow",
    "link": "https://fentybeauty.com/products/gloss-bomb-universal-lip-luminizer-fenty-glow",
    "is_available": true
  },
  "total_stock_quantity": 80,
  "tracked_stock_quantity": 80,
  "is_exact": true,
  "variants_count": 2,
  "notes": [],
  "variants": [
    {
      "id": 35110478774317,
      "title": "Fenty Glow / Standard",
      "sku": "22513",
      "link": "https://fentybeauty.com/products/gloss-bomb-universal-lip-luminizer-fenty-glow?variant=35110478774317",
      "is_available": true,
      "is_backordered": false,
      "stock_status": "in_stock",
      "stock_quantity": 40,
      "options": [
        {
          "name": "Color",
          "value": "Fenty Glow"
        },
        {
          "name": "Size",
          "value": "Standard"
        }
      ]
    },
    {
      "id": 44010724917293,
      "title": "Fenty Glow / Mini",
      "sku": "71569",
      "link": "https://fentybeauty.com/products/gloss-bomb-universal-lip-luminizer-fenty-glow?variant=44010724917293",
      "is_available": true,
      "is_backordered": false,
      "stock_status": "in_stock",
      "stock_quantity": 40,
      "options": [
        {
          "name": "Color",
          "value": "Fenty Glow"
        },
        {
          "name": "Size",
          "value": "Mini"
        }
      ]
    }
  ]
}