Price history API for Amazon.in & Flipkart
The same data behind every TechCraze page, as JSON: today's price and MRP, the lowest and highest prices we have recorded, the time-weighted 90-day average, a buy/wait verdict, the full price history and live price drops. Built for price-comparison sites, deal channels, browser extensions and market research.
Basics
- Base URL:
https://techcraze.co/api/v1 - All prices are integers in paise (₹1 = 100 paise).
1699900is ₹16,999. - All timestamps are ISO 8601 in UTC.
- Responses are JSON and never cached (
Cache-Control: no-store). We never return store page HTML. - The API is for server-to-server use. Browsers can't call it directly (no CORS), which keeps your key out of public JavaScript.
Authentication
Send your key in the Authorization header (preferred) or in x-api-key. Keys start with pt_live_. We store only a hash, so we can't show a lost key again: we revoke it and issue a new one.
curl -H "Authorization: Bearer pt_live_…" "https://techcraze.co/api/v1/product?id=AbC123xy" curl -H "x-api-key: pt_live_…" "https://techcraze.co/api/v1/product?id=AbC123xy"
Endpoints
GET /product · 1 unit
A product summary by our id (the 8 characters at the end of a TechCraze product URL) or by a store url. Pass exactly one. Short links like amzn.in and fkrt.it work too.
If we don't track a URL yet, we start tracking it and answer 202 with {"status": "tracking"}. That costs nothing. Retry a few minutes later. History builds up from then on.
curl -H "Authorization: Bearer $PRICETRAIL_KEY" \ "https://techcraze.co/api/v1/product?url=https%3A%2F%2Fwww.amazon.in%2Fdp%2FB0D7Z8XYZ1"
{
"status": "ok",
"product": {
"id": "AbC123xy",
"title": "Samsung Galaxy M35 5G (Moonlight Blue, 8GB RAM, 128GB Storage)",
"store": "amazon.in",
"url": "https://www.amazon.in/dp/B0D7Z8XYZ1",
"brand": "Samsung",
"category": "mobiles",
"image": "https://m.media-amazon.com/images/I/…jpg",
"current": 1699900,
"mrp": 2499900,
"lowest": 1649900,
"highest": 1999900,
"avg90": 1784211,
"inStock": true,
"verdict": { "kind": "good", "label": "Good price", "reason": "Below its usual price over the last 90 days." },
"trackedDays": 143,
"pointsCount": 27,
"lastCheckedAt": "2026-11-08T05:12:44.000Z",
"lastChangeAt": "2026-11-06T18:03:10.000Z",
"pageUrl": "https://techcraze.co/p/samsung-galaxy-m35-5g-AbC123xy"
}
}current is null when out of stock. lowest, highest and avg90 count in-stock prices only. verdict.kind is one of great, good, fair, wait or tracking (not enough history yet).
GET /history · 2 units
Price points for id over the last days (1–3650, default 365). Each point is [ts, price_paise, mrp_paise, in_stock]. Points are recorded on change, so a price holds until the next point. The first point can be older than the window: it is the price that was live when the window opened.
curl -H "Authorization: Bearer $PRICETRAIL_KEY" "https://techcraze.co/api/v1/history?id=AbC123xy&days=30"
{
"status": "ok",
"id": "AbC123xy",
"title": "Samsung Galaxy M35 5G (…)",
"days": 30,
"from": "2026-10-09T06:00:00.000Z",
"to": "2026-11-08T06:00:00.000Z",
"columns": ["ts", "price_paise", "mrp_paise", "in_stock"],
"points": [
["2026-10-02T09:14:00.000Z", 1849900, 2499900, true],
["2026-10-20T11:40:00.000Z", 1749900, 2499900, true],
["2026-10-27T02:05:00.000Z", null, 2499900, false],
["2026-11-06T18:03:10.000Z", 1699900, 2499900, true]
]
}GET /deals · 1 unit
Live price drops, using the same filters as our price drop finder. Up to 100 rows.
window | 1, 7 (default) or 30 days |
|---|---|
min | Minimum drop in % (default 5, max 90) |
atl | 1 = only products at their all-time low |
store | amazon.in or flipkart |
cat, brand | Category or brand name or slug |
pmin, pmax | Price range in rupees (same as the website filter) |
sort | drop (default), price or recent |
limit | 1–100, default 50 |
A drop compares today's price with the highest in-stock price during the window (windowHigh).
curl -H "Authorization: Bearer $PRICETRAIL_KEY" "https://techcraze.co/api/v1/deals?store=flipkart&min=10&window=7"
{
"status": "ok",
"query": { "window": "7", "minDrop": 10, "atl": false, "store": "flipkart", "sort": "drop" },
"count": 1,
"deals": [
{
"id": "Xy98Kq2L",
"title": "boAt Airdopes 141 …",
"store": "flipkart",
"brand": "boAt",
"category": "earbuds",
"image": "https://rukminim2.flixcart.com/…jpeg",
"current": 89900,
"mrp": 499000,
"lowest": 89900,
"windowHigh": 129900,
"dropPct": 30.8,
"atLowest": true,
"lastChangeAt": "2026-11-07T14:22:00.000Z",
"pageUrl": "https://techcraze.co/p/boat-airdopes-141-Xy98Kq2L"
}
]
}POST /products/batch · 1 unit per product found
Up to 50 summaries in one call. Send ids, urls or both. Items that are not found or have only just started tracking are free. You need as many units left as items sent.
curl -X POST -H "Authorization: Bearer $PRICETRAIL_KEY" -H "Content-Type: application/json" \
-d '{"ids": ["AbC123xy", "ZZZZZZZZ"], "urls": ["https://www.flipkart.com/…?pid=MOBGTAGPTB3VS24W"]}' \
"https://techcraze.co/api/v1/products/batch"{
"status": "ok",
"count": 3,
"found": 1,
"results": [
{ "input": "AbC123xy", "status": "ok", "product": { "id": "AbC123xy", "…": "same fields as /product" } },
{ "input": "ZZZZZZZZ", "status": "not_found" },
{ "input": "https://www.flipkart.com/…?pid=MOBGTAGPTB3VS24W", "status": "tracking", "id": "Pq7Lm2Nx", "pageUrl": "https://techcraze.co/p/product-Pq7Lm2Nx" }
]
}Quotas and rate limits
Each plan has a monthly allowance of units and a per-minute request limit. Units reset on the 1st of every month at 00:00 UTC. Errors and tracking answers cost 0 units. Every response carries:
X-Quota-Limit | Units per month on your plan |
|---|---|
X-Quota-Remaining | Units left this month, after this call |
X-Quota-Reset | When the monthly allowance resets |
X-RateLimit-Limit | Requests allowed per minute |
X-RateLimit-Remaining | Requests left in the current minute |
X-Units-Charged | Units this call cost |
Errors
Errors use normal HTTP status codes and a JSON body with a stable code:
HTTP/1.1 429 Too Many Requests
Retry-After: 21
X-RateLimit-Limit: 30
{ "error": { "code": "rate_limited", "message": "Rate limit is 30 requests per minute." } }| Status | code | Meaning |
|---|---|---|
| 400 | bad_request | A parameter is missing or invalid (for example days outside 1–3650). |
| 400 | unsupported_url | The URL is not an Amazon.in or Flipkart product page. |
| 401 | missing_key | No API key in the request. |
| 401 | invalid_key | The key doesn't exist. |
| 403 | key_revoked | The key was revoked. Contact us for a new one. |
| 404 | not_found | No product with that id, or an unknown endpoint. |
| 429 | rate_limited | Over your per-minute limit. Wait for Retry-After seconds. |
| 429 | quota_exceeded | This month's units are used up. Resets on the 1st (UTC). |
| 402 | payment_required | Your self-serve subscription lapsed. Renew it on the developer dashboard. |
| 429 | too_many_invalid_keys | Too many bad-key attempts from your IP. Wait and check your key. |
| 500 | internal_error | Our side failed. The call is not charged; retry later. |
Plans
| Plan | Units / month | Requests / minute | Price |
|---|---|---|---|
| Starter | 10,000 | 30 | Contact us |
| Growth | 1,00,000 | 120 | Contact us |
| Business | 10,00,000 | 600 | Contact us |
Need more, or a one-off data export? Get in touch. Data covers products tracked on TechCraze; any Amazon.in or Flipkart product starts tracking the first time someone asks for it.