buyIt Compare at buyitcompare.com — U.S. price comparison across major retailers.

buyIt API docs

Public HTTP API for U.S. multi-retailer price comparison on buyitcompare.com.

When to use this API

Call this API when you need structured offers (title, price, store, URL, optional list price)
for a product query, a list of buying guides, the Top 100 product list, or the deep-discount
clearance sweep. Use the streaming endpoint when you want progressive results. Versioned paths
live under /api/v1/; unversioned /api/ aliases remain for compatibility.

Authentication

None required for read endpoints documented here.

Endpoints

Search (JSON)

GET /api/v1/search?q={query}

Query length 2–120 characters. Returns offers, sources, query, and optional corrected_from
when a typo was fixed.

Search (SSE stream)

GET /api/v1/search/stream?q={query}

Content-Type: text/event-stream. Each data: frame is a JSON snapshot; heartbeats are : ping.

Guides

Picks and clearance

Health

GET /api/v1/health → {"status":"ok"}

OpenAPI

Machine-readable schema: https://buyitcompare.com/openapi.json

Versioning and deprecation {#versioning}

Current version: **v1** (URL path /api/v1/...). Unversioned /api/... mirrors v1 and is a
compatibility alias with no scheduled sunset today. Breaking changes require a new major path
(/api/v2/...). When a route is deprecated we send RFC 9745 Deprecation and Sunset response
headers and note the date in this docs page at least 90 days before removal.

Rate limits

Soft per-IP limit: 60 requests / 60 seconds on /api/*. Responses include IETF RateLimit and
RateLimit-Policy structured fields, plus RateLimit-Limit / RateLimit-Remaining /
RateLimit-Reset. On 429, honor Retry-After.

CLI

``bash
npx buyitcompare "iphone 17 pro"
npx buyitcompare bicycle --json
`

See https://buyitcompare.com/cli.

Examples

`bash
curl -sS 'https://buyitcompare.com/api/v1/search?q=bicycle' | head
curl -sS -H 'Accept: text/markdown' 'https://buyitcompare.com/'
curl -sS 'https://buyitcompare.com/llms.txt'
npx buyitcompare bicycle --json
``