# Comet API — search comet.it (Comet Italy) and read price, struck 30-day price, recommended price, EAN, manufacturer part number, availability, delivery estimate and specs, plus store pickup availability at every Comet store

> Search comet.it by keyword, EAN or Comet code (the site's own search index), up to 50 products per page with the site's count, brand / category / price filters and its price sorts. Each row: Comet code, title, brand, EAN, category, URL, image, the price the page charges, the struck 30-day 'prezzo barrato' when the page shows one, 'Prezzo Consigliato', online availability, condition (refurbished grade), flyer badge, energy class. Manufacturer part numbers are not searchable on the site.
> ReefAPI engine `comet` · 4 endpoints · clean JSON, no scraping or browsers to manage.

## How to call
- **Endpoint:** `POST https://api.reefapi.com/comet/v1/<action>` with a JSON body.
- **Auth:** header `x-api-key: <YOUR_REEFAPI_KEY>` — create one free (1,000 credits, no card): https://reefapi.com/signup
- **Response (every call):** `{ ok: boolean, data: ..., meta: { record_count, credits, ... }, error: { code, message } }` — branch on `ok`. Failed calls are free.
- **One key + one shared credit pool** across every ReefAPI API. Per-call credits are listed on each endpoint below.
- **Use it from an AI agent (MCP):** connect `https://api.reefapi.com/mcp` (remote streamable-http). Clients that add connectors by URL, such as ChatGPT and the Claude app, connect with OAuth 2.1 (the user pastes their key once on a ReefAPI page; discovery at `/.well-known/oauth-protected-resource/mcp`). Config files send the key as `Authorization: Bearer <key>`. `?key=<key>` in the URL also works as a last-resort fallback.

## Endpoints

### POST https://api.reefapi.com/comet/v1/search — 2 credits
Search comet.it by keyword, EAN or Comet code (the site's own search index), up to 50 products per page with the site's count, brand / category / price filters and its price sorts. Each row: Comet code, title, brand, EAN, category, URL, image, the price the page charges, the struck 30-day 'prezzo barrato' when the page shows one, 'Prezzo Consigliato', online availability, condition (refurbished grade), flyer badge, energy class. Manufacturer part numbers are not searchable on the site.

**Parameters:**
- `query` (string, required) — Search words as typed on comet.it (Italian works best), an EAN or a Comet code.
- `category` (string, optional) — Category path exactly as the site's menu / `category_path` / `facets` print it, levels joined by ' > ' (e.g. 'TV & Audio' or 'TV & Audio > TV').
- `page` (integer, optional, default 1) — Result page, 1-based.
- `page_size` (integer, optional, default 40) — Products per page, 1-50 (the site shows 40; Comet's index caps a page at 50).
- `sort` (enum, optional, default "relevance") — Result order — the three orders the site offers. [one of: relevance, price_asc, price_desc]
- `brand` (string, optional) — Keep one brand, spelled as the site's brand filter (upper case: APPLE, SAMSUNG). `facets` lists the brands with counts.
- `price_min` (number, optional) — Lowest price in EUR.
- `price_max` (number, optional) — Highest price in EUR.

**Returns:** results[]{product_id (Comet code), title, brand, ean, eans[], category, category_path, url, image, currency, price (what the page charges now), prior_price (the struck 'prezzo barrato' = lowest price of the last 30 days; only when the page strikes it), discount_percent, discount_amount, recommended_retail_price ('Prezzo Consigliato', when the page shows it), price_mode (regular | sale_struck | sale_not_struck), online_available, coming_soon, availability_text, condition (new | refurbished | used), condition_grade, badges[], in_flyer, energy_class, energy_label_url, seller, position} + total_results (the site's count), reachable_results (the index pages through the first 1000), page, page_size, page_count, has_more, facets[]{filter, attribute, values[]{value, count}}

**Example request body:**
```json
{
  "query": "iphone"
}
```

### POST https://api.reefapi.com/comet/v1/category — 2 credits
List one comet.it category (path as the site's menu prints it, e.g. 'Grandi Elettrodomestici > Lavatrici'), with the same filters, sorts, count and row fields as search.

**Parameters:**
- `category` (string, required) — Category path, levels joined by ' > ' (see `facets` / `category_path`).
- `page` (integer, optional, default 1) — Result page, 1-based.
- `page_size` (integer, optional, default 40) — Products per page, 1-50 (the site shows 40; Comet's index caps a page at 50).
- `sort` (enum, optional, default "relevance") — Result order — the three orders the site offers. [one of: relevance, price_asc, price_desc]
- `brand` (string, optional) — Keep one brand, spelled as the site's brand filter (upper case: APPLE, SAMSUNG). `facets` lists the brands with counts.
- `price_min` (number, optional) — Lowest price in EUR.
- `price_max` (number, optional) — Highest price in EUR.

**Returns:** results[]{product_id (Comet code), title, brand, ean, eans[], category, category_path, url, image, currency, price (what the page charges now), prior_price (the struck 'prezzo barrato' = lowest price of the last 30 days; only when the page strikes it), discount_percent, discount_amount, recommended_retail_price ('Prezzo Consigliato', when the page shows it), price_mode (regular | sale_struck | sale_not_struck), online_available, coming_soon, availability_text, condition (new | refurbished | used), condition_grade, badges[], in_flyer, energy_class, energy_label_url, seller, position} + total_results, page, page_size, page_count, has_more, facets[]

**Example request body:**
```json
{
  "category": "TV & Audio > TV"
}
```

### POST https://api.reefapi.com/comet/v1/product — 3 credits
The comet.it product record: Comet code, EAN(s), manufacturer part number, title, brand, category, price, struck 'prezzo barrato' (30-day lowest) and discount when shown, 'Prezzo Consigliato', online stock status, delivery estimate, shipping cost, return days, warranty months, condition (refurbished grade from the title), energy class, description, grouped specifications, images, product URL.

**Parameters:**
- `product_id` (string, required) — Comet product code (9-10 characters, the code before '-prdtt' in a comet.it product URL: …/apple-iphone-16-128-gb-nero-APL036949-prdtt → APL036949). A product URL is accepted. Every search row returns it.

**Returns:** product{product_id (Comet code), title, brand, ean, eans[], category, category_path, url, image, currency, price (what the page charges now), prior_price (the struck 'prezzo barrato' = lowest price of the last 30 days; only when the page strikes it), discount_percent, discount_amount, recommended_retail_price ('Prezzo Consigliato', when the page shows it), price_mode (regular | sale_struck | sale_not_struck), online_available, coming_soon, availability_text, condition (new | refurbished | used), condition_grade, badges[], in_flyer, energy_class, energy_label_url, seller, mpn, gtin, online_stock_status (in_stock | out_of_stock | pre_order …), schema_condition, delivery{text, earliest, latest}, shipping_cost, return_days, warranty_months, description, images[], specs[]{group, attributes{}}}

**Example request body:**
```json
{
  "product_id": "APL036949"
}
```

### POST https://api.reefapi.com/comet/v1/store_availability — 2 credits
One product at every Comet store (the product page's 'Ritiro in negozio — verifica disponibilità'): for each store whether it can hand over the product (available true/false), with name, address, postcode and coordinates; optionally sorted by distance from a point and cut to radius_km.

**Parameters:**
- `product_id` (string, required) — Comet product code (9-10 characters, the code before '-prdtt' in a comet.it product URL: …/apple-iphone-16-128-gb-nero-APL036949-prdtt → APL036949). A product URL is accepted. Every search row returns it.
- `latitude` (number, optional) — Optional point (Italy): sort stores by distance from it.
- `longitude` (number, optional) — Optional point longitude.
- `radius_km` (number, optional) — With a point: keep stores within this many km.
- `only_available` (boolean, optional, default false) — Keep only stores where the product is available.

**Returns:** stores[]{store_id, name, address, postal_code, latitude, longitude, available, distance_km} + product_id, product_title, online_price, count, available_count, total_stores

**Example request body:**
```json
{
  "product_id": "APL036949"
}
```

## At scale
- **Volume:** 5M+ requests a day, measured at 60 requests a second across the fleet with no
  central bottleneck. Per-key limits are raised for high-volume accounts; volume pricing on request.
- **Missing a source:** tell us a site we do not cover and it becomes an engine. A customer asked
  for bestprice.gr on 21 Sep 2026 and it was in the catalog on 22 Sep.
- **Support:** 2 minute median time from a question in the live chat to the first answer. Setup
  help included, no support tier to buy.
- **One key, one credit pool** across every API. No per-site plans, no separate subscriptions.

## More
- Try it live, no code: https://reefapi.com/playground?engine=comet
- Human docs page: https://reefapi.com/docs/comet
- Overview page: https://reefapi.com/comet-api
- Every ReefAPI API in one file (for your AI): https://reefapi.com/llms-full.txt
