Market prices and trendsComing soon
Each perfume’s shop prices over time, and market trends by house or bottle size: median, spread and in-stock share.
Each call costs 0.5 credits. While market intelligence is closed, these endpoints return 503 and spend no credit.
| Endpoint | Returns |
|---|---|
GET /v1/market/prices?perfume={id}&market=SA&from=2026-09-01&to=2026-11-30 | Each offer’s price intervals, and a daily summary: lowest price, median price per ml, in-stock share |
GET /v1/market/trends?market=SA&by=brand|size | Per house or size: median, spread, in-stock share and the change since the start of the window |
The window defaults to the last 90 days, at most 366. type defaults to full_bottle. Spread is the interquartile range over the median.
Parameters
| param | Description |
|---|---|
perfume | The perfume’s id (perfume_id) — prices only, required |
market | Two-letter country code (SA, EG…) — required for trends, optional for prices |
from · to | Dates like 2026-11-01 |
type | full_bottle, decant, sample, set, refill, tester or body_spray |
by | Trends only: brand (default) or size |
brand | Trends only: one house’s id |
A perfume’s price history
Each offer carries the shop’s name, its product page (without query parameters) and its price intervals: from until to, with to empty for the price in force now. Only offers from shops whose prices we have approved for publication appear — the same rule as GET /v1/perfumes/{id}/prices.
curl "https://api.ourscent.online/v1/market/prices?perfume={id}&market=SA&from=2026-10-01&to=2026-11-30" \
-H "Authorization: Bearer os_live_…"{
"id": "Khamrah-Lattafa-Perfumes-Lattafa-Perfumes",
"market": "SA",
"type": "full_bottle",
"from": "2026-10-01",
"to": "2026-11-30",
"offers": [
{
"id": "k3v7q2m9x4ab",
"shop": "shop_a",
"shop_name": "Shop A",
"shop_name_ar": "متجر أ",
"url": "https://shop-a.example/products/khamrah-100ml",
"market": "SA",
"size_ml": 100.0,
"type": "full_bottle",
"currency": "SAR",
"history": [
{ "price": 300.0, "price_per_ml": 3.0, "in_stock": true,
"from": "2026-10-01T08:00:00Z", "to": "2026-11-01T08:00:00Z",
"last_seen": "2026-10-31T08:00:00Z", "observations": 31 },
{ "price": 240.0, "price_per_ml": 2.4, "in_stock": true,
"from": "2026-11-01T08:00:00Z", "to": null,
"last_seen": "2026-11-30T08:00:00Z", "observations": 30 }
]
}
],
"daily": [
{ "day": "2026-11-01", "market": "SA", "currency": "SAR", "offers": 3,
"in_stock_share": 0.667, "lowest_price": 240.0, "lowest_price_per_ml": 2.4,
"lowest_shop": "shop_a", "median_price_per_ml": 2.6 }
]
}A market’s trends
One row per house or size and currency: the figures at the end of the window, start at its beginning, and change_pct between the two. Results are paged with limit and cursor like every list.
curl "https://api.ourscent.online/v1/market/trends?market=SA&by=brand&from=2026-10-01&to=2026-11-30" \
-H "Authorization: Bearer os_live_…"{
"market": "SA",
"by": "brand",
"type": "full_bottle",
"brand": null,
"from": "2026-10-01",
"to": "2026-11-30",
"total": 1,
"next_cursor": null,
"items": [
{
"brand": { "id": "lattafa-perfumes", "name": "Lattafa Perfumes" },
"currency": "SAR",
"offers": 4, "in_stock": 3, "in_stock_share": 0.75,
"perfumes": 2, "shops": 2,
"median_price": 240.0, "min_price": 200.0, "max_price": 280.0,
"median_price_per_ml": 2.4, "p25_price_per_ml": 2.2, "p75_price_per_ml": 2.6,
"spread": 0.167,
"start": { "offers": 4, "median_price": 280.0,
"median_price_per_ml": 2.8, "in_stock_share": 0.75 },
"change_pct": { "median_price": -14.3, "median_price_per_ml": -14.3 }
}
]
}On the MCP server: the get_market_prices and get_market_trends tools, at the same price.