# StockX product history API

Get StockX price history and recent sales by product or size variant via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as output, url, and retrieve structured data including resolved source currency, selected market, history-point timestamp, source historical price point, and reported recent-sale amount for price timeline, and size comparison.

Documentation: https://openany.si/stockx/stockx-product-history-api/10d98b2f-8efd-452b-bca3-ca002001ff84/
API ID: 10d98b2f-8efd-452b-bca3-ca002001ff84
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/stockx/v1/product/history
Page update time: 2026-12-03T02:45:54.802Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:45:54.465Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits consumed",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Usage and limits
## StockX Price History API

Select url or id, optionally variant for one size. range and intervals control the history series, while sales limits recent\_sales; source summary statistics and individual transactions have different aggregation scopes.

## What You Can Build

- **Price timeline**: Keep historical points separate from recent-sale entries.
- **Size comparison**: Attach size-variant and market context to each saved series.

## Returned Data

| Field | Meaning |
| --- | --- |
| `currency` | Resolved source currency |
| `country` | Selected market |
| `price_history[].date` | History-point timestamp |
| `price_history[].price` | Source historical price point |
| `recent_sales[].amount` | Reported recent-sale amount |
| `recent_sales[].variant_id` | Sold size-variant identifier |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "StockX product history API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "url": {
          "type": "string",
          "description": "Product URL (https://stockx.com/<url-key>)."
        },
        "id": {
          "type": "string",
          "description": "Product URL key or product id instead of url."
        },
        "variant": {
          "type": "string",
          "description": "A size's variant id (from recent_sales[].variant_id) for that size's history."
        },
        "range": {
          "type": "string",
          "description": "History range (default all).",
          "enum": [
            "1m",
            "3m",
            "6m",
            "ytd",
            "1y",
            "all"
          ]
        },
        "intervals": {
          "type": "integer",
          "description": "Points in the price history (1-400; default by range)."
        },
        "sales": {
          "type": "integer",
          "description": "How many recent sales (1-100, default 20)."
        },
        "currency": {
          "type": "string",
          "description": "Currency (default USD): USD, EUR, GBP, CAD, AUD, JPY, CHF, SGD, HKD, KRW, NZD, MXN, CNY, SEK, DKK, NOK, PLN."
        },
        "country": {
          "type": "string",
          "description": "Market country, two letters (default US)."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON exports are not exposed.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "Native CSV/NDJSON record selector; it has no effect on this JSON-only product."
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "cached": {
      "type": "boolean"
    },
    "category": {
      "type": "string"
    },
    "country": {
      "type": "string"
    },
    "credits_used": {
      "type": "integer"
    },
    "currency": {
      "type": "string"
    },
    "end_date": {
      "type": "string"
    },
    "id": {
      "type": "string"
    },
    "intervals": {
      "type": "integer"
    },
    "price_history": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "date": {
                "type": "string"
              },
              "price": {
                "type": "integer"
              }
            }
          },
          {
            "type": "string"
          }
        ]
      }
    },
    "range": {
      "type": "string"
    },
    "recent_sales": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "amount": {
                "type": "integer"
              },
              "date": {
                "type": "string"
              },
              "order_type": {
                "type": "string"
              },
              "same_fees": {
                "type": "null"
              },
              "size": {
                "type": "string"
              },
              "variant_id": {
                "type": "string"
              }
            }
          },
          {
            "type": "string"
          }
        ]
      }
    },
    "start_date": {
      "type": "string"
    },
    "statistics": {
      "type": "object",
      "properties": {
        "annual_high": {
          "type": "integer"
        },
        "annual_low": {
          "type": "integer"
        },
        "last_90_days_average": {
          "type": "integer"
        },
        "last_90_days_high": {
          "type": "integer"
        },
        "last_90_days_low": {
          "type": "integer"
        },
        "last_90_days_sales": {
          "type": "integer"
        },
        "price_premium": {
          "type": "number"
        },
        "volatility": {
          "type": "number"
        }
      }
    },
    "title": {
      "type": "string"
    },
    "url_key": {
      "type": "string"
    },
    "variant": {
      "type": "null"
    }
  }
}
```

## Request example
Scenario: Official example · Official documentation response · Supplier-tr
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/stockx/v1/product/history?output=json&url=https%3A%2F%2Fstockx.com%2Fair-jordan-4-retro-black-cat-2025' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "cached": false,
  "category": "sneakers",
  "country": "US",
  "credits_used": 1,
  "currency": "USD",
  "end_date": "2026-11-04",
  "id": "15795a80-5cc8-4d2d-9ed0-20250d83be7f",
  "intervals": 100,
  "price_history": [
    {
      "date": "2025-10-25T00:00:00.000Z",
      "price": 634
    },
    {
      "date": "2025-10-28T18:14:23.000Z",
      "price": 374
    },
    "… 98 more"
  ],
  "range": "all",
  "recent_sales": [
    {
      "amount": 301,
      "date": "2026-11-04T05:06:29.361Z",
      "order_type": "EXPRESS",
      "same_fees": null,
      "size": "12",
      "variant_id": "d0eb6aed-b4f7-43bb-b268-afa1b98095e0"
    },
    {
      "amount": 311,
      "date": "2026-11-04T05:06:05.83Z",
      "order_type": "EXPRESS",
      "same_fees": null,
      "size": "12",
      "variant_id": "d0eb6aed-b4f7-43bb-b268-afa1b98095e0"
    },
    "… 18 more"
  ],
  "start_date": "all",
  "statistics": {
    "annual_high": 1001,
    "annual_low": 145,
    "last_90_days_average": 316,
    "last_90_days_high": 816,
    "last_90_days_low": 210,
    "last_90_days_sales": 5460,
    "price_premium": 0.368,
    "volatility": 0.117141
  },
  "title": "Jordan 4 Retro Black Cat (2025)",
  "url_key": "air-jordan-4-retro-black-cat-2025",
  "variant": null
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### How do I select a size-specific history?
Use variant with a variant_id from recent_sales or another supported product record.

### How many history points and recent sales can I request?
intervals accepts 1–400 points; sales accepts 1–100 entries, default 20. range defaults to all.

### Can currencies and markets differ?
Yes. currency defaults to USD and country to US; keep both with any comparison.

### Are aggregate history points individual sales?
Not necessarily. Preserve the distinction between price_history, statistics and recent_sales, including each series' scope and timestamps.

### How do I bypass cached results?
Pass fresh=1. A cache bypass retrieves available source data; it does not make unpublished or restricted records available.

### Can I request CSV or NDJSON?
This OpenAny implementation serves JSON only. Omit output or set output=json.

## Available implementations
- apish: https://openany.si/stockx/stockx-product-history-api/10d98b2f-8efd-452b-bca3-ca002001ff84/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
