Skip to content
Skip to Content
DropHawk.Developers

Batch Get Products

Get up to 50 Products in one call.

View as Markdown

POST
/v1/products:batchGet

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.

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

Request body

application/json
  1. body

BatchGetProductsRequest names the Products to get.

identifiers*array<string>

1 to 50 model_slugs or model numbers. An invalid one fails only its own result, with INVALID_IDENTIFIER.

Items1 <= items <= 50
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.

One of mcp; others may appear.

Response body

One result per requested identifier, in request order.

application/json
  1. response

BatchGetProductsResponse answers a batch, one result per identifier.

results*array<|>

One result per identifier, in request order.

Example Request
curl -X POST 'https://api.drophawk.net/v1/products:batchGet' \  -H 'Content-Type: application/json' \  -d '{  "identifiers": [    "prime-rtx5080-o16g",    "DMF-02-BK"  ]}'
Example Response
{  "results": [    {      "identifier": "string",      "product": {        "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"      },      "is_merged": true,      "error": {        "reason": "string"      }    }  ]}