Skip to content
Skip to Content
DropHawk.Developers

Search Products

Search Products by text.

View as Markdown

GET
/v1/products:search

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.

To 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.

Query parameters

q*string

The search text, for example "rtx 4090". Not blank; at most 256 bytes.

Length1 <= length
page_size?integer

Products per page: 20 by default, at most 50 (larger values are served as 50). Negative is an error.

Formatint32
Range0 <= value
Default20
page_token?string

next_page_token from the previous page. Omit for the first page.

client?string

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.

Response body

One page of matching Products, best match first.

application/json
  1. response

SearchProductsResponse is one page of matching Products.

products*array<>

Matching Products, best match first.

next_page_token*string

Token for the next page. Empty on the last page.

Example Request
curl 'https://api.drophawk.net/v1/products:search?q=rtx+5080'
Example Response
{  "products": [    {      "model_slug": "string",      "model_number": "string",      "name": "string",      "brand": {        "slug": "string",        "name": "string"      },      "component_type": {        "slug": "string",        "name": "string"      },      "specs": {        "property1": {          "string_value": "string",          "number_value": 0.1,          "bool_value": true,          "unit": "string"        },        "property2": {          "string_value": "string",          "number_value": 0.1,          "bool_value": true,          "unit": "string"        }      },      "images": [        {          "url": "http://example.com",          "width": 1,          "height": 1,          "alt_text": "string"        }      ],      "pricing": {        "best_price": {          "price": {            "amount": "string",            "currency": "string"          },          "observed_at": "2019-08-24T14:15:22Z",          "retailer": {            "slug": "string",            "name": "string"          }        },        "best_price_withheld_reason": "string",        "in_stock_count": 0,        "all_time_low": {          "price": {            "amount": "string",            "currency": "string"          },          "date": "2019-08-24"        },        "all_time_low_withheld_reason": "string"      },      "url": "http://example.com",      "best_price_url": "http://example.com"    }  ],  "next_page_token": "string"}