{"openapi":"3.1.0","info":{"title":"DropHawk Developer API","version":"1.0.0","description":"Product-level prices for PC components, tracked by DropHawk.\n\nNo key is needed.\nEach IP may make 60 requests a minute, in bursts of up to 30.\nRateLimit-Limit reports the burst; RateLimit-Remaining and RateLimit-Reset are sent only on uncacheable responses.\nOver the limit, the API answers 429 with Retry-After in seconds.\n\nA successful GET or HEAD may be cached publicly for 5 minutes; every other response is no-store.\nHEAD is answered like GET, without a body.\nEvery response allows any origin.\nUnknown query parameters are ignored.\n\nEvery HTTP/JSON error is an Error (a google.rpc.Status) carrying one ErrorInfo with domain \"drophawk.net\"; branch on its reason, never the message.\nConnect callers get Connect errors carrying the same ErrorInfo.\nErrors raised before the API sees a request (an undecodable body, a body over 64 KiB, an unknown route) may carry none.\n\nWithin v1, changes are additive: new fields, endpoints, error reasons and withheld reasons may appear, so ignore what you do not recognise.\nRemoving a field or changing its meaning is a new version, served alongside v1 for at least 3 months.\n\nNothing is removed inside v1.\nAn operation marked deprecated keeps working until v1 stops answering, which happens only after v2 has run alongside it for at least 3 months.\nEvery response for a deprecated operation carries Deprecation, Sunset (once v1's retirement date is set) and Link rel=\"deprecation\" headers.\nSee the versioning and deprecation policy linked below."},"externalDocs":{"description":"Versioning and deprecation policy","url":"https://developers.drophawk.net/guides/versioning-and-deprecation"},"servers":[{"url":"https://api.drophawk.net"}],"tags":[{"name":"Products","description":"Look up Products and their prices."},{"name":"Catalog","description":"The Brands and ComponentTypes that organise Products."}],"components":{"headers":{"CacheControl":{"description":"\"public, max-age=300\" on a successful GET; \"no-store\" on every other response.","schema":{"type":"string"}},"Deprecation":{"description":"Sent only by a deprecated operation. When it was deprecated, as an RFC 9745 structured-field date, \"@\" and Unix seconds.","schema":{"type":"string","examples":["@1799971200"]},"examples":{}},"Link":{"description":"Sent only by a deprecated operation. The versioning and deprecation policy, with rel=\"deprecation\" (RFC 9745).","schema":{"type":"string","examples":["<https://developers.drophawk.net/guides/versioning-and-deprecation>; rel=\"deprecation\""]},"examples":{}},"Location":{"description":"The same endpoint for the surviving Product, as a path on the API's origin.","schema":{"type":"string"}},"RateLimitLimit":{"description":"The burst a caller may make back-to-back (30). The sustained rate is 60 requests a minute.","schema":{"type":"integer"}},"RateLimitRemaining":{"description":"Requests left in the caller's burst. Left off cacheable responses.","schema":{"type":"integer"}},"RateLimitReset":{"description":"Seconds until the caller's burst is full again. Left off cacheable responses.","schema":{"type":"integer"}},"RetryAfter":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"Sunset":{"description":"Sent only by a deprecated operation once v1's retirement date is set. When v1 stops answering, as an RFC 8594 HTTP-date.","schema":{"type":"string","examples":["Thu, 15 Jul 2027 00:00:00 GMT"]},"examples":{}}},"responses":{"BadRequest":{"description":"The request cannot be served as sent. Reason INVALID_IDENTIFIER, INVALID_QUERY, INVALID_PAGE_TOKEN, INVALID_PAGE_SIZE, EMPTY_BATCH, BATCH_TOO_LARGE or INVALID_REQUEST.","headers":{"Cache-Control":{"$ref":"#/components/headers/CacheControl"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"MovedPermanently":{"description":"The identifier names a Product that was merged into another. Follow Location to the surviving Product.","headers":{"Location":{"$ref":"#/components/headers/Location"},"Cache-Control":{"$ref":"#/components/headers/CacheControl"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"}}},"NotFound":{"description":"Reason PRODUCT_NOT_FOUND when no Product is known by the identifier, or NOT_FOUND when there is no such endpoint.","headers":{"Cache-Control":{"$ref":"#/components/headers/CacheControl"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"PayloadTooLarge":{"description":"Reason REQUEST_TOO_LARGE. The request body is over 64 KiB; retrying it cannot succeed.","headers":{"Cache-Control":{"$ref":"#/components/headers/CacheControl"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"TooManyRequests":{"description":"Reason RATE_LIMITED. Wait Retry-After seconds before retrying.","headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"Cache-Control":{"$ref":"#/components/headers/CacheControl"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"UnexpectedError":{"description":"Any other error, such as 405, 500 or 503. See ErrorInfo for the reason.","headers":{"Cache-Control":{"$ref":"#/components/headers/CacheControl"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"Error":{"type":"object","description":"An error response, in the shape of a google.rpc.Status.","required":["code","message","details"],"properties":{"code":{"type":"integer","format":"int32","description":"The google.rpc.Code of the error, for example 5 (NOT_FOUND) or 8 (RESOURCE_EXHAUSTED).\nThe HTTP status carries the same information."},"message":{"type":"string","description":"The error code's name, such as \"not_found\", \"resource_exhausted\" or \"internal\". Not for display; branch on the ErrorInfo reason."},"details":{"type":"array","description":"Typed error details, each identified by its \"@type\".\nAn HTTP/JSON error always includes exactly one ErrorInfo naming why the request failed.\nOther detail types may be added within v1; skip any whose \"@type\" you do not recognise.","items":{"anyOf":[{"$ref":"#/components/schemas/ErrorInfo"},{"$ref":"#/components/schemas/ErrorDetail"}]},"contains":{"$ref":"#/components/schemas/ErrorInfo"}}}},"ErrorDetail":{"type":"object","description":"One typed error detail, in the shape of a google.protobuf.Any. \"@type\" names its type, and the detail's own fields sit beside it.","required":["@type"],"properties":{"@type":{"type":"string","description":"The detail's type URL, for example \"type.googleapis.com/google.rpc.ErrorInfo\"."}}},"ErrorInfo":{"type":"object","description":"Why a request failed, as a machine-readable reason (a google.rpc.ErrorInfo).\nThe reasons are:\n\n- PRODUCT_NOT_FOUND (404): no Product is known by the identifier, or it has been removed from the catalog.\n- INVALID_IDENTIFIER (400): the identifier cannot name any Product.\n- INVALID_QUERY (400): the search query q is blank, over 256 bytes, or has control characters.\n- INVALID_PAGE_TOKEN (400): the page_token is malformed, was issued for a different q, or was issued before a change to search ordering.\n- INVALID_PAGE_SIZE (400): the page_size is negative.\n- EMPTY_BATCH (400): a batch request names no identifiers.\n- BATCH_TOO_LARGE (400): a batch request names more than 50 identifiers; metadata \"max_identifiers\" is the limit.\n- INVALID_REQUEST (400): the request is malformed.\n- NOT_FOUND (404): there is no such endpoint.\n- METHOD_NOT_ALLOWED (405): the endpoint does not accept that HTTP method.\n- REQUEST_TOO_LARGE (413): the request body is over 64 KiB. Retrying the same request cannot succeed; send less.\n- RATE_LIMITED (429): too many requests; metadata \"retry_after_seconds\" repeats Retry-After.\n- INTERNAL (500): DropHawk failed; retry later.\n- UNAVAILABLE (503): DropHawk is briefly unable to serve; retry later.\n\nMore reasons may be added within v1. Treat an unrecognised reason by its HTTP status.","required":["@type","reason","domain"],"properties":{"@type":{"type":"string","const":"type.googleapis.com/google.rpc.ErrorInfo"},"reason":{"type":"string","description":"The reason, in UPPER_SNAKE_CASE. Treat an unrecognised reason by its HTTP status.","anyOf":[{"type":"string","enum":["PRODUCT_NOT_FOUND","INVALID_IDENTIFIER","INVALID_QUERY","INVALID_PAGE_TOKEN","INVALID_PAGE_SIZE","EMPTY_BATCH","BATCH_TOO_LARGE","INVALID_REQUEST","NOT_FOUND","METHOD_NOT_ALLOWED","REQUEST_TOO_LARGE","RATE_LIMITED","INTERNAL","UNAVAILABLE"]},{"type":"string"}]},"domain":{"type":"string","const":"drophawk.net"},"metadata":{"type":"object","description":"Context for the reason, as string values.","additionalProperties":{"type":"string"}}}},"BatchGetProductsRequest":{"type":"object","properties":{"identifiers":{"type":"array","items":{"type":"string"},"maxItems":50,"minItems":1,"description":"1 to 50 model_slugs or model numbers. An invalid one fails only its own result, with INVALID_IDENTIFIER."},"client":{"type":"string","anyOf":[{"type":"string","enum":["mcp"]},{"type":"string"}],"description":"Set to \"mcp\" only by the DropHawk MCP server, to attribute the links it hands out. Leave it unset; any other value is treated as unset."}},"required":["identifiers"],"description":"BatchGetProductsRequest names the Products to get."},"BatchGetProductsResponse":{"type":"object","properties":{"results":{"type":"array","items":{"$ref":"#/components/schemas/ProductResult"},"description":"One result per identifier, in request order."}},"required":["results"],"description":"BatchGetProductsResponse answers a batch, one result per identifier."},"BestPrice":{"type":"object","properties":{"price":{"$ref":"#/components/schemas/Money","description":"The price."},"observed_at":{"type":"string","format":"date-time","description":"When the Retailer last confirmed this price."},"retailer":{"$ref":"#/components/schemas/RetailerRef","description":"The Retailer offering this price as of observed_at. On a tie, the one best_price_url resolved to when this response was produced. The link resolves when followed, so it goes to the current BestPrice, which may since have moved to another Retailer."}},"required":["price","observed_at","retailer"],"description":"BestPrice is a Product's lowest current in-stock price and the Retailer offering it."},"Brand":{"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z0-9]+(-[a-z0-9]+)*$","description":"Stable URL-safe identifier, for example \"asus\"."},"name":{"type":"string","description":"The Brand's display name, for example \"ASUS\"."},"product_count":{"type":"integer","format":"int32","description":"Number of Products of this Brand in the catalog.","minimum":0}},"required":["slug","name","product_count"],"description":"Brand is a maker of Products, with how many Products it has."},"BrandRef":{"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z0-9]+(-[a-z0-9]+)*$","description":"Stable URL-safe identifier, for example \"asus\"."},"name":{"type":"string","description":"The Brand's display name, for example \"ASUS\"."}},"required":["slug","name"],"description":"BrandRef names the maker of a Product."},"ComponentType":{"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z0-9]+(-[a-z0-9]+)*$","description":"Stable URL-safe identifier, for example \"gpu\"."},"name":{"type":"string","description":"The ComponentType's display name, for example \"Graphics Cards\"."},"product_count":{"type":"integer","format":"int32","description":"Number of Products of this type in the catalog.","minimum":0},"spec_schema":{"type":"array","items":{"$ref":"#/components/schemas/SpecField"},"description":"The Specs this type's Products may have, in display order."}},"required":["slug","name","product_count","spec_schema"],"description":"ComponentType is a class of product and the Spec schema its Products follow."},"ComponentTypeRef":{"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z0-9]+(-[a-z0-9]+)*$","description":"Stable URL-safe identifier, for example \"gpu\"."},"name":{"type":"string","description":"The ComponentType's display name, for example \"Graphics Cards\"."}},"required":["slug","name"],"description":"ComponentTypeRef names a Product's ComponentType, such as graphics cards."},"DailyLow":{"type":"object","properties":{"date":{"type":"string","format":"date","description":"The UTC calendar date."},"price":{"$ref":"#/components/schemas/Money","description":"The lowest price that day, in stock or not: it counts out-of-stock Listings too, so it can sit below in_stock_price."},"is_carried_forward":{"type":"boolean","description":"True only for the point before the window: the latest earlier price, in force when the window opens."},"in_stock_price":{"$ref":"#/components/schemas/Money","description":"The lowest price that day among Listings seen in stock, counting in-stock Listings only, unlike price. Never below price, and in the same currency. Absent on a day no Listing was seen in stock. The carried-forward point is the latest priced day before the window, not the latest in-stock one, so its in_stock_price can be absent even when an earlier day had one."}},"required":["date","price","is_carried_forward"],"description":"DailyLow is a Product's lowest price on one UTC day across all Retailers, in stock or not, and beside it the lowest of that day's in-stock prices."},"DatedPrice":{"type":"object","properties":{"price":{"$ref":"#/components/schemas/Money","description":"The price."},"date":{"type":"string","format":"date","description":"The UTC calendar date."}},"required":["price","date"],"description":"DatedPrice is a price and the UTC date it was observed."},"GetProductDailyLowsResponse":{"type":"object","properties":{"points":{"type":"array","items":{"$ref":"#/components/schemas/DailyLow"},"description":"Daily lows, oldest first. Empty when withheld_reason is set."},"withheld_reason":{"type":"string","anyOf":[{"type":"string","enum":["NO_DATA","MIXED_CURRENCY"]},{"type":"string"}],"description":"Why points is empty: NO_DATA (no price history) or MIXED_CURRENCY (the points span more than one currency). Treat an unknown reason as no data."},"model_slug":{"type":"string","pattern":"^[a-z0-9]+(-[a-z0-9]+)*$","description":"The Product the series belongs to."},"is_merged":{"type":"boolean","description":"True when the identifier named a Product since merged into this one. Over HTTP/JSON that request is redirected instead, so a response is never merged."},"window_start":{"type":"string","format":"date","description":"The first UTC date of the 14-day window."}},"required":["points","model_slug","is_merged","window_start"],"description":"GetProductDailyLowsResponse is a Product's daily lows over the last 14 days."},"ListBrandsResponse":{"type":"object","properties":{"brands":{"type":"array","items":{"$ref":"#/components/schemas/Brand"},"description":"The Brands, ordered by name."}},"required":["brands"],"description":"ListBrandsResponse lists every Brand that has Products."},"ListComponentTypesResponse":{"type":"object","properties":{"component_types":{"type":"array","items":{"$ref":"#/components/schemas/ComponentType"},"description":"The ComponentTypes, ordered by name."}},"required":["component_types"],"description":"ListComponentTypesResponse lists every ComponentType."},"Money":{"type":"object","properties":{"amount":{"type":"string","pattern":"^(0|[1-9][0-9]*)(\\.[0-9]+)?$","description":"The amount as a non-negative decimal string with a \".\" separator and no grouping, for example \"1299.00\". It usually has as many decimal places as the currency has minor units (2 for AUD, 0 for JPY), but may have fewer, or more when a price was observed more precisely: it is never rounded. Never reject an amount for its decimal places; parse it with a decimal type, not a float."},"currency":{"type":"string","pattern":"^[A-Z]{3}$","description":"ISO 4217 code, for example \"AUD\"."}},"required":["amount","currency"],"description":"Money is an amount in one currency. The API never compares amounts across currencies."},"Product":{"type":"object","properties":{"model_slug":{"type":"string","pattern":"^[a-z0-9]+(-[a-z0-9]+)*$","description":"The Product's stable identifier, derived by DropHawk from its model number, for example \"deco-x1500-1-pack\". Store and compare it as given; never derive it, since look-alike model numbers can be distinct Products (\"U-PoE\" and \"U-PoE+\")."},"model_number":{"type":"string","description":"The manufacturer's model number, for display."},"name":{"type":"string","description":"The Product's display name."},"brand":{"$ref":"#/components/schemas/BrandRef","description":"The Product's maker."},"component_type":{"$ref":"#/components/schemas/ComponentTypeRef","description":"The Product's ComponentType, which declares the keys in specs."},"specs":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/SpecValue"},"description":"Spec values keyed by the ComponentType's spec_schema keys. A missing key means the value is unknown."},"images":{"type":"array","items":{"$ref":"#/components/schemas/ProductImage"},"description":"Product images, primary first. Empty when there are none."},"pricing":{"$ref":"#/components/schemas/ProductPricing","description":"Current and historical prices."},"url":{"type":"string","format":"uri","description":"The Product's page on drophawk.net."},"best_price_url":{"type":"string","format":"uri","description":"A DropHawk link that sends a buyer to the Retailer with the best price when it is followed, which may differ from pricing.best_price.retailer if the BestPrice has moved since, or to the Product's page when there is none. Use it unmodified."}},"required":["model_slug","model_number","name","brand","component_type","specs","images","pricing","url","best_price_url"],"description":"Product is a physical part at manufacturer-SKU level and its prices across Retailers. Only the Retailer offering the BestPrice is named."},"ProductImage":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"Absolute URL. Its content never changes, so it can be cached indefinitely."},"width":{"type":"integer","minimum":1,"format":"int32","description":"Width in pixels."},"height":{"type":"integer","minimum":1,"format":"int32","description":"Height in pixels."},"alt_text":{"type":"string","description":"Alt text for the image. Never empty."}},"required":["url","width","height","alt_text"],"description":"ProductImage is one image of a Product."},"ProductPricing":{"type":"object","properties":{"best_price":{"$ref":"#/components/schemas/BestPrice","description":"The lowest current in-stock price. Absent when withheld."},"best_price_withheld_reason":{"type":"string","anyOf":[{"type":"string","enum":["NO_DATA","OUT_OF_STOCK","MIXED_CURRENCY"]},{"type":"string"}],"description":"Why best_price is absent: OUT_OF_STOCK (priced, but none in stock), NO_DATA (no prices) or MIXED_CURRENCY (in-stock prices span currencies). Treat an unknown reason as no price."},"in_stock_count":{"type":"integer","format":"int32","description":"Number of Retailers with the Product in stock.","minimum":0},"all_time_low":{"$ref":"#/components/schemas/DatedPrice","description":"The lowest daily low ever recorded, dated to the first day it occurred. Absent when withheld."},"all_time_low_withheld_reason":{"type":"string","anyOf":[{"type":"string","enum":["NO_DATA","MIXED_CURRENCY"]},{"type":"string"}],"description":"Why all_time_low is absent: NO_DATA or MIXED_CURRENCY (the history spans currencies). Treat an unknown reason as no price."}},"required":["in_stock_count"],"description":"ProductPricing aggregates a Product's prices across Retailers. A price that cannot be stated is absent, and the *_withheld_reason beside it says why."},"ProductResult":{"type":"object","oneOf":[{"required":["product"]},{"required":["error"]}],"properties":{"identifier":{"type":"string","description":"The identifier as sent."},"product":{"$ref":"#/components/schemas/Product","description":"The resolved Product."},"is_merged":{"type":"boolean","description":"True when the identifier named a Product since merged into product. Store product.model_slug; comparing it with identifier is not a reliable signal."},"error":{"$ref":"#/components/schemas/ProductResultError","description":"Why the identifier did not resolve."}},"required":["identifier","is_merged"],"description":"ProductResult answers one identifier. Exactly one of product and error is set."},"ProductResultError":{"type":"object","properties":{"reason":{"type":"string","anyOf":[{"type":"string","enum":["PRODUCT_NOT_FOUND","INVALID_IDENTIFIER"]},{"type":"string"}],"description":"PRODUCT_NOT_FOUND or INVALID_IDENTIFIER, as GET /v1/products/{identifier} would answer. Treat an unknown reason as unresolved."}},"required":["reason"],"description":"ProductResultError is why one identifier of a batch has no Product."},"RetailerRef":{"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z0-9]+(-[a-z0-9]+)*$","description":"Stable URL-safe identifier, for example \"pccasegear\"."},"name":{"type":"string","description":"The Retailer's display name, for example \"PC Case Gear\"."}},"required":["slug","name"],"description":"RetailerRef names a store that sells Products."},"SearchProductsResponse":{"type":"object","properties":{"products":{"type":"array","items":{"$ref":"#/components/schemas/Product"},"description":"Matching Products, best match first."},"next_page_token":{"type":"string","description":"Token for the next page. Empty on the last page."}},"required":["products","next_page_token"],"description":"SearchProductsResponse is one page of matching Products."},"SpecField":{"type":"object","properties":{"key":{"type":"string","description":"The key in Product.specs, for example \"vram\"."},"label":{"type":"string","description":"A human-readable name for the Spec, for example \"VRAM\"."},"type":{"type":"string","anyOf":[{"type":"string","enum":["string","number","boolean"]},{"type":"string"}],"description":"\"string\", \"number\" or \"boolean\", naming the SpecValue field that carries the value. Ignore a Spec whose type you do not recognise; its values are never sent."},"unit":{"type":"string","description":"The unit, for example \"GB\". Absent when the Spec has none."}},"required":["key","label","type"],"description":"SpecField declares one Spec a ComponentType's Products can have."},"SpecValue":{"type":"object","oneOf":[{"required":["bool_value"]},{"required":["number_value"]},{"required":["string_value"]}],"properties":{"string_value":{"type":"string","description":"A text value, for example \"RTX 4090\"."},"number_value":{"type":"number","format":"double","description":"A numeric value, for example 24."},"bool_value":{"type":"boolean","description":"A yes/no value."},"unit":{"type":"string","description":"The unit, for example \"GB\". Absent when the Spec has none."}},"description":"SpecValue is one Spec value. Exactly one value field is set, as the key's SpecField.type declares."}}},"paths":{"/v1/brands":{"get":{"tags":["Catalog"],"summary":"List every Brand that has at least one Product.","description":"A Brand with no Products is left out.","operationId":"listBrands","responses":{"200":{"description":"Every Brand that has Products, ordered by name.","headers":{"Cache-Control":{"$ref":"#/components/headers/CacheControl"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListBrandsResponse"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"default":{"$ref":"#/components/responses/UnexpectedError"}}}},"/v1/component-types":{"get":{"tags":["Catalog"],"summary":"List every ComponentType, including those with no Products.","description":"spec_schema declares every key and value type a Product's specs may hold.","operationId":"listComponentTypes","responses":{"200":{"description":"Every ComponentType, ordered by name.","headers":{"Cache-Control":{"$ref":"#/components/headers/CacheControl"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListComponentTypesResponse"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"default":{"$ref":"#/components/responses/UnexpectedError"}}}},"/v1/products/{identifier}":{"get":{"tags":["Products"],"summary":"Get a Product by model_slug or model number.","description":"identifier is a model_slug, or a model number as a Retailer or the manufacturer writes it, percent-encoded. Store the model_slug in the response; never derive one. A model number containing \"/\" cannot travel in a path; send its model_slug.\n\nA Product merged into another answers 301, with Location naming the survivor.","operationId":"getProduct","parameters":[{"name":"identifier","in":"path","description":"A model_slug or model number. At most 256 bytes.","required":true,"schema":{"type":"string"}},{"name":"client","in":"query","description":"Set to \"mcp\" only by the DropHawk MCP server, to attribute the links it hands out. Leave it unset; any other value is treated as unset.","schema":{"type":"string","anyOf":[{"type":"string","enum":["mcp"]},{"type":"string"}]}}],"responses":{"200":{"description":"The Product.","headers":{"Cache-Control":{"$ref":"#/components/headers/CacheControl"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Product"}}}},"301":{"$ref":"#/components/responses/MovedPermanently"},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"default":{"$ref":"#/components/responses/UnexpectedError"}}}},"/v1/products/{identifier}/daily-lows":{"get":{"tags":["Products"],"summary":"Get a Product's daily lows over the last 14 days.","description":"A daily low is the lowest price seen on one UTC day across all Retailers, in stock or not, so it is not a history of best_price. Days with no observation have no point. Each point also carries in_stock_price, the lowest price that day among in-stock Listings only, absent on a day nothing was in stock.\n\nThe window is today (UTC) and the 13 days before, starting at window_start. If an earlier point exists, the latest one is included with is_carried_forward set, so a chart of price can start at the window's first day; that point is the latest priced day, so its in_stock_price can be absent. Identifiers and merges are handled as in GET /v1/products/{identifier}.","operationId":"getProductDailyLows","parameters":[{"name":"identifier","in":"path","description":"A model_slug or model number. At most 256 bytes.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The Product's daily lows, or why they are withheld.","headers":{"Cache-Control":{"$ref":"#/components/headers/CacheControl"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetProductDailyLowsResponse"}}}},"301":{"$ref":"#/components/responses/MovedPermanently"},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"default":{"$ref":"#/components/responses/UnexpectedError"}}}},"/v1/products:batchGet":{"post":{"tags":["Products"],"summary":"Get up to 50 Products in one call.","description":"Each identifier is resolved as in GET /v1/products/{identifier}, and results[i] answers identifiers[i]. An identifier that cannot be resolved fails only its own result, so check each result, not the HTTP status. A merged Product resolves to its survivor with is_merged set, not a redirect. The batch counts as one request against the rate limit.\n\nConnect callers may also GET it, but should POST large batches: a GET carries the batch in its URL, which can outgrow URL limits, and its response, per-item errors included, is cached publicly for 5 minutes.","operationId":"batchGetProducts","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchGetProductsRequest"}}},"required":true},"responses":{"200":{"description":"One result per requested identifier, in request order.","headers":{"Cache-Control":{"$ref":"#/components/headers/CacheControl"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchGetProductsResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"429":{"$ref":"#/components/responses/TooManyRequests"},"default":{"$ref":"#/components/responses/UnexpectedError"}}}},"/v1/products:search":{"get":{"tags":["Products"],"summary":"Search Products by text.","description":"q is matched against name, Brand name and model number, tolerating typos, case and punctuation. Results come exact model matches first, then Products that contain q as whole words over ones that only resemble it, then Products with an in-stock price, then, among those that contain q, Products offered by more Retailers, then best text match; no match is an empty list.\n\nTo page, send next_page_token back as page_token with the same q; page_size may change between pages. Pages neither overlap nor skip while the catalog is unchanged; a change in stock, price or Listings is a catalog change.","operationId":"searchProducts","parameters":[{"name":"q","in":"query","description":"The search text, for example \"rtx 4090\". Not blank; at most 256 bytes.","required":true,"schema":{"type":"string","minLength":1}},{"name":"page_size","in":"query","description":"Products per page: 20 by default, at most 50 (larger values are served as 50). Negative is an error.","schema":{"type":"integer","format":"int32","minimum":0,"default":20}},{"name":"page_token","in":"query","description":"next_page_token from the previous page. Omit for the first page.","schema":{"type":"string"}},{"name":"client","in":"query","description":"Set to \"mcp\" only by the DropHawk MCP server, to attribute the links it hands out. Leave it unset; any other value is treated as unset.","schema":{"type":"string","anyOf":[{"type":"string","enum":["mcp"]},{"type":"string"}]}}],"responses":{"200":{"description":"One page of matching Products, best match first.","headers":{"Cache-Control":{"$ref":"#/components/headers/CacheControl"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchProductsResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"429":{"$ref":"#/components/responses/TooManyRequests"},"default":{"$ref":"#/components/responses/UnexpectedError"}}}}},"security":[]}