{"openapi":"3.1.0","info":{"title":"PriceBell API","version":"0.0.1","description":"Track Google Shopping prices and products: a watchlist checked on schedule, with price history and alerts. Authenticate with a personal API key from your account (Bearer token). Each price check of a tracked product in one country costs 1 credit; a product checked daily uses about 30 credits a month. Each alert email costs 20 credits on the free plan, 10 with credit packs, 10 on Starter, 3 on Pro, 1 on Business; without enough credits, the alert isn't sent. Failed checks are refunded. The free plan includes 200 API and MCP requests a month (UTC) and reads the last 30 days of price history; a plan or a credit pack lifts both limits. GET /account (get_account), which says how many are left, isn't counted. On the free plan, alerts (price drop, offered again, target price) email for the first 5 products added among the active ones with an alert set; the others stay tracked, without emails (alerts_paused: true), until one of those has its alert turned off or is paused. A plan or a credit pack alerts on every product. alert_on_drop and target_price can be set on any product either way. The same key works with the MCP server at /api/mcp, which also accepts a sign-in through OAuth."},"externalDocs":{"description":"Documentation","url":"https://www.pricebell.dev/docs"},"servers":[{"url":"https://www.pricebell.dev/api/v1"}],"tags":[{"name":"Watchlist","description":"The products you track, checked on their schedule."},{"name":"Google Shopping data","description":"Search Google Shopping and read any product's shared price history."},{"name":"Account","description":"Your plan and your credits."}],"security":[{"bearerAuth":[]}],"paths":{"/account":{"get":{"operationId":"getAccount","tags":["Account"],"summary":"Plan and remaining credits","description":"Your plan, the credits left (monthly allowance and packs), how many products you track and the credits they use per month, the credits each alert email costs, the days of history you can read and, on the free plan, the API and MCP requests left this month. Not counted as a request. The free plan includes 200 API and MCP requests a month (UTC) and reads the last 30 days of price history; a plan or a credit pack lifts both limits. GET /account (get_account), which says how many are left, isn't counted.","responses":{"200":{"description":"Account","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"},"example":{"plan":"basic","plan_name":"Starter","credits":29588,"renews_at":"2026-12-01T09:12:44.000Z","credits_refill_at":"2026-12-01T09:12:44.000Z","products":42,"product_limit":50000,"fastest_interval_minutes":60,"alert_credits":10,"monthly_credits":1260,"history_days":730,"api_requests_used":null,"api_requests_limit":null,"api_requests_reset_at":null,"manage_url":"https://www.pricebell.dev/app"}}}},"401":{"description":"unauthorized: The API key is missing, revoked or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"generic: Unexpected error on our side. Retry in a moment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/search":{"get":{"operationId":"searchGoogleShopping","tags":["Google Shopping data"],"summary":"Search Google Shopping","description":"Google Shopping search results (sponsored included), to find the product ID of a product. Free, limited to 30 searches per hour.","parameters":[{"name":"query","in":"query","required":true,"description":"Keywords","schema":{"type":"string"},"example":"airpods pro 2"},{"name":"marketplace","in":"query","description":"Country whose Google Shopping results are read, in its currency, e.g. us (US): us (USD), gb (GBP), fr (EUR), de (EUR), es (EUR), it (EUR), nl (EUR), be (EUR), at (EUR), ch (CHF), ie (EUR), pt (EUR), pl (PLN), se (SEK), dk (DKK), no (NOK), fi (EUR), cz (CZK), hu (HUF), ro (RON), gr (EUR), ca (CAD), mx (MXN), br (BRL), ar (ARS), cl (CLP), co (COP), au (AUD), nz (NZD), in (INR), sg (SGD), ae (AED), za (ZAR)","schema":{"type":"string","enum":["us","gb","fr","de","es","it","nl","be","at","ch","ie","pt","pl","se","dk","no","fi","cz","hu","ro","gr","ca","mx","br","ar","cl","co","au","nz","in","sg","ae","za"],"default":"us","description":"Country whose Google Shopping results are read, in its currency, e.g. us (US): us (USD), gb (GBP), fr (EUR), de (EUR), es (EUR), it (EUR), nl (EUR), be (EUR), at (EUR), ch (CHF), ie (EUR), pt (EUR), pl (PLN), se (SEK), dk (DKK), no (NOK), fi (EUR), cz (CZK), hu (HUF), ro (RON), gr (EUR), ca (CAD), mx (MXN), br (BRL), ar (ARS), cl (CLP), co (COP), au (AUD), nz (NZD), in (INR), sg (SGD), ae (AED), za (ZAR)"},"example":"us"}],"responses":{"200":{"description":"Results","content":{"application/json":{"schema":{"type":"object","required":["results"],"properties":{"results":{"type":"array","items":{"$ref":"#/components/schemas/SearchResult"}}}},"example":{"results":[{"google_product_id":"6883422599141817139","title":"Apple AirPods Pro 2nd Generation with MagSafe Charging Case","image":"https://www.pricebell.dev/api/images/0123456789abcdef0123456789abcdef.webp","price":199.99,"currency":"USD","rating":4.4,"reviews_count":12873}]}}}},"400":{"description":"invalid_option: A setting isn't valid: marketplace (us, gb, fr, de, es, it, nl, be, at, ch, ie, pt, pl, se, dk, no, fi, cz, hu, ro, gr, ca, mx, br, ar, cl, co, au, nz, in, sg, ae, za), filter, interval_minutes (5, 30, 60, 360, 720, 1440), target_price, alert_on_drop or paused. Also when the body isn't a JSON object, a required argument is missing, or the product to check is paused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: The API key is missing, revoked or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"api_limit: A free account made its 200 API and MCP requests of the month (UTC). They start again on the 1st, and a plan or a credit pack lifts the limit; GET /account still answers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: More than 30 searches or 600 history reads in an hour, too many reads of Google Shopping at once, or too many different products read today: 200 a day on the free plan, 1,000 with a credit pack, then 1,000 with Starter, 3,000 with Pro, 10,000 with Business. Histories and new watchlist entries count, once per product; your watchlist and the products already read today stay available. Retry later, or after midnight UTC for the daily limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"generic: Unexpected error on our side. Retry in a moment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"store_unavailable: Google Shopping couldn't be read right now (GET /search). Nothing is charged; retry in a moment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/history":{"get":{"operationId":"getGoogleProductHistory","tags":["Google Shopping data"],"summary":"Price history of any product ID","description":"Every price PriceBell read for a product ID on a marketplace over the period, whoever tracks it, oldest first, with the lowest, highest and average of those prices. A price the store gave in another currency than the marketplace's isn't part of it. A history of more than 5000 points is thinned evenly, keeping its first and last point. No credit is used and nothing is read from Google Shopping, so a product ID nobody tracked yet has an empty history; limited to 600 reads per hour. The free plan reads the last 30 days: history_limited says when the period asked for was cut.","parameters":[{"name":"google_product_id","in":"query","required":true,"description":"Google Shopping product ID (the catalogid in a Google Shopping link)","schema":{"type":"string","pattern":"^(?:[0-9]{6,25}|t[0-9a-f]{16})$","description":"Google Shopping product ID (the catalogid in a Google Shopping link)"},"example":"6883422599141817139"},{"name":"marketplace","in":"query","description":"Country whose Google Shopping results are read, in its currency, e.g. us (US): us (USD), gb (GBP), fr (EUR), de (EUR), es (EUR), it (EUR), nl (EUR), be (EUR), at (EUR), ch (CHF), ie (EUR), pt (EUR), pl (PLN), se (SEK), dk (DKK), no (NOK), fi (EUR), cz (CZK), hu (HUF), ro (RON), gr (EUR), ca (CAD), mx (MXN), br (BRL), ar (ARS), cl (CLP), co (COP), au (AUD), nz (NZD), in (INR), sg (SGD), ae (AED), za (ZAR)","schema":{"type":"string","enum":["us","gb","fr","de","es","it","nl","be","at","ch","ie","pt","pl","se","dk","no","fi","cz","hu","ro","gr","ca","mx","br","ar","cl","co","au","nz","in","sg","ae","za"],"default":"us","description":"Country whose Google Shopping results are read, in its currency, e.g. us (US): us (USD), gb (GBP), fr (EUR), de (EUR), es (EUR), it (EUR), nl (EUR), be (EUR), at (EUR), ch (CHF), ie (EUR), pt (EUR), pl (PLN), se (SEK), dk (DKK), no (NOK), fi (EUR), cz (CZK), hu (HUF), ro (RON), gr (EUR), ca (CAD), mx (MXN), br (BRL), ar (ARS), cl (CLP), co (COP), au (AUD), nz (NZD), in (INR), sg (SGD), ae (AED), za (ZAR)"},"example":"us"},{"name":"days","in":"query","description":"History period in days. The free plan reads the last 30: history_days says which period was returned.","schema":{"type":"integer","minimum":1,"maximum":730,"default":90,"description":"History period in days. The free plan reads the last 30: history_days says which period was returned."},"example":"30"}],"responses":{"200":{"description":"History of the product ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleProductHistory"},"example":{"google_product_id":"6883422599141817139","marketplace":"us","currency":"USD","lowest_price":189.99,"highest_price":249,"average_price":212.99,"history_days":90,"history_limited":false,"history":[{"price":249,"in_stock":true,"coupon":null,"seller":"Best Buy","checked_at":"2026-10-01T09:30:35.002Z"},{"price":189.99,"in_stock":true,"coupon":null,"seller":"Best Buy","checked_at":"2026-10-24T08:00:10.913Z"},{"price":199.99,"in_stock":true,"coupon":null,"seller":"Best Buy","checked_at":"2026-11-03T08:00:12.441Z"}]}}}},"400":{"description":"invalid_product: product is neither a Google Shopping product ID (the catalogid in a Google Shopping link) nor a Google Shopping product link, or google_product_id isn't a Google Shopping product ID (the catalogid in a Google Shopping link). A product ID alone works only for a product PriceBell already knows in that country (a search result, or one added by its link before): otherwise send its Google Shopping link. invalid_option: A setting isn't valid: marketplace (us, gb, fr, de, es, it, nl, be, at, ch, ie, pt, pl, se, dk, no, fi, cz, hu, ro, gr, ca, mx, br, ar, cl, co, au, nz, in, sg, ae, za), filter, interval_minutes (5, 30, 60, 360, 720, 1440), target_price, alert_on_drop or paused. Also when the body isn't a JSON object, a required argument is missing, or the product to check is paused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: The API key is missing, revoked or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"api_limit: A free account made its 200 API and MCP requests of the month (UTC). They start again on the 1st, and a plan or a credit pack lifts the limit; GET /account still answers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: More than 30 searches or 600 history reads in an hour, too many reads of Google Shopping at once, or too many different products read today: 200 a day on the free plan, 1,000 with a credit pack, then 1,000 with Starter, 3,000 with Pro, 10,000 with Business. Histories and new watchlist entries count, once per product; your watchlist and the products already read today stay available. Retry later, or after midnight UTC for the daily limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"generic: Unexpected error on our side. Retry in a moment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/products":{"get":{"operationId":"listProducts","tags":["Watchlist"],"summary":"List tracked products","description":"Your watchlist, newest first, with each product's latest state and its recent prices (trend). Filter with google_product_id (and marketplace) to know if a product is tracked, or with filter to get the same lists as the app's tabs.","parameters":[{"name":"google_product_id","in":"query","description":"Only this product ID","schema":{"type":"string","pattern":"^(?:[0-9]{6,25}|t[0-9a-f]{16})$","description":"Google Shopping product ID (the catalogid in a Google Shopping link)"},"example":"6883422599141817139"},{"name":"marketplace","in":"query","description":"Only this Google Shopping store","schema":{"type":"string","enum":["us","gb","fr","de","es","it","nl","be","at","ch","ie","pt","pl","se","dk","no","fi","cz","hu","ro","gr","ca","mx","br","ar","cl","co","au","nz","in","sg","ae","za"],"description":"Only this Google Shopping store"}},{"name":"filter","in":"query","description":"Only the products of one of the app's watchlist filters. all: Every tracked product (default). drops: Cheaper now than when the product was added. target: At or below its target price. out_of_stock: No offer at the last check. attention: The last check didn't go through (last_error is set): no credits, not found or Google Shopping unavailable. paused: Paused by you: not checked, not charged.","schema":{"type":"string","enum":["all","drops","target","out_of_stock","attention","paused"],"default":"all","description":"Only the products of one of the app's watchlist filters. all: Every tracked product (default). drops: Cheaper now than when the product was added. target: At or below its target price. out_of_stock: No offer at the last check. attention: The last check didn't go through (last_error is set): no credits, not found or Google Shopping unavailable. paused: Paused by you: not checked, not charged."}},{"name":"page","in":"query","description":"Page number","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","description":"Products per page","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Products","content":{"application/json":{"schema":{"type":"object","required":["products","total","page"],"properties":{"products":{"type":"array","items":{"$ref":"#/components/schemas/Product"}},"total":{"type":"integer"},"page":{"type":"integer"}}},"example":{"products":[{"product_id":"8f0b3c7e-2a4d-4e51-9c1a-6d2f1b9e7a30","google_product_id":"6883422599141817139","marketplace":"us","url":"https://www.pricebell.dev/go/6883422599141817139?m=us","title":"Apple AirPods Pro 2nd Generation with MagSafe Charging Case","image":"https://www.pricebell.dev/api/images/0123456789abcdef0123456789abcdef.webp","brand":"Apple","currency":"USD","price":199.99,"first_price":249,"lowest_price":189.99,"highest_price":249,"in_stock":true,"stock":"12 sellers","coupon":null,"seller":"Best Buy","best_sellers_rank":null,"target_price":179,"alert_on_drop":true,"alerts_paused":false,"interval_minutes":1440,"status":"active","pause_reason":null,"last_error":null,"found_on":[],"checking":false,"last_checked_at":"2026-11-03T08:00:12.441Z","next_check_at":"2026-11-04T08:00:12.441Z","created_at":"2026-10-01T09:30:31.120Z","trend":[249,189.99,199.99]}],"total":1,"page":1}}}},"400":{"description":"invalid_product: product is neither a Google Shopping product ID (the catalogid in a Google Shopping link) nor a Google Shopping product link, or google_product_id isn't a Google Shopping product ID (the catalogid in a Google Shopping link). A product ID alone works only for a product PriceBell already knows in that country (a search result, or one added by its link before): otherwise send its Google Shopping link. invalid_option: A setting isn't valid: marketplace (us, gb, fr, de, es, it, nl, be, at, ch, ie, pt, pl, se, dk, no, fi, cz, hu, ro, gr, ca, mx, br, ar, cl, co, au, nz, in, sg, ae, za), filter, interval_minutes (5, 30, 60, 360, 720, 1440), target_price, alert_on_drop or paused. Also when the body isn't a JSON object, a required argument is missing, or the product to check is paused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: The API key is missing, revoked or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"api_limit: A free account made its 200 API and MCP requests of the month (UTC). They start again on the 1st, and a plan or a credit pack lifts the limit; GET /account still answers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"generic: Unexpected error on our side. Retry in a moment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"trackProduct","tags":["Watchlist"],"summary":"Track a product","description":"Adds a product ID or a Google Shopping link to your watchlist. A product ID alone works only for a product PriceBell already knows in that country (a search result, or one added by its link before): otherwise send its Google Shopping link. The first check runs in the background within seconds (checking is true until then): poll GET /products/{id}, or send wait: true to get the answer once it's done (up to 45 seconds). Each price check of a tracked product in one country costs 1 credit; a product checked daily uses about 30 credits a month. Each alert email costs 20 credits on the free plan, 10 with credit packs, 10 on Starter, 3 on Pro, 1 on Business; without enough credits, the alert isn't sent. Without credits the product is added and its first check waits. What Google Shopping answers shows on the product (last_error), never as an error here. Adding a product you already track returns it unchanged, with status 200.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["product"],"properties":{"product":{"type":"string","description":"product ID (6883422599141817139) or Google Shopping product link. A product ID alone works only for a product PriceBell already knows in that country (a search result, or one added by its link before): otherwise send its Google Shopping link."},"marketplace":{"type":"string","enum":["us","gb","fr","de","es","it","nl","be","at","ch","ie","pt","pl","se","dk","no","fi","cz","hu","ro","gr","ca","mx","br","ar","cl","co","au","nz","in","sg","ae","za"],"default":"us","description":"Country whose Google Shopping results are read, in its currency, e.g. us (US): us (USD), gb (GBP), fr (EUR), de (EUR), es (EUR), it (EUR), nl (EUR), be (EUR), at (EUR), ch (CHF), ie (EUR), pt (EUR), pl (PLN), se (SEK), dk (DKK), no (NOK), fi (EUR), cz (CZK), hu (HUF), ro (RON), gr (EUR), ca (CAD), mx (MXN), br (BRL), ar (ARS), cl (CLP), co (COP), au (AUD), nz (NZD), in (INR), sg (SGD), ae (AED), za (ZAR). A product link sets it on its own."},"target_price":{"type":["number","null"],"description":"Email the owner when the price goes at or below this amount (on the free plan, for the first 5 products with an alert). null removes it."},"interval_minutes":{"type":"integer","enum":[5,30,60,360,720,1440],"description":"Minutes between two checks (1440 = daily). Checks faster than daily need a plan or a credit pack: every 60 minutes with a pack or Starter, 30 with Pro, 5 with Business.","default":1440},"wait":{"type":"boolean","default":false,"description":"Answer once the first check is done (up to 45 seconds)"}}},"example":{"product":"https://www.google.com/search?ibp=oshop&q=airpods+pro+2&prds=catalogid:6883422599141817139&gl=us&udm=28","target_price":179,"wait":true}}}},"responses":{"200":{"description":"Already tracked: the product as it is, unchanged","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Product"},"example":{"product_id":"8f0b3c7e-2a4d-4e51-9c1a-6d2f1b9e7a30","google_product_id":"6883422599141817139","marketplace":"us","url":"https://www.pricebell.dev/go/6883422599141817139?m=us","title":"Apple AirPods Pro 2nd Generation with MagSafe Charging Case","image":"https://www.pricebell.dev/api/images/0123456789abcdef0123456789abcdef.webp","brand":"Apple","currency":"USD","price":199.99,"first_price":249,"lowest_price":189.99,"highest_price":249,"in_stock":true,"stock":"12 sellers","coupon":null,"seller":"Best Buy","best_sellers_rank":null,"target_price":179,"alert_on_drop":true,"alerts_paused":false,"interval_minutes":1440,"status":"active","pause_reason":null,"last_error":null,"found_on":[],"checking":false,"last_checked_at":"2026-11-03T08:00:12.441Z","next_check_at":"2026-11-04T08:00:12.441Z","created_at":"2026-10-01T09:30:31.120Z"}}}},"201":{"description":"Tracked product","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Product"},"example":{"product_id":"8f0b3c7e-2a4d-4e51-9c1a-6d2f1b9e7a30","google_product_id":"6883422599141817139","marketplace":"us","url":"https://www.pricebell.dev/go/6883422599141817139?m=us","title":"Apple AirPods Pro 2nd Generation with MagSafe Charging Case","image":"https://www.pricebell.dev/api/images/0123456789abcdef0123456789abcdef.webp","brand":"Apple","currency":"USD","price":199.99,"first_price":249,"lowest_price":189.99,"highest_price":249,"in_stock":true,"stock":"12 sellers","coupon":null,"seller":"Best Buy","best_sellers_rank":null,"target_price":179,"alert_on_drop":true,"alerts_paused":false,"interval_minutes":1440,"status":"active","pause_reason":null,"last_error":null,"found_on":[],"checking":false,"last_checked_at":"2026-11-03T08:00:12.441Z","next_check_at":"2026-11-04T08:00:12.441Z","created_at":"2026-10-01T09:30:31.120Z"}}}},"400":{"description":"invalid_product: product is neither a Google Shopping product ID (the catalogid in a Google Shopping link) nor a Google Shopping product link, or google_product_id isn't a Google Shopping product ID (the catalogid in a Google Shopping link). A product ID alone works only for a product PriceBell already knows in that country (a search result, or one added by its link before): otherwise send its Google Shopping link. unsupported_marketplace: The link is a Google Shopping search in a country that isn't supported (supported: us, gb, fr, de, es, it, nl, be, at, ch, ie, pt, pl, se, dk, no, fi, cz, hu, ro, gr, ca, mx, br, ar, cl, co, au, nz, in, sg, ae, za). invalid_option: A setting isn't valid: marketplace (us, gb, fr, de, es, it, nl, be, at, ch, ie, pt, pl, se, dk, no, fi, cz, hu, ro, gr, ca, mx, br, ar, cl, co, au, nz, in, sg, ae, za), filter, interval_minutes (5, 30, 60, 360, 720, 1440), target_price, alert_on_drop or paused. Also when the body isn't a JSON object, a required argument is missing, or the product to check is paused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: The API key is missing, revoked or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"api_limit: A free account made its 200 API and MCP requests of the month (UTC). They start again on the 1st, and a plan or a credit pack lifts the limit; GET /account still answers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"paid_option: Checks faster than daily need a plan or a credit pack: every 60 minutes with a pack or Starter, 30 with Pro, 5 with Business. product_limit: The account tracks as many products as its plan allows (50 on the free plan).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":{"code":"product_limit","message":"You've reached your plan's product limit. The free plan tracks up to 50 products."}}}}},"429":{"description":"rate_limited: More than 30 searches or 600 history reads in an hour, too many reads of Google Shopping at once, or too many different products read today: 200 a day on the free plan, 1,000 with a credit pack, then 1,000 with Starter, 3,000 with Pro, 10,000 with Business. Histories and new watchlist entries count, once per product; your watchlist and the products already read today stay available. Retry later, or after midnight UTC for the daily limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"generic: Unexpected error on our side. Retry in a moment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/products/{id}":{"get":{"operationId":"getProduct","tags":["Watchlist"],"summary":"Get a product and its price history","description":"The product's latest state and every price read of the period, oldest first. The history covers every read of this product ID on this marketplace, including those made before you added it, so a product added today can come with months of prices; created_at says when you added it. A price the store gave in another currency than the marketplace's isn't part of it. A history of more than 5000 points is thinned evenly, keeping its first and last point. The free plan reads the last 30 days: history_limited says when the period asked for was cut.","parameters":[{"name":"id","in":"path","required":true,"description":"product_id returned when the product was added","schema":{"type":"string","format":"uuid"},"example":"8f0b3c7e-2a4d-4e51-9c1a-6d2f1b9e7a30"},{"name":"days","in":"query","description":"History period in days. The free plan reads the last 30: history_days says which period was returned.","schema":{"type":"integer","minimum":1,"maximum":730,"default":90,"description":"History period in days. The free plan reads the last 30: history_days says which period was returned."},"example":"30"}],"responses":{"200":{"description":"Product with history","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductWithHistory"},"example":{"product_id":"8f0b3c7e-2a4d-4e51-9c1a-6d2f1b9e7a30","google_product_id":"6883422599141817139","marketplace":"us","url":"https://www.pricebell.dev/go/6883422599141817139?m=us","title":"Apple AirPods Pro 2nd Generation with MagSafe Charging Case","image":"https://www.pricebell.dev/api/images/0123456789abcdef0123456789abcdef.webp","brand":"Apple","currency":"USD","price":199.99,"first_price":249,"lowest_price":189.99,"highest_price":249,"in_stock":true,"stock":"12 sellers","coupon":null,"seller":"Best Buy","best_sellers_rank":null,"target_price":179,"alert_on_drop":true,"alerts_paused":false,"interval_minutes":1440,"status":"active","pause_reason":null,"last_error":null,"found_on":[],"checking":false,"last_checked_at":"2026-11-03T08:00:12.441Z","next_check_at":"2026-11-04T08:00:12.441Z","created_at":"2026-10-01T09:30:31.120Z","history_days":90,"history_limited":false,"history":[{"price":249,"in_stock":true,"coupon":null,"seller":"Best Buy","checked_at":"2026-10-01T09:30:35.002Z"},{"price":189.99,"in_stock":true,"coupon":null,"seller":"Best Buy","checked_at":"2026-10-24T08:00:10.913Z"},{"price":199.99,"in_stock":true,"coupon":null,"seller":"Best Buy","checked_at":"2026-11-03T08:00:12.441Z"}]}}}},"401":{"description":"unauthorized: The API key is missing, revoked or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"api_limit: A free account made its 200 API and MCP requests of the month (UTC). They start again on the 1st, and a plan or a credit pack lifts the limit; GET /account still answers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: No tracked product with this id on your account, or no such endpoint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: More than 30 searches or 600 history reads in an hour, too many reads of Google Shopping at once, or too many different products read today: 200 a day on the free plan, 1,000 with a credit pack, then 1,000 with Starter, 3,000 with Pro, 10,000 with Business. Histories and new watchlist entries count, once per product; your watchlist and the products already read today stay available. Retry later, or after midnight UTC for the daily limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"generic: Unexpected error on our side. Retry in a moment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"updateProduct","tags":["Watchlist"],"summary":"Change alerts and checks","description":"Target price, drop alerts, check interval, or pause. Send only what changes. On the free plan, alerts (price drop, offered again, target price) email for the first 5 products added among the active ones with an alert set; the others stay tracked, without emails (alerts_paused: true), until one of those has its alert turned off or is paused. A plan or a credit pack alerts on every product. alert_on_drop and target_price can be set on any product either way.","parameters":[{"name":"id","in":"path","required":true,"description":"product_id returned when the product was added","schema":{"type":"string","format":"uuid"},"example":"8f0b3c7e-2a4d-4e51-9c1a-6d2f1b9e7a30"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"target_price":{"type":["number","null"],"description":"Email the owner when the price goes at or below this amount (on the free plan, for the first 5 products with an alert). null removes it."},"interval_minutes":{"type":"integer","enum":[5,30,60,360,720,1440],"description":"Minutes between two checks (1440 = daily). Checks faster than daily need a plan or a credit pack: every 60 minutes with a pack or Starter, 30 with Pro, 5 with Business."},"alert_on_drop":{"type":"boolean","description":"Email when the price drops or the product is offered again (on the free plan, for the first 5 products with an alert)"},"paused":{"type":"boolean","description":"Stop checking (and charging) for now; false resumes, unless our team paused it (paused_by_team)"}}},"example":{"target_price":169.99,"interval_minutes":360}}}},"responses":{"200":{"description":"Product","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Product"},"example":{"product_id":"8f0b3c7e-2a4d-4e51-9c1a-6d2f1b9e7a30","google_product_id":"6883422599141817139","marketplace":"us","url":"https://www.pricebell.dev/go/6883422599141817139?m=us","title":"Apple AirPods Pro 2nd Generation with MagSafe Charging Case","image":"https://www.pricebell.dev/api/images/0123456789abcdef0123456789abcdef.webp","brand":"Apple","currency":"USD","price":199.99,"first_price":249,"lowest_price":189.99,"highest_price":249,"in_stock":true,"stock":"12 sellers","coupon":null,"seller":"Best Buy","best_sellers_rank":null,"target_price":179,"alert_on_drop":true,"alerts_paused":false,"interval_minutes":1440,"status":"active","pause_reason":null,"last_error":null,"found_on":[],"checking":false,"last_checked_at":"2026-11-03T08:00:12.441Z","next_check_at":"2026-11-04T08:00:12.441Z","created_at":"2026-10-01T09:30:31.120Z"}}}},"400":{"description":"invalid_option: A setting isn't valid: marketplace (us, gb, fr, de, es, it, nl, be, at, ch, ie, pt, pl, se, dk, no, fi, cz, hu, ro, gr, ca, mx, br, ar, cl, co, au, nz, in, sg, ae, za), filter, interval_minutes (5, 30, 60, 360, 720, 1440), target_price, alert_on_drop or paused. Also when the body isn't a JSON object, a required argument is missing, or the product to check is paused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: The API key is missing, revoked or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"api_limit: A free account made its 200 API and MCP requests of the month (UTC). They start again on the 1st, and a plan or a credit pack lifts the limit; GET /account still answers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"paid_option: Checks faster than daily need a plan or a credit pack: every 60 minutes with a pack or Starter, 30 with Pro, 5 with Business. paused_by_team: paused: false on a product our team paused (pause_reason: \"team\"): only the team resumes it. Write to us.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: No tracked product with this id on your account, or no such endpoint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"generic: Unexpected error on our side. Retry in a moment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteProduct","tags":["Watchlist"],"summary":"Stop tracking a product","description":"Removes the product and its price history.","parameters":[{"name":"id","in":"path","required":true,"description":"product_id returned when the product was added","schema":{"type":"string","format":"uuid"},"example":"8f0b3c7e-2a4d-4e51-9c1a-6d2f1b9e7a30"}],"responses":{"200":{"description":"Deleted","content":{"application/json":{"schema":{"type":"object","required":["deleted","product_id"],"properties":{"deleted":{"type":"boolean"},"product_id":{"type":"string","format":"uuid"}}},"example":{"deleted":true,"product_id":"8f0b3c7e-2a4d-4e51-9c1a-6d2f1b9e7a30"}}}},"401":{"description":"unauthorized: The API key is missing, revoked or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"api_limit: A free account made its 200 API and MCP requests of the month (UTC). They start again on the 1st, and a plan or a credit pack lifts the limit; GET /account still answers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: No tracked product with this id on your account, or no such endpoint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"generic: Unexpected error on our side. Retry in a moment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/products/{id}/check":{"post":{"operationId":"checkProduct","tags":["Watchlist"],"summary":"Check the price now","description":"Asks for a check right away (1 credit), at most once per 5 minutes; earlier calls return the product unchanged. A paused product has to be resumed first. The check runs in the background; with wait=true the answer waits for it. Read last_error if it didn't go through.","parameters":[{"name":"id","in":"path","required":true,"description":"product_id returned when the product was added","schema":{"type":"string","format":"uuid"},"example":"8f0b3c7e-2a4d-4e51-9c1a-6d2f1b9e7a30"},{"name":"wait","in":"query","description":"Answer once the check is done (up to 45 seconds)","schema":{"type":"boolean","default":false},"example":"true"}],"responses":{"200":{"description":"Product","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Product"},"example":{"product_id":"8f0b3c7e-2a4d-4e51-9c1a-6d2f1b9e7a30","google_product_id":"6883422599141817139","marketplace":"us","url":"https://www.pricebell.dev/go/6883422599141817139?m=us","title":"Apple AirPods Pro 2nd Generation with MagSafe Charging Case","image":"https://www.pricebell.dev/api/images/0123456789abcdef0123456789abcdef.webp","brand":"Apple","currency":"USD","price":199.99,"first_price":249,"lowest_price":189.99,"highest_price":249,"in_stock":true,"stock":"12 sellers","coupon":null,"seller":"Best Buy","best_sellers_rank":null,"target_price":179,"alert_on_drop":true,"alerts_paused":false,"interval_minutes":1440,"status":"active","pause_reason":null,"last_error":null,"found_on":[],"checking":false,"last_checked_at":"2026-11-03T08:00:12.441Z","next_check_at":"2026-11-04T08:00:12.441Z","created_at":"2026-10-01T09:30:31.120Z"}}}},"400":{"description":"invalid_option: A setting isn't valid: marketplace (us, gb, fr, de, es, it, nl, be, at, ch, ie, pt, pl, se, dk, no, fi, cz, hu, ro, gr, ca, mx, br, ar, cl, co, au, nz, in, sg, ae, za), filter, interval_minutes (5, 30, 60, 360, 720, 1440), target_price, alert_on_drop or paused. Also when the body isn't a JSON object, a required argument is missing, or the product to check is paused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: The API key is missing, revoked or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"api_limit: A free account made its 200 API and MCP requests of the month (UTC). They start again on the 1st, and a plan or a credit pack lifts the limit; GET /account still answers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: No tracked product with this id on your account, or no such endpoint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"generic: Unexpected error on our side. Retry in a moment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/products/{id}/sellers":{"get":{"operationId":"getSellers","tags":["Watchlist"],"summary":"Get a product's sellers","description":"The sellers of a tracked product at its latest check, cheapest first: each offer that is the product as sold new (accessories, used, refurbished and rental offers, copies and multipacks are left out by the check), who sells it, its price and struck-through price, and whether your rules for the product leave it out. pinned marks the product you track itself; the others are the same product listed under other titles. An offer through a comparison site (in Europe) has comparison true; its seller is the site's name, or null when the result doesn't name it. sellers_count and median_price count each named seller once and the unnamed ones together as one. Free: nothing is read again, these are the product's last check (checked_at); check_product reads it now.","parameters":[{"name":"id","in":"path","required":true,"description":"product_id","schema":{"type":"string","format":"uuid"},"example":"8f0b3c7e-2a4d-4e51-9c1a-6d2f1b9e7a30"}],"responses":{"200":{"description":"Sellers","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Sellers"},"example":{"product_id":"8f0b3c7e-2a4d-4e51-9c1a-6d2f1b9e7a30","google_product_id":"6883422599141817139","marketplace":"fr","currency":"EUR","checked_at":"2026-12-04T08:10:00.000Z","pinned_found":true,"several_versions":false,"sellers_count":3,"median_price":229,"rules":{"excluded_words":[],"min_price":null,"max_price":null,"excluded_sellers":["eBay"],"big_stores_only":false},"offers":[{"title":"Apple AirPods Pro 2","seller":"eBay (techdeals)","seller_marketplace":"eBay","comparison":false,"pinned":false,"price":189.9,"old_price":null,"tag":null,"currency":"EUR","url":"https://www.pricebell.dev/go/6883422599141817139?m=fr&o=0","excluded":true,"excluded_by":"seller"},{"title":"Apple AirPods Pro 2","seller":null,"seller_marketplace":null,"comparison":true,"pinned":true,"price":219,"old_price":null,"tag":null,"currency":"EUR","url":"https://www.pricebell.dev/go/6883422599141817139?m=fr&o=1","excluded":false,"excluded_by":null},{"title":"Apple AirPods Pro 2","seller":"Fnac","seller_marketplace":null,"comparison":false,"pinned":true,"price":229,"old_price":279,"tag":"18% OFF","currency":"EUR","url":"https://www.pricebell.dev/go/6883422599141817139?m=fr&o=2","excluded":false,"excluded_by":null}]}}}},"404":{"description":"not_found: no product with this id on your account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/products/{id}/compare":{"get":{"operationId":"compareRegions","tags":["Watchlist"],"summary":"Compare a product across countries","description":"The same product tracked in several countries, cheapest first: each country's local price, the price converted into the comparison's currency, and how much dearer it is than the cheapest (gap_percent). home is the country the comparison started from, which the \"cheaper in another country\" alert compares the others with. Prices are converted at the day's reference exchange rates: the European Central Bank's, the UAE dirham through its US dollar peg, and a second daily source for the Argentine, Chilean and Colombian pesos. rates_date says which day; a price whose currency has no current rate has converted_price null. Taxes, shipping and warranty differ from one country to another: converted prices compare list prices, not what a purchase abroad costs in total. A product in no comparison answers its own row alone. Free.","parameters":[{"name":"id","in":"path","required":true,"description":"product_id of any of the compared products","schema":{"type":"string","format":"uuid"},"example":"8f0b3c7e-2a4d-4e51-9c1a-6d2f1b9e7a30"},{"name":"currency","in":"query","description":"Currency the prices are converted into; the comparison keeps the last one chosen (EUR or USD at first, after the account's language)","schema":{"type":"string","enum":["EUR","USD","GBP"],"description":"Currency the prices are converted into; the comparison keeps the last one chosen (EUR or USD at first, after the account's language)"},"example":"EUR"}],"responses":{"200":{"description":"Comparison","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Comparison"},"example":{"product_id":"8f0b3c7e-2a4d-4e51-9c1a-6d2f1b9e7a30","group_id":"1d7c2b9a-5e3f-4a61-8b0d-2c9e4f7a1b35","currency":"EUR","rates_date":"2026-12-03","alert":{"enabled":true,"percent":10},"regions":[{"product_id":"3a9e1c55-7b2d-4f08-9e6a-1d4c8b2f7e90","google_product_id":"6883422599141817139","marketplace":"us","title":"Apple AirPods Pro 2","url":"https://www.google.com/search?udm=28&prds=catalogid:6883422599141817139&gl=us","price":199,"currency":"USD","converted_price":183.8,"gap_percent":0,"seller":"Best Buy","home":false,"status":"active","checking":false,"last_error":null,"last_checked_at":"2026-12-03T08:12:00.000Z"},{"product_id":"8f0b3c7e-2a4d-4e51-9c1a-6d2f1b9e7a30","google_product_id":"6883422599141817139","marketplace":"fr","title":"Apple AirPods Pro 2","url":"https://www.google.com/search?udm=28&prds=catalogid:6883422599141817139&gl=fr","price":229,"currency":"EUR","converted_price":229,"gap_percent":24.6,"seller":"Fnac","home":true,"status":"active","checking":false,"last_error":null,"last_checked_at":"2026-12-03T08:10:00.000Z"}],"available_marketplaces":["gb","de","es","it","nl","be","at","ch","ie","pt","pl","se","dk","no","fi","cz","hu","ro","gr","ca","mx","br","ar","cl","co","au","nz","in","sg","ae","za"],"note":"Taxes, shipping and warranty differ from one country to another: converted prices compare list prices, not what a purchase abroad costs in total."}}}},"400":{"description":"invalid_option: an unknown currency.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: no product with this id on your account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"trackInRegions","tags":["Watchlist"],"summary":"Also track a product in other countries","description":"Tracks the same product in other countries, each one a product of your watchlist (its own checks and credits, within your plan's product limit: all of them fit, or none is added), searched there with the product's title, with its drop alerts and check interval (not its target price, which is in its own currency). They join its comparison. Countries already tracked join as they are.","parameters":[{"name":"id","in":"path","required":true,"description":"product_id of any of the compared products","schema":{"type":"string","format":"uuid"},"example":"8f0b3c7e-2a4d-4e51-9c1a-6d2f1b9e7a30"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["regions"],"properties":{"regions":{"type":"array","items":{"type":"string","enum":["us","gb","fr","de","es","it","nl","be","at","ch","ie","pt","pl","se","dk","no","fi","cz","hu","ro","gr","ca","mx","br","ar","cl","co","au","nz","in","sg","ae","za"]},"description":"Countries (marketplace ids) to also track the product in"},"currency":{"type":"string","enum":["EUR","USD","GBP"],"description":"Currency the prices are converted into; the comparison keeps the last one chosen (EUR or USD at first, after the account's language)"}}},"example":{"regions":["de","gb","us"]}}}},"responses":{"200":{"description":"Comparison","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Comparison"},"example":{"product_id":"8f0b3c7e-2a4d-4e51-9c1a-6d2f1b9e7a30","group_id":"1d7c2b9a-5e3f-4a61-8b0d-2c9e4f7a1b35","currency":"EUR","rates_date":"2026-12-03","alert":{"enabled":true,"percent":10},"regions":[{"product_id":"3a9e1c55-7b2d-4f08-9e6a-1d4c8b2f7e90","google_product_id":"6883422599141817139","marketplace":"us","title":"Apple AirPods Pro 2","url":"https://www.google.com/search?udm=28&prds=catalogid:6883422599141817139&gl=us","price":199,"currency":"USD","converted_price":183.8,"gap_percent":0,"seller":"Best Buy","home":false,"status":"active","checking":false,"last_error":null,"last_checked_at":"2026-12-03T08:12:00.000Z"},{"product_id":"8f0b3c7e-2a4d-4e51-9c1a-6d2f1b9e7a30","google_product_id":"6883422599141817139","marketplace":"fr","title":"Apple AirPods Pro 2","url":"https://www.google.com/search?udm=28&prds=catalogid:6883422599141817139&gl=fr","price":229,"currency":"EUR","converted_price":229,"gap_percent":24.6,"seller":"Fnac","home":true,"status":"active","checking":false,"last_error":null,"last_checked_at":"2026-12-03T08:10:00.000Z"}],"available_marketplaces":["gb","de","es","it","nl","be","at","ch","ie","pt","pl","se","dk","no","fi","cz","hu","ro","gr","ca","mx","br","ar","cl","co","au","nz","in","sg","ae","za"],"note":"Taxes, shipping and warranty differ from one country to another: converted prices compare list prices, not what a purchase abroad costs in total."}}}},"400":{"description":"invalid_option: unknown countries, or a product whose first check isn't done.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"product_limit: the countries don't fit in your plan's product limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: no product with this id on your account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"updateComparison","tags":["Watchlist"],"summary":"Set the comparison's currency and alert","description":"The currency prices are converted into, and the \"cheaper in another country\" alert: an email (and chat channels) when another country's converted price is at least alert_percent below home's, once when it gets there, then again only after the gap closed. It costs the credits of a price alert. Send only what changes.","parameters":[{"name":"id","in":"path","required":true,"description":"product_id of any of the compared products","schema":{"type":"string","format":"uuid"},"example":"8f0b3c7e-2a4d-4e51-9c1a-6d2f1b9e7a30"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"currency":{"type":"string","enum":["EUR","USD","GBP"],"description":"Currency the prices are converted into; the comparison keeps the last one chosen (EUR or USD at first, after the account's language)"},"alert":{"type":"boolean","description":"Turn the alert on or off"},"alert_percent":{"type":"integer","minimum":1,"maximum":90,"default":10,"description":"How much cheaper, in %, another country has to be"}}},"example":{"alert":true,"alert_percent":15}}}},"responses":{"200":{"description":"Comparison","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Comparison"},"example":{"product_id":"8f0b3c7e-2a4d-4e51-9c1a-6d2f1b9e7a30","group_id":"1d7c2b9a-5e3f-4a61-8b0d-2c9e4f7a1b35","currency":"EUR","rates_date":"2026-12-03","alert":{"enabled":true,"percent":10},"regions":[{"product_id":"3a9e1c55-7b2d-4f08-9e6a-1d4c8b2f7e90","google_product_id":"6883422599141817139","marketplace":"us","title":"Apple AirPods Pro 2","url":"https://www.google.com/search?udm=28&prds=catalogid:6883422599141817139&gl=us","price":199,"currency":"USD","converted_price":183.8,"gap_percent":0,"seller":"Best Buy","home":false,"status":"active","checking":false,"last_error":null,"last_checked_at":"2026-12-03T08:12:00.000Z"},{"product_id":"8f0b3c7e-2a4d-4e51-9c1a-6d2f1b9e7a30","google_product_id":"6883422599141817139","marketplace":"fr","title":"Apple AirPods Pro 2","url":"https://www.google.com/search?udm=28&prds=catalogid:6883422599141817139&gl=fr","price":229,"currency":"EUR","converted_price":229,"gap_percent":24.6,"seller":"Fnac","home":true,"status":"active","checking":false,"last_error":null,"last_checked_at":"2026-12-03T08:10:00.000Z"}],"available_marketplaces":["gb","de","es","it","nl","be","at","ch","ie","pt","pl","se","dk","no","fi","cz","hu","ro","gr","ca","mx","br","ar","cl","co","au","nz","in","sg","ae","za"],"note":"Taxes, shipping and warranty differ from one country to another: converted prices compare list prices, not what a purchase abroad costs in total."}}}},"400":{"description":"invalid_option: a product in no comparison, or a value out of range.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: no product with this id on your account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"leaveComparison","tags":["Watchlist"],"summary":"Take a product out of its comparison","description":"The product leaves its comparison and stays tracked on its own.","parameters":[{"name":"id","in":"path","required":true,"description":"product_id of any of the compared products","schema":{"type":"string","format":"uuid"},"example":"8f0b3c7e-2a4d-4e51-9c1a-6d2f1b9e7a30"}],"responses":{"200":{"description":"The product alone","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Comparison"}}}},"404":{"description":"not_found: no product with this id on your account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Personal API key (pb_…), created in your account."}},"schemas":{"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_product","unsupported_marketplace","invalid_option","unauthorized","api_limit","paid_option","product_limit","paused_by_team","not_found","method_not_allowed","rate_limited","generic","store_unavailable"],"description":"Stable code to branch on"},"message":{"type":"string","description":"Human-readable explanation"}}}}},"Account":{"type":"object","required":["plan","plan_name","credits","renews_at","credits_refill_at","products","product_limit","fastest_interval_minutes","alert_credits","monthly_credits","history_days","api_requests_used","api_requests_limit","api_requests_reset_at","manage_url"],"properties":{"plan":{"type":"string","enum":["free","basic","pro","mega"],"description":"Plan id"},"plan_name":{"type":"string","description":"Display name of the plan"},"credits":{"type":"integer","description":"Credits left, packs included"},"renews_at":{"type":["string","null"],"format":"date-time","description":"Next renewal of a subscription"},"credits_refill_at":{"type":["string","null"],"format":"date-time","description":"When the monthly credits next come back: every 30 days on the free plan, at the renewal of a monthly plan, every month during a yearly one. Null for a free account without a monthly allowance, such as one whose email isn't confirmed"},"products":{"type":"integer","description":"Tracked products"},"product_limit":{"type":"integer","description":"Products the plan allows"},"fastest_interval_minutes":{"type":"integer","enum":[5,30,60,360,720,1440],"description":"Shortest interval_minutes the account can choose now"},"alert_credits":{"type":"integer","description":"Credits each alert email costs this account, on top of the check: 20 on the free plan, 10 with credit packs, 10 on Starter, 3 on Pro, 1 on Business. Without enough credits, the alert email isn't sent; nothing is charged when alert emails are off"},"monthly_credits":{"type":"integer","description":"Credits the active products use per 30 days at their intervals"},"history_days":{"type":"integer","description":"Days of price history the account can read: 30 on the free plan, 730 with a plan or a credit pack"},"api_requests_used":{"type":["integer","null"],"description":"API and MCP requests made this month (UTC) on the free plan; null when they aren't counted"},"api_requests_limit":{"type":["integer","null"],"description":"Requests the free plan allows per month (200); null with a plan or a credit pack"},"api_requests_reset_at":{"type":["string","null"],"format":"date-time","description":"When the free plan's requests start again; null when they aren't counted"},"manage_url":{"type":"string","format":"uri","description":"Where to change plan or buy a pack"}}},"SearchResult":{"type":"object","required":["google_product_id","title","image","price","currency","rating","reviews_count"],"properties":{"google_product_id":{"type":"string","description":"Google Shopping product ID (the catalogid in a Google Shopping link), to track or read its history"},"title":{"type":"string","description":"Product title"},"image":{"type":["string","null"],"format":"uri","description":"Main product image"},"price":{"type":["number","null"],"description":"Price shown in the results"},"currency":{"type":"string","description":"ISO 4217 code of the marketplace"},"rating":{"type":["number","null"],"description":"Average rating out of 5"},"reviews_count":{"type":["integer","null"],"description":"Number of reviews"}}},"Product":{"type":"object","required":["product_id","google_product_id","marketplace","url","title","image","brand","currency","price","first_price","lowest_price","highest_price","in_stock","stock","coupon","seller","best_sellers_rank","target_price","alert_on_drop","alerts_paused","interval_minutes","status","pause_reason","last_error","found_on","checking","last_checked_at","next_check_at","created_at"],"properties":{"product_id":{"type":"string","format":"uuid","description":"Id of this watchlist entry"},"google_product_id":{"type":"string","description":"The product's Google Shopping id: the number after catalogid: in a Google Shopping link, or the id a search result was returned with"},"marketplace":{"type":"string","enum":["us","gb","fr","de","es","it","nl","be","at","ch","ie","pt","pl","se","dk","no","fi","cz","hu","ro","gr","ca","mx","br","ar","cl","co","au","nz","in","sg","ae","za"],"description":"Google Shopping store"},"url":{"type":"string","format":"uri","description":"Product page on Google Shopping"},"title":{"type":["string","null"],"description":"null until the first check"},"image":{"type":["string","null"],"format":"uri","description":"Main product image"},"brand":{"type":["string","null"],"description":"Brand shown by Google Shopping"},"currency":{"type":["string","null"],"description":"ISO code, e.g. USD, EUR, JPY"},"price":{"type":["number","null"],"description":"Latest price; null when there is no offer"},"first_price":{"type":["number","null"],"description":"Price at the first check. It starts over, like lowest_price and highest_price, if the price's currency changes. A price the store converted to another currency replaces one in the marketplace's currency only after 48 hours of nothing but converted prices (72 hours for daily checks)"},"lowest_price":{"type":["number","null"],"description":"Lowest price seen"},"highest_price":{"type":["number","null"],"description":"Highest price seen"},"in_stock":{"type":["boolean","null"],"description":"null until the first check"},"stock":{"type":["string","null"],"description":"Google Shopping's availability text"},"coupon":{"type":["string","null"],"description":"Always null: Google Shopping pages show no coupons"},"seller":{"type":["string","null"],"description":"Seller of the offer shown (Buy Box)"},"best_sellers_rank":{"type":["string","null"],"description":"Always null: Google Shopping has no Best Sellers Rank"},"target_price":{"type":["number","null"],"description":"Alert threshold"},"alert_on_drop":{"type":"boolean","description":"Email when the price drops or the product is offered again (on the free plan, for the first 5 products with an alert)"},"alerts_paused":{"type":"boolean","description":"true when the product has an alert set (alert_on_drop or target_price) but no email goes: past the free plan's 5 products with an alert. A plan or a credit pack lifts it."},"interval_minutes":{"type":"integer","enum":[5,30,60,360,720,1440],"description":"Minutes between two checks"},"status":{"type":"string","enum":["active","paused"],"description":"Paused products aren't checked"},"pause_reason":{"type":["string","null"],"enum":["user","team",null],"description":"Who paused it: user (you, resumed with paused: false) or team (our team: only we resume it, write to us; paused: false answers paused_by_team). null while active"},"last_error":{"type":["string","null"],"enum":["email_not_verified","insufficient_credits","store_unavailable","product_not_found",null],"description":"Why the last check didn't go through, if it didn't"},"found_on":{"type":"array","items":{"type":"string","enum":["us","gb","fr","de","es","it","nl","be","at","ch","ie","pt","pl","se","dk","no","fi","cz","hu","ro","gr","ca","mx","br","ar","cl","co","au","nz","in","sg","ae","za"]},"description":"Always empty: there is no other marketplace to find it on"},"checking":{"type":"boolean","description":"A check is due or running; poll until it's false"},"last_checked_at":{"type":["string","null"],"format":"date-time","description":"When the last check ran"},"next_check_at":{"type":"string","format":"date-time","description":"When the next one is due"},"created_at":{"type":"string","format":"date-time","description":"When it was added"},"trend":{"type":"array","items":{"type":"number"},"description":"Only in lists: up to 30 prices of the last 30 days, oldest first"}}},"ProductWithHistory":{"type":"object","required":["product_id","google_product_id","marketplace","url","title","image","brand","currency","price","first_price","lowest_price","highest_price","in_stock","stock","coupon","seller","best_sellers_rank","target_price","alert_on_drop","alerts_paused","interval_minutes","status","pause_reason","last_error","found_on","checking","last_checked_at","next_check_at","created_at","history_days","history_limited","history"],"properties":{"product_id":{"type":"string","format":"uuid","description":"Id of this watchlist entry"},"google_product_id":{"type":"string","description":"The product's Google Shopping id: the number after catalogid: in a Google Shopping link, or the id a search result was returned with"},"marketplace":{"type":"string","enum":["us","gb","fr","de","es","it","nl","be","at","ch","ie","pt","pl","se","dk","no","fi","cz","hu","ro","gr","ca","mx","br","ar","cl","co","au","nz","in","sg","ae","za"],"description":"Google Shopping store"},"url":{"type":"string","format":"uri","description":"Product page on Google Shopping"},"title":{"type":["string","null"],"description":"null until the first check"},"image":{"type":["string","null"],"format":"uri","description":"Main product image"},"brand":{"type":["string","null"],"description":"Brand shown by Google Shopping"},"currency":{"type":["string","null"],"description":"ISO code, e.g. USD, EUR, JPY"},"price":{"type":["number","null"],"description":"Latest price; null when there is no offer"},"first_price":{"type":["number","null"],"description":"Price at the first check. It starts over, like lowest_price and highest_price, if the price's currency changes. A price the store converted to another currency replaces one in the marketplace's currency only after 48 hours of nothing but converted prices (72 hours for daily checks)"},"lowest_price":{"type":["number","null"],"description":"Lowest price seen"},"highest_price":{"type":["number","null"],"description":"Highest price seen"},"in_stock":{"type":["boolean","null"],"description":"null until the first check"},"stock":{"type":["string","null"],"description":"Google Shopping's availability text"},"coupon":{"type":["string","null"],"description":"Always null: Google Shopping pages show no coupons"},"seller":{"type":["string","null"],"description":"Seller of the offer shown (Buy Box)"},"best_sellers_rank":{"type":["string","null"],"description":"Always null: Google Shopping has no Best Sellers Rank"},"target_price":{"type":["number","null"],"description":"Alert threshold"},"alert_on_drop":{"type":"boolean","description":"Email when the price drops or the product is offered again (on the free plan, for the first 5 products with an alert)"},"alerts_paused":{"type":"boolean","description":"true when the product has an alert set (alert_on_drop or target_price) but no email goes: past the free plan's 5 products with an alert. A plan or a credit pack lifts it."},"interval_minutes":{"type":"integer","enum":[5,30,60,360,720,1440],"description":"Minutes between two checks"},"status":{"type":"string","enum":["active","paused"],"description":"Paused products aren't checked"},"pause_reason":{"type":["string","null"],"enum":["user","team",null],"description":"Who paused it: user (you, resumed with paused: false) or team (our team: only we resume it, write to us; paused: false answers paused_by_team). null while active"},"last_error":{"type":["string","null"],"enum":["email_not_verified","insufficient_credits","store_unavailable","product_not_found",null],"description":"Why the last check didn't go through, if it didn't"},"found_on":{"type":"array","items":{"type":"string","enum":["us","gb","fr","de","es","it","nl","be","at","ch","ie","pt","pl","se","dk","no","fi","cz","hu","ro","gr","ca","mx","br","ar","cl","co","au","nz","in","sg","ae","za"]},"description":"Always empty: there is no other marketplace to find it on"},"checking":{"type":"boolean","description":"A check is due or running; poll until it's false"},"last_checked_at":{"type":["string","null"],"format":"date-time","description":"When the last check ran"},"next_check_at":{"type":"string","format":"date-time","description":"When the next one is due"},"created_at":{"type":"string","format":"date-time","description":"When it was added"},"history_days":{"type":"integer","description":"Days the history covers"},"history_limited":{"type":"boolean","description":"true when the period asked for was cut to the free plan's 30 days"},"history":{"type":"array","items":{"type":"object","required":["price","in_stock","coupon","seller","checked_at"],"properties":{"price":{"type":["number","null"],"description":"null when there was no offer"},"in_stock":{"type":["boolean","null"],"description":"Whether it was in stock"},"coupon":{"type":["string","null"],"description":"Coupon shown, if any"},"seller":{"type":["string","null"],"description":"Seller of the offer shown (Buy Box)"},"checked_at":{"type":"string","format":"date-time","description":"When Google Shopping was read"}}}}}},"GoogleProductHistory":{"type":"object","required":["google_product_id","marketplace","currency","lowest_price","highest_price","average_price","history_days","history_limited","history"],"properties":{"google_product_id":{"type":"string","description":"Google Shopping product ID (the catalogid in a Google Shopping link)"},"marketplace":{"type":"string","enum":["us","gb","fr","de","es","it","nl","be","at","ch","ie","pt","pl","se","dk","no","fi","cz","hu","ro","gr","ca","mx","br","ar","cl","co","au","nz","in","sg","ae","za"],"description":"Google Shopping store"},"currency":{"type":"string","description":"ISO 4217 code of the marketplace"},"lowest_price":{"type":["number","null"],"description":"Lowest price of the period"},"highest_price":{"type":["number","null"],"description":"Highest price of the period"},"average_price":{"type":["number","null"],"description":"Average of the period's prices"},"history_days":{"type":"integer","description":"Days the history covers"},"history_limited":{"type":"boolean","description":"true when the period asked for was cut to the free plan's 30 days"},"history":{"type":"array","items":{"type":"object","required":["price","in_stock","coupon","seller","checked_at"],"properties":{"price":{"type":["number","null"],"description":"null when there was no offer"},"in_stock":{"type":["boolean","null"],"description":"Whether it was in stock"},"coupon":{"type":["string","null"],"description":"Coupon shown, if any"},"seller":{"type":["string","null"],"description":"Seller of the offer shown (Buy Box)"},"checked_at":{"type":"string","format":"date-time","description":"When Google Shopping was read"}}}}}},"Comparison":{"type":"object","required":["product_id","group_id","currency","rates_date","alert","regions","available_marketplaces","note"],"properties":{"product_id":{"type":"string","format":"uuid","description":"The product asked about"},"group_id":{"type":["string","null"],"format":"uuid","description":"Its comparison; null while it's tracked in one country only"},"currency":{"type":"string","enum":["EUR","USD","GBP"],"description":"Currency of converted_price"},"rates_date":{"type":["string","null"],"format":"date","description":"Day of the exchange rates used"},"alert":{"type":"object","required":["enabled","percent"],"properties":{"enabled":{"type":"boolean","description":"\"Cheaper in another country\" alert on"},"percent":{"type":"integer","description":"Its threshold, in %"}}},"regions":{"type":"array","description":"One per country, cheapest converted price first","items":{"type":"object","required":["product_id","google_product_id","marketplace","title","url","price","currency","converted_price","gap_percent","seller","home","status","checking","last_error","last_checked_at"],"properties":{"product_id":{"type":"string","format":"uuid","description":"This country's tracked product"},"google_product_id":{"type":"string","description":"Its product code"},"marketplace":{"type":"string","enum":["us","gb","fr","de","es","it","nl","be","at","ch","ie","pt","pl","se","dk","no","fi","cz","hu","ro","gr","ca","mx","br","ar","cl","co","au","nz","in","sg","ae","za"],"description":"Country"},"title":{"type":["string","null"],"description":"Title"},"url":{"type":"string","format":"uri","description":"The product in this country"},"price":{"type":["number","null"],"description":"Latest price, in the country's currency"},"currency":{"type":"string","description":"The country's currency (ISO 4217)"},"converted_price":{"type":["number","null"],"description":"price in the comparison's currency; null without a price or a current rate"},"gap_percent":{"type":["number","null"],"description":"How much dearer than the cheapest country, in % (0 for the cheapest)"},"seller":{"type":["string","null"],"description":"Cheapest seller"},"home":{"type":"boolean","description":"The country the comparison started from"},"status":{"type":"string","enum":["active","paused"],"description":"Paused products aren't checked"},"checking":{"type":"boolean","description":"A check is due or running"},"last_error":{"type":["string","null"],"description":"Why the last check didn't go through"},"last_checked_at":{"type":["string","null"],"format":"date-time","description":"When it was last checked"}}}},"available_marketplaces":{"type":"array","items":{"type":"string","enum":["us","gb","fr","de","es","it","nl","be","at","ch","ie","pt","pl","se","dk","no","fi","cz","hu","ro","gr","ca","mx","br","ar","cl","co","au","nz","in","sg","ae","za"]},"description":"Countries it isn't tracked in yet"},"note":{"type":"string","description":"What converted prices leave out"}}},"Sellers":{"type":"object","required":["product_id","google_product_id","marketplace","currency","checked_at","pinned_found","several_versions","sellers_count","median_price","rules","offers"],"properties":{"product_id":{"type":"string","format":"uuid","description":"The product"},"google_product_id":{"type":"string","description":"Its product code"},"marketplace":{"type":"string","description":"Its country"},"currency":{"type":"string","description":"The country's currency (ISO 4217)"},"checked_at":{"type":["string","null"],"format":"date-time","description":"When these offers were read; null before the first check"},"pinned_found":{"type":["boolean","null"],"description":"Whether that check showed the product itself, rather than only the same product under other titles; null before the first check"},"several_versions":{"type":"boolean","description":"The product's title covers several versions (\"Apple iPhone 16\" for 128, 256 and 512 GB): its offers can be of any of them. Track a listing that names the version to follow one"},"sellers_count":{"type":"integer","description":"Sellers your rules keep: each named seller once, the unnamed ones together as one"},"median_price":{"type":["number","null"],"description":"Median of their prices, each seller at its lowest"},"rules":{"type":"object","description":"Your rules for this product, set in the app","required":["excluded_words","min_price","max_price","excluded_sellers","big_stores_only"],"properties":{"excluded_words":{"type":"array","items":{"type":"string"},"description":"Offers whose title has one of these don't count"},"min_price":{"type":["number","null"],"description":"Offers under it don't count"},"max_price":{"type":["number","null"],"description":"Offers over it don't count"},"excluded_sellers":{"type":"array","items":{"type":"string"},"description":"Shops, or marketplaces and all their sellers, that don't count"},"big_stores_only":{"type":"boolean","description":"Only shops selling directly count: no marketplace seller, comparison site or unnamed seller"}}},"offers":{"type":"array","description":"Cheapest first","items":{"type":"object","required":["title","seller","seller_marketplace","comparison","pinned","price","old_price","tag","currency","url","excluded","excluded_by"],"properties":{"title":{"type":"string","description":"The offer's title"},"seller":{"type":["string","null"],"description":"Who sells it: a shop (\"Fnac\"), a marketplace and its seller (\"eBay (techdeals)\"), or a comparison site; null when not named"},"seller_marketplace":{"type":["string","null"],"description":"The marketplace the seller sells on (\"eBay\", \"Kaufland.de\"), if any"},"comparison":{"type":"boolean","description":"The offer comes through a comparison site, which names no shop"},"pinned":{"type":"boolean","description":"It's the product you track itself"},"price":{"type":"number","description":"Price"},"old_price":{"type":["number","null"],"description":"Struck-through price, when the offer shows one"},"tag":{"type":["string","null"],"description":"Promotion shown, as written (\"18% OFF\")"},"currency":{"type":"string","description":"ISO 4217 code"},"url":{"type":["string","null"],"format":"uri","description":"Opens the offer; null when it has no link"},"excluded":{"type":"boolean","description":"Your rules leave it out of the price, the median and the alerts"},"excluded_by":{"type":["string","null"],"enum":["word","price","seller","store",null],"description":"Which rule: word (excluded words), price (min or max), seller (excluded sellers), store (big stores only); null when it counts"}}}}}}}}}