# Clair > This file is very large and may be truncated. For an index of this content, please refer to https://clair.im/docs/llms.txt instead. > Developer documentation for Clair's on-demand public data APIs. # ChatGPT API reference Source: https://clair.im/docs/ai-api/chatgpt ChatGPT API: ask chatgpt.com a question and get the answer people see and every site it cites, as JSON. For brand and AI visibility tracking. One endpoint, one key. It asks chatgpt.com one question signed out, with web search on, and returns the answer a person would read and the sites it links. This is not OpenAI's model API: it measures what ChatGPT tells people. See the [ChatGPT API: overview, pricing, and free tier](https://clair.im/apis/chatgpt). ## Answer `GET /v1/chatgpt` · **1 request** ```sh theme={null} curl -G https://api.clair.im/v1/chatgpt \ -H "Authorization: Bearer YOUR_KEY" \ --data-urlencode "q=best project management software for small teams" ``` **Response time:** 15–33 s typical, 90 s limit. Live AI answer: ChatGPT streams its reply; the request returns when the reply is complete. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `q` | yes | The question, as a person would type it, up to 500 characters. | | `country` | no | Two-letter country code the question is asked from, such as `us` or `gb`. Defaults to `us`. | ChatGPT streams its reply for 10 to 30 seconds, and the request waits for all of it. Set your client timeout to two minutes. ```json theme={null} { "engine": "chatgpt", "family": "ai", "query": { "q": "best project management software for small teams", "country": "us" }, "answer": { "text": "For most small teams (3–20 people), I'd recommend Asana, ClickUp, or monday.com. They offer the best balance of task management, collaboration, project visibility, and scalability.\nThe right choice depends on whether you prioritize simplicity, affordability, or customization.\nTop 7 project management tools for small teams\n...", "citations": [ { "position": 1, "title": "Visit Asana", "url": "https://asana.com/", "domain": "asana.com" }, { "position": 2, "title": "Visit ClickUp", "url": "https://clickup.com/", "domain": "clickup.com" }, { "position": 3, "title": "Visit monday.com", "url": "https://monday.com/", "domain": "monday.com" } ] } } ``` | Field | Contents | | - | - | | `answer.text` | The answer as the page shows it, a line per paragraph, heading, or list item. | | `answer.citations` | The sources the answer links, in the order it shows them, each once: `position`, `title`, `url`, `domain`. | | `url` | The page ChatGPT links, without its `utm_source=chatgpt.com` tag. `null` when ChatGPT names only the site; `domain` is still set. | Answers change from one asking to the next, so nothing is cached. To measure visibility, ask each question several times and count how often a brand is named in `text` or its domain appears in `citations`. ## Errors A page that loads with no answer, after every scraping vendor has tried, is `502` `scrape_failed`; the request is not billed. A missing `q`, a `q` over 500 characters, or a `country` that is not two letters is `400`. ## What this API does not do * It does not sign in, so it does not read answers personalized to an account, or ChatGPT's paid models. * It does not ask follow-up questions in the same conversation. * It does not return the ads or shopping cards shown with an answer. Auth, plans, rate limits, and error codes: [Authentication](/docs/authentication). # Google AI Mode API reference Source: https://clair.im/docs/ai-api/google-ai-mode Google AI Mode API: ask Google's AI Mode a question and get its answer and every source it cites, as JSON. One endpoint, one key. It asks the question in Google's AI Mode tab, signed out, and returns the answer a person would read and every source it links. See the [Google AI Mode API: overview, pricing, and free tier](https://clair.im/apis/google-ai-mode). ## Answer `GET /v1/google-ai-mode` · **1 request** ```sh theme={null} curl -G https://api.clair.im/v1/google-ai-mode \ -H "Authorization: Bearer YOUR_KEY" \ --data-urlencode "q=best project management software for small teams" ``` **Response time:** 13–40 s typical, 85 s limit. Live AI answer: AI Mode writes its answer after the page loads; the request waits until its text stops growing. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `q` | yes | The question, as a person would type it, up to 500 characters. | | `country` | no | Two-letter country code the question is asked from, such as `us` or `gb`. Defaults to `us`. | AI Mode writes its answer for 10 to 30 seconds. Set your client timeout to 90 seconds. ```json theme={null} { "engine": "google_ai_mode", "family": "ai", "query": { "q": "best project management software for small teams", "country": "us" }, "answer": { "text": "The best project management tools for small teams focus on reducing administrative overhead, maximizing collaboration, and keeping workflows visible. Depending on your team's specific dynamic, technical background, and budget, the top tools group into distinct categories. 👥 The \"All-Rounder\" Industry Standards If you want a tool that can scale as you grow an\n...", "citations": [ { "position": 1, "title": "Project management tool for a very small team with little tech experience", "url": "https://www.reddit.com/r/projectmanagement/comments/1vtl07f/project_management_tool_for_a_very_small_team/", "domain": "reddit.com" }, { "position": 2, "title": "Best Project Management Software for Small Business (2026)", "url": "https://www.youtube.com/watch?v=Q1qUIaUDV5M&vl=en&t=479", "domain": "youtube.com" }, { "position": 3, "title": "Best Project Management Software for Small Teams", "url": "https://www.youtube.com/watch?v=y30dYbckzfg&vl=en", "domain": "youtube.com" } ] } } ``` | Field | Contents | | - | - | | `answer.text` | The answer as the page shows it, a line per paragraph, heading, or list item. | | `answer.citations` | The sources the answer links, in the order it shows them, each once: `position`, `title`, `url`, `domain`. | Answers change from one asking to the next, so nothing is cached. To measure visibility, ask each question several times and count how often a brand is named in `text` or its domain appears in `citations`. ## What counts as a citation * A link to a source, in the answer or in the source list beside it, with Google's redirect resolved to the page itself. * Not Google's product cards: a product's name linked to some page that mentions it. The product's name is still in `text`. * Each URL once, in the order the answer first shows it. ## Errors A page that loads with no answer, after every scraping vendor has tried, is `502` `scrape_failed`; the request is not billed. A missing `q`, a `q` over 500 characters, or a `country` that is not two letters is `400`. ## What this API does not do * It does not ask follow-up questions in the same conversation. * It does not sign in, so it does not read answers personalized to an account. * It does not return ads, shopping cards, or images shown with an answer. Auth, plans, rate limits, and error codes: [Authentication](/docs/authentication). # Google AI Overview API reference Source: https://clair.im/docs/ai-api/google-ai-overview Google AI Overview API: search Google and get the AI Overview above the results, full text and every source it links, as JSON. One endpoint, one key. It searches Google signed out and unpersonalized, and reads the AI Overview above the results, including the part behind **Show more**, with every source it links. See the [Google AI Overview API: overview, pricing, and free tier](https://clair.im/apis/google-ai-overview). ## AI Overview `GET /v1/google-ai-overview` · **1 request** ```sh theme={null} curl -G https://api.clair.im/v1/google-ai-overview \ -H "Authorization: Bearer YOUR_KEY" \ --data-urlencode "q=best project management software for small teams" ``` **Response time:** 10–26 s typical, 75 s limit. Live AI answer: The AI Overview is written into the results page after it loads; the request waits until its text stops growing. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `q` | yes | The question, as a person would type it, up to 500 characters. | | `country` | no | Two-letter country code the question is asked from, such as `us` or `gb`. Defaults to `us`. | Google shows an overview on some searches only: on the rest, `answer` is `null`. That is a successful request, and it is billed. ```json theme={null} { "engine": "google_ai_overview", "family": "ai", "query": { "q": "best project management software for small teams", "country": "us" }, "answer": { "text": "The best project management tools for small teams depend on your workflow style, budget, and how much structure you need:\nTrello: Best for visual Kanban boards and simplicity. Great for small teams that want an intuitive, card-and-list system with a generous free tier.\nAsana: Best for clean task tracking and ease of use. It is popular for cross-functional projects, marketing teams, and non-technical groups.\n...", "citations": [ { "position": 1, "title": "YouTube · George Vlasyev", "url": "https://www.youtube.com/watch?v=Q1qUIaUDV5M&vl=en&t=110", "domain": "youtube.com" }, { "position": 2, "title": "Reddit · r/projectmanagement", "url": "https://www.reddit.com/r/projectmanagement/comments/1vtl07f/project_management_tool_for_a_very_small_team/", "domain": "reddit.com" }, { "position": 3, "title": "YouTube · George Vlasyev", "url": "https://www.youtube.com/watch?v=y30dYbckzfg&vl=en&t=40", "domain": "youtube.com" } ] } } ``` | Field | Contents | | - | - | | `answer.text` | The answer as the page shows it, a line per paragraph, heading, or list item. | | `answer.citations` | The sources the answer links, in the order it shows them, each once: `position`, `title`, `url`, `domain`. | Answers change from one asking to the next, so nothing is cached. To measure visibility, ask each question several times and count how often a brand is named in `text` or its domain appears in `citations`. ## What counts as a citation * A link to a source, in the answer or in the source list beside it, with Google's redirect resolved to the page itself. * Not Google's product cards: a product's name linked to some page that mentions it. The product's name is still in `text`. * Each URL once, in the order the answer first shows it. ## Errors A page that loads with no answer, after every scraping vendor has tried, is `502` `scrape_failed`; the request is not billed. A missing `q`, a `q` over 500 characters, or a `country` that is not two letters is `400`. ## What this API does not do * It does not return the organic results; the [Google Search API](/docs/search-api/google-search) does. * It does not return ads, shopping cards, or images shown with the overview. Auth, plans, rate limits, and error codes: [Authentication](/docs/authentication). # Authentication, plans, and errors Source: https://clair.im/docs/authentication Authenticate Clair APIs with a Bearer key against api.clair.im. Plans, rate limits, response headers, and error codes. Every Clair API uses one origin, one key, and one plan. | | | | - | - | | Origin | `https://api.clair.im` | | Header | `Authorization: Bearer YOUR_KEY` | | Keys | [Dashboard](https://clair.im/dashboard) | ```sh theme={null} curl -G https://api.clair.im/v1/google-search \ -H "Authorization: Bearer YOUR_KEY" \ --data-urlencode "q=albert einstein" \ --data-urlencode "country=us" \ --data-urlencode "page=1" ``` Every account starts on the \*\*free tier: $1 of free credit, once,** across every API, with no card and a **10 requests/minute** cap. It is granted on your first call and never expires. Top up from $5 to keep going and to lift the cap to 5 requests/second; plans run faster. Create a key once and copy it; Clair cannot show the secret again. ## Pay as you go and plans Clair is pay as you go. Top up your account's wallet from \$5 on the [Billing page](https://clair.im/dashboard/billing); topped-up credit never expires, and every API spends from it, each call at its data product's rate. A plan is optional and lowers every rate. Its monthly fee is that month's plan credit, spent before your wallet at the plan's rates; plan credit does not roll over at renewal, and topped-up credit is never touched by a renewal. * **Free**: \$1 of credit once per account, no card, at the pay-as-you-go rates. * **Starter $19, Scale $99, Business \$499**: billed monthly, up front, and the fee is the month's plan credit. Each step lowers every rate. * **Enterprise**: unlimited volume at custom rates. [Contact us](mailto:contact@serinlabs.com). Each API's rate on each plan is on the [pricing page](https://clair.im/pricing). Nothing is billed past your credit: when the month's plan or free credit and your wallet are both spent, calls return `429` with `quota_exceeded` until you top up. To never hit that, turn on **auto top-up** on the Billing page: pick a balance and an amount from \$15, save a card, and whenever your balance falls below that balance the card is charged that amount. A charge the bank declines for now (such as insufficient funds) is tried once more an hour later; if that fails too, or the card can't be charged at all, auto top-up turns off and emails you. An upgrade starts a new month at once, charged at the new plan's full price, and the unused plan credit carries over into it. A downgrade starts at renewal. When a plan ends, the account goes back to the free tier and keeps its wallet. The account's email gets a notice when a paid plan's account has a fifth of its monthly credit left in all, and when the credit runs out. ### What a call costs You pay for the data a call returns, not for the call. Each endpoint is one data product with its own item and its own price per 1,000 of them, on the [pricing page](https://clair.im/pricing): | A call that returns | Is billed as | | - | - | | A search or list with 40 jobs in `results` | 40 jobs | | One profile, product, posting, or article | 1 item | | A Google Search results page | 1 results page | | An empty `results` list | Nothing | | Any error, `4xx` or `5xx`, including `not_found` | Nothing | A call is billed for at most 200 items. Before it runs, the most it can cost is held from your credit and the rest is returned when it answers, so a call needs that much credit to start. Each page of a list is its own call. `X-Items-Billed` and `X-Request-Cost-USD` on every response say what it cost. ## Rate limits The rate limit is per account, not per API or per key: | Plan | Limit | | - | - | | Free, without topped-up credit | 10 requests / minute | | Pay as you go (topped up) | 5 requests / second | | Starter | 10 requests / second | | Scale | 25 requests / second | | Business | 50 requests / second | Need more? [Contact us](mailto:contact@serinlabs.com) and we will raise your limit. Past the limit, calls return `429` with `rate_limit_exceeded` and a `Retry-After` header. ## Response headers | Header | Meaning | | - | - | | `X-Request-ID` | Unique id for the call. Include it when reporting a problem. | | `X-Balance-Remaining-USD` | Credit you can still spend, plan credit and wallet together, in US dollars. | | `X-Items-Billed` | How many items this call was charged for. | | `X-Request-Cost-USD` | What this call cost, in US dollars. | | `RateLimit-Limit` | The account's rate limit for the current window. | | `RateLimit-Remaining` | Requests left in the current window. | | `Retry-After` | Seconds to wait, sent with `429` rate limits and `503`. | ## Errors Mounted endpoints return a stable `error` code and human `detail`. Branch on the code; do not parse `detail`. ```json theme={null} { "error": "bad_request", "detail": "q is required" } ``` Every response carries an `x-request-id` header. Include it when you contact support about a request: it identifies that exact request. A `5xx` means the request failed on our side. It is not charged, and its body also carries the same id as `request_id`. We log every failure, and repeated failures alert our team automatically. Retry later. ```json theme={null} { "error": "scrape_failed", "detail": "We couldn't complete this request right now. You were not charged. …", "request_id": "6f1c2a9e-3b7d-4c55-9a0e-2d8f41b7c3a1" } ``` | Status | `error` | Meaning | | - | - | - | | `400` | `bad_request` | A parameter failed validation. | | `400` | `bad_cursor` | `cursor` is malformed, or came from a request with other parameters. | | `400` | `locked_parameter` | A parameter this endpoint does not take, such as `limit`, or `page` and `cursor` on an endpoint that shows one page. | | `400` | `unsupported_parameter` | This endpoint does not accept that parameter (for example `q` on Reuters). | | `401` | `unauthorized` | Missing or invalid Bearer key, or a key whose account was deleted. | | `403` | `forbidden` | This key cannot query that API. | | `404` | `not_found` | The thing you asked for does not exist: an Amazon ASIN or seller on that marketplace (ASINs differ between marketplaces, so check `country`), a Trustpilot profile, or a Crunchbase permalink. The request is not charged. | | `413` | `payload_too_large` | The request body is too large. | | `422` | `page_too_large` | Web Scraper: the page is over the 6 MB limit. The request is not charged. | | `422` | `unsupported_content` | Web Scraper: the URL serves something other than an HTML or text page, such as a PDF or an image. The request is not charged. | | `422` | `target_unreachable` | Web Scraper: the URL's hostname does not exist. The request is not charged. | | `429` | `quota_exceeded` | Your credit is used up. Top up on the Billing page. | | `429` | `rate_limit_exceeded` | The account rate limit was hit. Wait `Retry-After` seconds. | | `500` | `internal` | An unexpected error on our side. The request is not charged. | | `502` | `scrape_failed` | The live page could not be fetched or parsed. The request is not charged. | | `502` | `target_blocked` | Web Scraper: the site refused automated access to the page on every route. `detail` gives the status it answered with. The request is not charged. | | `503` | `authentication_unavailable` | The key could not be verified right now. Retry. | | `503` | `credits_unavailable` | Your credit could not be checked right now. Retry; nothing was charged. | | `503` | `dependency_unavailable` | The platform is briefly unavailable. Retry. | | `503` | `product_unavailable` | This API is temporarily unavailable. | | `503` | `overloaded` | This endpoint is at capacity. Retry with backoff. | | `504` | `target_timeout` | Web Scraper: the site did not answer in time. The request is not charged. | | `504` | `timeout` | The request reached its endpoint's time limit. The request is not charged. See [Response times](/docs/response-times). | Every `503` is temporary and carries `Retry-After`; retry with backoff. ## Responses Every response opens with the same three fields: | Field | Meaning | | - | - | | `engine` | The API that answered, such as `google_search` or `amazon`. | | `family` | The kind of data, such as `search`, `jobs`, or `ecommerce`. | | `query` | Your request as resolved, with defaults filled in. | An endpoint that returns one thing then has one named object: `product`, `job`, `article`, `company`, `place`, `transcript`, and so on. An endpoint that returns a list has the same four fields on every API: | Field | Meaning | | - | - | | `count` | Length of `results`. | | `total_results` | How many the source matched in all, or `null` when it does not say. | | `results` | This page of results. | | `next_cursor` | Opens the next page, or `null` on the last one. | Some lists add context of their own before `count`, such as Trustpilot's `business` or Amazon's `product`. Ids are named for what they identify, and match the parameter that takes them: `results[].job_id` goes to `job_id`, `results[].review_id` to `review_id`, `seller.seller_id` to `seller_id`. No response has a bare `id`. ## Pagination Send `next_cursor` back as `cursor`, with the same other parameters, for the next page. A cursor from a request with other parameters returns `400` `bad_cursor`. Sources that number their pages also take `page`, to open page N directly; send `page` or `cursor`, not both. `limit` is never accepted: each page holds what the source shows. An endpoint that shows one page, such as Indeed search, Google Maps search, a Reuters listing, or Amazon reviews, takes no `page` or `cursor`, and its `next_cursor` is always `null`. Each API's page lists its maximum page. # Crunchbase API reference Source: https://clair.im/docs/companies-api/crunchbase Crunchbase API: find a company or person by name, then read the public organization or person profile. Logged-out page fields only. Three endpoints, one key. Search finds organizations or people by name and returns their permalinks. Organization reads `/organization/{permalink}`. Person reads `/person/{permalink}`. Fields Crunchbase hides on the logged-out page stay off the payload and are listed in `locked_fields`. See the [Crunchbase API: overview, pricing, and free tier](https://clair.im/apis/crunchbase). ## Search `GET /v1/crunchbase/search` · **1 request** ```sh theme={null} curl -G https://api.clair.im/v1/crunchbase/search \ -H "Authorization: Bearer YOUR_KEY" \ --data-urlencode "q=stripe" ``` **Response time:** 1–13 s typical, 55 s limit. Page fetch. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `q` | yes | A company or person name, or the start of one. Up to 100 characters. | | `type` | no | `organization` (default) or `person`. | The response is the list Crunchbase's own search box suggests for the name, best match first, up to 25. Pass a result's `permalink` to Organization or Person. ```json theme={null} { "engine": "crunchbase", "family": "companies", "query": { "q": "stripe", "type": "organization" }, "count": 3, "total_results": null, "results": [ { "position": 1, "type": "organization", "name": "Stripe", "permalink": "stripe", "url": "https://www.crunchbase.com/organization/stripe", "description": "Stripe provides financial infrastructure that supports online and in-person payments, billing, money movement, and financial services.", "image": "https://images.crunchbase.com/image/upload/c_pad,f_auto,q_auto:eco,dpr_1/82700c1a09d149ef87c707c065d73317", "investor": true }, { "position": 2, "type": "organization", "name": "Stripe", "permalink": "stripe-841c", "url": "https://www.crunchbase.com/organization/stripe-841c", "description": "Stripe provides payment processing and financial infrastructure for businesses.", "image": "https://images.crunchbase.com/image/upload/c_pad,f_auto,q_auto:eco,dpr_1/ac50ebafae1c48008fd2160d4261121e", "investor": false }, { "position": 3, "type": "organization", "name": "Stripe Studios", "permalink": "stripe-studios", "url": "https://www.crunchbase.com/organization/stripe-studios", "description": "Stripe Studios develops hardware, software, and graphics tools for professional live broadcast production.", "image": null, "investor": false } ], "next_cursor": null } ``` | Field | Contents | | - | - | | `family` | `companies`, or `people` when `type` is `person`. | | `results[].permalink` | The slug Organization or Person takes. Companies that share a name get a suffix (`stripe-841c`); tell them apart by `description`. | | `results[].investor` | True when Crunchbase lists the organization or person as an investor. | | `total_results`, `next_cursor` | Always null: the list is one page and shows no total. | A name with no match returns `count: 0` and an empty `results`. Search matches names only; it does not filter by industry, location, or funding. ## Organization `GET /v1/crunchbase/organization` · **1 request** ```sh theme={null} curl -G https://api.clair.im/v1/crunchbase/organization \ -H "Authorization: Bearer YOUR_KEY" \ --data-urlencode "permalink=stripe" ``` **Response time:** 1–3 s typical, 55 s limit. Page fetch. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `permalink` | yes | Lowercase organization slug, such as `stripe`. | The body is `organization`: `name`, `permalink`, `url`, `legal_name`, `website`, `description`, `logo`, `operating_status`, `company_type`, `ipo_status`, `employee_range`, `headquarters` (`city`, `region`, `country`, `continent`), `rank`, `categories`, `social`, `contact`, `founders[]`, `key_people[]`, `board_members[]`, `funding` (`rounds_count`, `last_funding_type`, `investors_count`, `rounds[]`, `investors[]`), `investments`, `exits`, `acquisitions`, `acquired_by`, `ipo`, `similar_companies[]`, `products[]`, `predictions`, `technology`, `events`, `news`, and `locked_fields[]`. Card lists are Crunchbase's first page (\~10). ## Person `GET /v1/crunchbase/person` · **1 request** ```sh theme={null} curl -G https://api.clair.im/v1/crunchbase/person \ -H "Authorization: Bearer YOUR_KEY" \ --data-urlencode "permalink=patrick-collison" ``` **Response time:** 1–2 s typical, 55 s limit. Page fetch. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `permalink` | yes | Lowercase person slug, such as `patrick-collison`. | The body is `person`: `name`, `permalink`, `headline`, `primary_job_title`, `primary_organization`, `location`, `social`, `jobs`, `board_roles`, `education[]`, `investments`, `partner_investments`, `exits[]`, `event_appearances`, `hubs`, `news`, and `locked_fields[]`. ## Errors A missing permalink returns `404` `not_found`. Sending `limit` or `cursor` is `400`. Typical locked fields on organizations: `funding_total`, `founded_on`, `last_funding_at`, IPO amounts. Typical locked fields on people: `investor_type`, `num_exits`. Auth, plans, rate limits, and error codes: [Authentication](/docs/authentication). # Clair API documentation Source: https://clair.im/docs/index Clair API docs for on-demand public pages: Google Search, Maps, News, and Shopping, publisher news, jobs, Amazon, Trustpilot, Crunchbase, and any public page. Clair sells **on-demand data APIs**. A call fetches the public page and returns the fields documented for that API. Create a key in the [Clair dashboard](https://clair.im/dashboard) and call `https://api.clair.im`. > [card] [Google Search API](/docs/search-api/google-search) > > Live organic Google Search results, 10 hits per page. Pass `page` for the > next SERP. > [card] [Google Maps API](/docs/search-api/google-maps) > > Local businesses for a Maps query with phone, website, and coordinates, > then one place with hours, rating histogram, and top reviews. > [card] [Google News API](/docs/news-api/google-news) > > Live headlines, topics, and keyword search from news.google.com, with the > publisher URL on every result. > [card] [Reuters API](/docs/news-api/reuters) > > List a Reuters section or author, then fetch one article with its body, > byline, and date. > [card] [Bloomberg API](/docs/news-api/bloomberg) > > Bloomberg section rails and site search, plus one article with its public > paragraphs. > [card] [Associated Press API](/docs/news-api/ap) > > AP section hubs, topic hubs, and site search, plus full articles. > [card] [Glassdoor API](/docs/jobs-api/glassdoor) > > Public Glassdoor jobs, company ratings and reviews, and salaries by > job title. > [card] [Indeed API](/docs/jobs-api/indeed) > > US Indeed job cards with salary, remote, and posted filters, one full > posting, and a company's profile, ratings, and reviews. > [card] [Amazon API](/docs/products-api/amazon) > > Search, product details, offers, reviews, sellers, and best sellers on 10 > marketplaces, priced for a delivery ZIP code. > [card] [Google Shopping API](/docs/products-api/google-shopping) > > Google Shopping product cards with price, discount, store, and rating, by > country, and one product with its store offers. > [card] [YouTube API](/docs/video-api/youtube) > > Search, a video's details, a channel's videos, comments, and any public > video's captions as text and timed segments. > [card] [TikTok API](/docs/video-api/tiktok) > > A public post with its views, likes, and shares, an account with its > followers, an account's recent posts, and a hashtag's posts. > [card] [Instagram API](/docs/video-api/instagram) > > A public post or reel with its likes and newest comments, an account with > its followers and latest posts, and a hashtag's top posts. > [card] [Web Scraper API](/docs/scrape-api/web-scraper) > > Any public page as HTML, rendered in a browser when you ask. > [card] [Trustpilot API](/docs/reviews-api/trustpilot) > > Public Trustpilot ratings and the current review page for a company > domain. > [card] [Crunchbase API](/docs/companies-api/crunchbase) > > Company and person search, then public organization and person profiles. > Hidden funding figures stay off the payload. > [card] [Quickstart](/docs/quickstart) > > Get a key and make your first call in five minutes. ## What the products have in common > [card] Normalized, never invented > > A missing source value remains `null`. Explicit gaps are safer than filled-in > guesses your application cannot detect. > [card] Parsed from the page > > Each API returns the fields documented for that page. A missing value > stays empty. > [card] Fetched when you call > > Live SKUs fetch public pages using documented query parameters or a > domain. Callers do not submit arbitrary crawl jobs. ## Access Issue an API key from the [dashboard](https://clair.im/dashboard). Authenticate with `Authorization: Bearer YOUR_KEY` against `https://api.clair.im`. One key calls every API, and one wallet of credit covers them all; the rate limit is per account. See [Authentication](/docs/authentication). > [!NOTE] > > Need a source added, higher throughput, or an endpoint that does not exist > yet? Write to [contact@serinlabs.com](mailto:contact@serinlabs.com) and tell > us what you are building. # Glassdoor API reference Source: https://clair.im/docs/jobs-api/glassdoor Glassdoor API: live scrape of public Glassdoor job listings, company ratings and reviews, and salary percentiles by job title. Five endpoints, one key, all scraped from Glassdoor's **public pages** (browser, bot-walled). Search and Job read job listings. Company search, Company, and Salaries read employer ratings, reviews, and pay. Pages behind Glassdoor's login (full review history, interviews) are not offered. Not Glassdoor's private API. See the [Glassdoor API: overview, pricing, and free tier](https://clair.im/apis/glassdoor). ## Jobs `GET /v1/glassdoor/jobs` · **1 request** ```sh theme={null} curl -G https://api.clair.im/v1/glassdoor/jobs \ -H "Authorization: Bearer YOUR_KEY" \ --data-urlencode "q=software engineer" \ --data-urlencode "location=San Francisco" \ --data-urlencode "page=1" ``` **Response time:** 2–6 s typical, 90 s limit. Page fetch. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `q` | yes | Keyword Glassdoor searches over job titles. | | `location` | no | City or region. Mapped to Glassdoor's `locKeyword`. | | `workplace_type` | no | `remote`, `hybrid`, or `onsite`. `remote` adds Glassdoor’s remote filter. | | `job_type` | no | `full_time`, `part_time`, `contract`, `internship`, or `temporary`. | | `posted` | no | `1d`, `3d`, `7d`, or `14d`. | | `page` | no | Page to open, 1 to 10. Default 1. Send `page` or `cursor`, not both. | | `cursor` | no | `next_cursor` from the previous response. Send it with the same other parameters. | Send `next_cursor` back as `cursor` for the next page. `total_results` is the job count Glassdoor prints over the results. Each hit includes `position`, `job_id`, `title`, `company`, `location`, `workplace_type`, `job_type`, `salary_text`, `salary`, `rating`, `posted_age`, `snippet`, `skills`, `employer_id`, `company_logo`, `easy_apply`, `url`, and `apply_url`. `job_type`, `workplace_type`, and `skills` come from Glassdoor's listing data when the card does not print them. `salary` is `{ min, max, median, currency, period, source }` or null. `period` is `year`, `month`, `week`, `day`, or `hour`. `source` is `employer` when the posting states the pay, `estimated` when it is the board's estimate, or null when the board does not say. `salary_text` stays as the board prints it. Glassdoor publishes a band, so `min` and `max` are its 10th and 90th percentile and `median` its 50th. For employer pay that is the posted range. ## Job `GET /v1/glassdoor/job` · **1 request** ```sh theme={null} curl -G https://api.clair.im/v1/glassdoor/job \ -H "Authorization: Bearer YOUR_KEY" \ --data-urlencode "job_id=1010264063760" ``` **Response time:** 24–40 s typical, 70 s limit. Browser render: Glassdoor only shows a job inside a browser, and its job page is slow to load there. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `job_id` | yes | Numeric Glassdoor job listing id, from a search result. | The body is `job`: `title`, `company`, `location`, `workplace_type`, `remote`, `salary_text`, `salary`, `job_type`, `posted_at`, `valid_through`, `company_logo`, `company_url`, `industry`, `education`, `experience_months`, `skills`, `coordinates`, `direct_apply`, `url`, `apply_url`, `highlights`, and `paragraphs`. `highlights` groups the description's bullet points into `qualifications`, `responsibilities`, and `benefits` by the heading above them. Bullets without a recognised heading are left out, so a posting with no headed lists returns empty arrays. `paragraphs` still has the full text. ## Company search `GET /v1/glassdoor/companies` · **1 request** ```sh theme={null} curl -G https://api.clair.im/v1/glassdoor/companies \ -H "Authorization: Bearer YOUR_KEY" \ --data-urlencode "q=stripe" ``` **Response time:** 2–7 s typical, 70 s limit. Page fetch. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `q` | yes | Company name, up to 100 characters. | Each result has `position`, `employer_id`, `name`, `slug`, `logo`, `rating`, `reviews_count`, `salaries_count`, `jobs_count`, and `url`. Company and Salaries need both `employer_id` and `slug`. The slug is case-sensitive (`Google`, not `google`), so take it from this endpoint rather than building it. ## Company `GET /v1/glassdoor/company` · **1 request** ```sh theme={null} curl -G https://api.clair.im/v1/glassdoor/company \ -H "Authorization: Bearer YOUR_KEY" \ --data-urlencode "employer_id=9079" \ --data-urlencode "slug=Google" ``` **Response time:** 1–22 s typical, 90 s limit. Page fetch: Glassdoor answers some company pages in a second and stalls on others; a stalled page is loaded again a second way, which adds 15 to 35 seconds. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `employer_id` | yes | Numeric Glassdoor employer id from company search. | | `slug` | yes | Case-sensitive company slug from company search. | The body is `company`: `employer_id`, `name`, `legal_name`, `slug`, `logo`, `website`, `headquarters`, `size`, `industry`, `sector`, `description`, `ratings`, `ceo`, `rating_distribution`, `reviews_count`, `rated_reviews_count`, `salaries_count`, `latest_reviews`, and `url`. * `ratings` has `overall` and the six category scores (1–5), plus `recommend_to_friend_percent`, `ceo_approval_percent`, and `business_outlook_percent`. * `rating_distribution` has `overall` and each category as a list from 5 stars down to 1, each `{ stars, reviews_count, percent }`. `recommend_to_friend` is the same list keyed by `answer`, `recommend` or `not_recommend`. * `reviews_count`, `rated_reviews_count`, and `salaries_count` are Glassdoor's totals for the company. * `latest_reviews` holds the newest reviews Glassdoor shows without a login, usually 3. Each has `review_id`, `title`, `pros`, `cons`, `advice`, `rating`, per-category `ratings`, `job_title`, `location`, `employment_status`, `current_employee`, `helpful_votes_count`, `employer_responded`, and `date`. A wrong `employer_id` or `slug` returns `404 not_found`. ## Salaries `GET /v1/glassdoor/salaries` · **1 request** ```sh theme={null} curl -G https://api.clair.im/v1/glassdoor/salaries \ -H "Authorization: Bearer YOUR_KEY" \ --data-urlencode "employer_id=9079" \ --data-urlencode "slug=Google" \ --data-urlencode "page=1" ``` **Response time:** 1–38 s typical, 90 s limit. Page fetch: Glassdoor answers some company pages in a second and stalls on others; a stalled page is loaded again a second way, which adds 15 to 35 seconds. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `employer_id` | yes | Numeric Glassdoor employer id from company search. | | `slug` | yes | Case-sensitive company slug from company search. | | `location` | no | A name or location_id from `locations[]`, such as `London` or `IS2280`. Omit for the employer's home country. | | `page` | no | Page to open, 1 to 20. Default 1. Send `page` or `cursor`, not both. | | `cursor` | no | `next_cursor` from the previous response. Send it with the same other parameters. | Send `next_cursor` back as `cursor` for the next page. It is null after the last page or page 20. The body has `employer`, `location` (the place the figures cover), and `locations` (`location_id`, `name`, `type`), then `count`, `total_results` (job titles with reported pay), `results`, and `next_cursor`. Each result has `position`, `job_title`, `job_title_id`, `salaries_count`, `currency`, `period`, `base_pay`, `total_pay`, and `last_reported_at`. `base_pay` and `total_pay` are `{ p10, p25, p50, p75, p90 }`: Glassdoor's percentile estimates from reported salaries. Titles come in Glassdoor's order, most reported first. `locations` lists the states and cities Glassdoor offers for this employer, each `{ location_id, name, type }` with `type` `state` or `city`. Pass a name or `location_id` as `location` to get pay for that place. A place not in the list returns `400 unknown_location`, with the names that are. A name shared by a state and a city returns `400 ambiguous_location`; pass the `location_id` instead. Auth, plans, rate limits, and error codes: [Authentication](/docs/authentication). # Indeed API reference Source: https://clair.im/docs/jobs-api/indeed Indeed API: search public US job cards, fetch one job, find a company, and read its profile, ratings, and reviews. Five endpoints, one key. Jobs reads one Indeed results page (US `indeed.com`) and Job reads one posting. Companies finds a company, Company reads its profile, and Reviews pages through its reviews. This does not submit applications. See the [Indeed API: overview, pricing, and free tier](https://clair.im/apis/indeed). ## Jobs `GET /v1/indeed/jobs` · **1 request** ```sh theme={null} curl -G https://api.clair.im/v1/indeed/jobs \ -H "Authorization: Bearer YOUR_KEY" \ --data-urlencode "q=software engineer" \ --data-urlencode "location=New York, NY" ``` **Response time:** 3–7 s typical, 60 s limit. Page fetch. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `q` | yes | Job title or keyword. | | `location` | no | City, region, or country. Mapped to Indeed's `l`. | | `job_type` | no | `full_time`, `part_time`, `contract`, `internship`, or `temporary`. | | `remote` | no | `true` or `false`. Adds Indeed's remote filter. | | `posted` | no | `1d`, `3d`, `7d`, or `14d`. | Search is one page, so there is no `page` or `cursor`, and `next_cursor` is always `null`: the one page holds every card Indeed serves for the search. To reach more jobs, narrow the search with `location`, `job_type`, `remote`, or `posted`. `total_results` is how many postings Indeed matched for the search across the site, not just the cards returned, and `unique_results` is the same after Indeed merges duplicate postings. Both are null when Indeed does not report them. Use `unique_results` to compare demand across roles, regions, and days. Each hit includes `position`, `job_id`, `title`, `company`, `location`, `workplace_type`, `remote`, `salary_text`, `salary`, `job_type`, `posted_age`, `posted_at`, `snippet`, `benefits`, `company_rating`, `company_reviews_count`, `company_url`, `easy_apply`, `urgently_hiring`, `sponsored`, and `url`. A page holds every card Indeed served, usually about 45. `sponsored: true` marks a listing the employer paid to promote; it is still a real opening. `salary` is `{ min, max, median, currency, period, source }` or null. `period` is `year`, `month`, `week`, `day`, or `hour`. `source` is `employer` when the posting states the pay, `estimated` when it is the board's estimate, or null when the board does not say. `salary_text` stays as the board prints it. ## Job `GET /v1/indeed/job` · **1 request** ```sh theme={null} curl -G https://api.clair.im/v1/indeed/job \ -H "Authorization: Bearer YOUR_KEY" \ --data-urlencode "job_id=e6489bd83820f079" ``` **Response time:** 2–6 s typical, 50 s limit. Page fetch. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `job_id` | yes | 16-character hex Indeed job key, from a search result. | The body is `job`: `title`, `company`, `location`, `workplace_type`, `remote`, `salary_text`, `salary`, `job_type`, `posted_at`, `valid_through`, `company_logo`, `company_url`, `benefits`, `direct_apply`, `url`, `highlights`, and `paragraphs`. `highlights` groups the description's bullet points into `qualifications`, `responsibilities`, and `benefits` by the heading above them. Bullets without a recognised heading are left out, so a posting with no headed lists returns empty arrays. `paragraphs` still has the full text. ## Companies `GET /v1/indeed/companies` · **1 request** ```sh theme={null} curl -G https://api.clair.im/v1/indeed/companies \ -H "Authorization: Bearer YOUR_KEY" \ --data-urlencode "q=blue bottle" ``` **Response time:** 2–6 s typical, 50 s limit. Page fetch. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `q` | yes | Company name. | Returns the companies Indeed lists for the name, best match first, in one page: there is no `page` or `cursor`, `next_cursor` is always `null`, and `total_results` is always `null`. A name Indeed does not know returns an empty `results`. Each hit includes `position`, `company`, `name`, `rating`, `reviews_count`, `description`, `logo`, and `url`. `company` is the company's id: pass it to Company and Reviews. `rating` is null for a company nobody has reviewed. ## Company `GET /v1/indeed/company` · **1 request** ```sh theme={null} curl -G https://api.clair.im/v1/indeed/company \ -H "Authorization: Bearer YOUR_KEY" \ --data-urlencode "company=Google" ``` **Response time:** 2–16 s typical, 50 s limit. Page fetch. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `company` | yes | Indeed company id such as `Google` or `Blue-Bottle-Coffee-db772533`, or an `indeed.com/cmp/` link. | `company` takes an id from Companies or an `indeed.com/cmp/` link, so a job result's `company_url` works as it is. Indeed gives some companies an id with a suffix, such as `Blue-Bottle-Coffee-db772533`; the response's `company.company` is always the full id. The body is `company`: `company`, `name`, `url`, `logo`, `rating`, `reviews_count`, `ratings`, `rating_history`, `wellbeing_score`, `wellbeing`, `description`, `industry`, `headquarters`, `founded`, `employees`, `revenue`, `website`, `ceo`, `jobs_count`, `salaries`, `locations`, `faqs`, and `similar_companies`. `ratings` is the company's average, out of 5, for `work_life_balance`, `compensation_benefits`, `job_security_advancement`, `management`, and `culture`. `rating_history` is the overall rating by year. `wellbeing_score` is Indeed's Work Wellbeing Score, 0 to 100, and `wellbeing` lists the survey answers behind it by `category`. `salaries` holds the average pay Indeed shows for the company's most common roles: `category`, `title`, `salary_text`, `salary`, `period` (`year`, `month`, `week`, `day`, or `hour`), and `reports`, the number of salaries behind the average. `employees` and `revenue` are ranges, such as `10,000+` or `$25M to $100M`. A field Indeed leaves off the page is null, or an empty list. A company Indeed does not have returns `404 not_found`. ## Reviews `GET /v1/indeed/reviews` · **1 request** ```sh theme={null} curl -G https://api.clair.im/v1/indeed/reviews \ -H "Authorization: Bearer YOUR_KEY" \ --data-urlencode "company=Google" ``` **Response time:** 3–8 s typical, 50 s limit. Page fetch. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `company` | yes | Indeed company id such as `Google` or `Blue-Bottle-Coffee-db772533`, or an `indeed.com/cmp/` link. | | `sort_by` | no | `newest` (default), `highest_rating`, or `lowest_rating`. | | `page` | no | Page to open, 1 to 500. Default 1. Send `page` or `cursor`, not both. | | `cursor` | no | `next_cursor` from the previous response. Send it with the same other parameters. | A page holds 20 reviews, from every country, newest first. `sort_by` orders them by rating instead. Send `next_cursor` back as `cursor` for the next page, or open a page directly with `page`. `next_cursor` is null on the last page, and a page past the last returns an empty `results`. Pages go up to 500, the first 10,000 reviews in the chosen order. `total_results` is the company's review count. `company` in the body is the company reviewed: `company`, `name`, `rating`, `reviews_count`, and `url`. Each review includes `position`, `review_id`, `title`, `text`, `pros`, `cons`, `rating`, `ratings`, `job_title`, `location`, `country`, `current_employee`, `date`, `helpful_count`, `unhelpful_count`, and `url`. `ratings` has the same five categories as the company's; a category the reviewer skipped is null. `date` is the day the review was posted, `YYYY-MM-DD`. `pros` and `cons` are null when the reviewer left them out, which most do. A company Indeed does not have returns `404 not_found`. Auth, plans, rate limits, and error codes: [Authentication](/docs/authentication). # Associated Press API reference Source: https://clair.im/docs/news-api/ap Associated Press API: section hubs, topic hubs, or site search, then one public article. Listing cards have no bylines. Two endpoints, one key. Search reads a section (`world-news` default), an `apnews.com/hub/` topic, or site search. Article reads one story. Listing cards have no bylines — authors are on the article page. Search cards carry a `summary`; section and topic cards rarely do. Section pages mix in right-rail / most-read cards. See the [Associated Press API: overview, pricing, and free tier](https://clair.im/apis/ap). ## Listing `GET /v1/ap/search` · **1 request** ```sh theme={null} curl -G https://api.clair.im/v1/ap/search \ -H "Authorization: Bearer YOUR_KEY" \ --data-urlencode "q=hurricane" \ --data-urlencode "sort=newest" \ --data-urlencode "page=1" ``` **Response time:** 1–6 s typical, 60 s limit. Page fetch. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `q` | no | Site search. Omit for a section or topic hub. Do not send `section` or `topic` with `q`. | | `section` | no | `world-news` (default), `us-news`, `politics`, `business`, `technology`, `science`, `health`, `sports`, `entertainment`, `oddities`, `lifestyle`, `climate-and-environment`, or `religion`. | | `topic` | no | `apnews.com/hub/` slug. Mutually exclusive with `section` and `q`. | | `sort` | no | With `q`: `relevance`, `newest`, or `oldest`. | | `page` | no | With `q` only; a section or topic hub is one page. Page to open, 1 to 20. Default 1. Send `page` or `cursor`, not both. | | `cursor` | no | With `q` only; a section or topic hub is one page. `next_cursor` from the previous response. Send it with the same other parameters. | Search returns `total_results` and pages by `page` or `cursor`; send `next_cursor` back as `cursor` for the next page. A section or topic hub is one page: `page` or `cursor` without `q` returns `400 locked_parameter`, and so does `limit`. `authors[]` on cards is empty. ## Article `GET /v1/ap/article` · **1 request** **Response time:** 1–5 s typical, 60 s limit. Page fetch. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `url` | yes | Article URL, usually a `url` from a search result on this API. | `url` must be an `https://apnews.com/article/` link. The body is `article`: `title`, `url`, `authors[]`, `published_at`, `section`, `tags[]`, `image`, `paragraphs[]`, `words_count`. `access` is always `free`. `highlights` is always empty. Same document as [Reuters](/docs/news-api/reuters) and [Bloomberg](/docs/news-api/bloomberg). Auth, plans, rate limits, and error codes: [Authentication](/docs/authentication). # Bloomberg API reference Source: https://clair.im/docs/news-api/bloomberg Bloomberg API: section rails or site search, then one public article. Latest uses the lineup paginate API. Not Bloomberg Terminal. Two endpoints, one key. Latest is the lineup paginate API — the `/latest` HTML page is a shell. Sections page with `next_cursor`. `q` searches the site. Article reads one story. This is not Bloomberg Terminal. See the [Bloomberg API: overview, pricing, and free tier](https://clair.im/apis/bloomberg). ## Listing `GET /v1/bloomberg/search` · **1 request** ```sh theme={null} curl -G https://api.clair.im/v1/bloomberg/search \ -H "Authorization: Bearer YOUR_KEY" \ --data-urlencode "section=latest" ``` **Response time:** 1–3 s typical, 40 s limit. Page fetch. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `q` | no | Site search. Omit for a section rail. Send `q` or `section`, not both. | | `section` | no | `latest` (default), `markets`, `economics`, `technology`, `politics`, `industries`, `finance`, `wealth`, `pursuits`, `green`, `crypto`, `ai`, `opinion`, `businessweek`, `deals`, or `citylab`. | | `sort` | no | With `q`: `relevance`, `newest`, or `oldest`. | | `type` | no | With `q`: `article`, `video`, `audio`, `graphics`, or `businessweek`. | | `time` | no | With `q`: `1d`, `1w`, or `1m`. | | `page` | no | With `q`: page to open, 1 to 50. Default 1. A section rail pages by `cursor` only. Send `page` or `cursor`, not both. | | `cursor` | no | `next_cursor` from the previous response, to open the next page of a search or a section rail. | Sending `limit` returns `400 locked_parameter`. Section rails return about six cards; send `next_cursor` back as `cursor` for older ones. Search returns `total_results` and pages by `page` or `cursor`. Search hits may have `premium: null`. Each hit includes `position`, `title`, `url`, `section`, `kicker`, `authors[]`, `image`, and `premium`. ## Article `GET /v1/bloomberg/article` · **1 request** **Response time:** 1–3 s typical, 40 s limit. Page fetch. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `url` | yes | Article URL, usually a `url` from a search result on this API. | `url` must be a `bloomberg.com` `/news/articles/` link. Metered stories return the public paragraphs and set `body_truncated`. `access` is `free`, `metered`, or `premium`. Same document as [Reuters](/docs/news-api/reuters) and [Associated Press](/docs/news-api/ap). Auth, plans, rate limits, and error codes: [Authentication](/docs/authentication). # Google News API reference Source: https://clair.im/docs/news-api/google-news Endpoint reference for Clair's Google News API: GET /v1/google-news parameters, response fields, and errors for home, search, topics, geo, and Full Coverage. Live Google News. Home, named topics, geo sections, publisher pages, and Full Coverage stories are read from **news.google.com**. Keyword search (`q`) is read from Google Search's **News tab**, which serves the same index with exact publish times; news.google.com's own search page is blocked for scrapers. Every result has the publisher URL plus `google_url`. A blocked page returns `502 scrape_failed`, never a delayed feed. Article bodies are **not** hydrated. This is not Google's official News API. For a single publisher with body, use [Reuters](/docs/news-api/reuters), [Bloomberg](/docs/news-api/bloomberg), or [Associated Press](/docs/news-api/ap). See the [Google News API: overview, pricing, and free tier](https://clair.im/apis/google-news). ## Endpoint `GET /v1/google-news` · **1 request** ```sh theme={null} curl -G https://api.clair.im/v1/google-news \ -H "Authorization: Bearer YOUR_KEY" \ --data-urlencode "topic=WORLD" \ --data-urlencode "language=en" \ --data-urlencode "country=us" ``` ## Parameters **Response time:** 2–6 s typical, 60 s limit. Page fetch. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `q` | no | Search query, run on Google Search's News tab. Omit for home, `topic`, or token listings. | | `when` | no | With `q`: `1h`, `1d`, `7d`, or `1y`. | | `topic` | no | `HEADLINES`, `WORLD`, `NATION`, `BUSINESS`, `TECHNOLOGY`, `ENTERTAINMENT`, `SPORTS`, `SCIENCE`, or `HEALTH`. | | `topic_token` | no | Google News `/topics/` from the listing. | | `section_token` | no | Needs `topic_token` or `publication_token`. | | `story_token` | no | Full Coverage cluster from `results[].story.story_token`. | | `publication_token` | no | Publisher page from `results[].source.publication_token`. | | `location` | no | Geo section slug, e.g. `New York`. | | `language` | no | ISO 639-1. Default `en`. Edition language. | | `country` | no | ISO 3166-1 alpha-2. Default `us`. Edition country. | | `page` | no | With `q` only, about 10 results a page; a listing is one page. Page to open, 1 to 10. Default 1. Send `page` or `cursor`, not both. | | `cursor` | no | With `q` only, about 10 results a page; a listing is one page. `next_cursor` from the previous response. Send it with the same other parameters. | With `q`, the request is a News tab search. Otherwise the listing is chosen in order: `story_token`, `publication_token`, `topic_token`, `location`, `topic`, else `/home`. Search pages by `page` or `cursor`. Listings are one page: `page` or `cursor` without `q` returns `400 locked_parameter`, as do `limit`, `sources`, and `exclude_sources`. ## Response Each result has `title`, publisher `url`, `google_url`, `source` (`name`, `domain`, `icon`, `publication_token`), `published_at`, optional `image_url` and `authors`, plus `story` and `related[]` when Google clusters coverage. Search results carry `story.title` when Google groups them, but no image, authors, or tokens: the News tab does not print them. Their publisher URL is read from Google's redirect, which also gives `source.domain` and `source.icon`; if that fails for a result, `url` stays the Google link and both are null. `next_cursor` is the next search page, or null on the last page and on listings. Auth, plans, rate limits, and error codes: [Authentication](/docs/authentication). # Reuters API reference Source: https://clair.im/docs/news-api/reuters Reuters API: list a reuters.com section or author, then fetch one public article. Site search is blocked. Not Reuters Terminal. Two endpoints, one key. Listings are one page. Article reads one story. Reuters blocks automated site search, so `q` returns `400` `unsupported_parameter`. This is not Reuters Terminal. See the [Reuters API: overview, pricing, and free tier](https://clair.im/apis/reuters). ## Listing `GET /v1/reuters/search` · **1 request** Omit both `section` and `author` to list `/world`. Pass `section` (for example `world` or `business/finance`) or `author` (a `reuters.com/authors/` slug), not both. ```sh theme={null} curl -G https://api.clair.im/v1/reuters/search \ -H "Authorization: Bearer YOUR_KEY" \ --data-urlencode "section=world" ``` **Response time:** 2–10 s typical, 50 s limit. Page fetch. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `section` | no | Path under reuters.com: `world` (default), `business`, `business/finance`, `markets`, `technology`, `sports`, … Mutually exclusive with `author`. | | `author` | no | `reuters.com/authors/` slug. Mutually exclusive with `section`. | A listing is one page: `page`, `cursor`, or `limit` returns `400 locked_parameter`, and `next_cursor` is always null. Author pages may set `total_results`. Each hit includes `position`, `article_id`, `title`, `url`, `published_at`, `section`, `kicker`, `authors[]` (`name`, `url`), `image`, and `premium`. ## Article `GET /v1/reuters/article` · **1 request** **Response time:** 1–3 s typical, 50 s limit. Page fetch. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `url` | yes | Article URL, usually a `url` from a search result on this API. | `url` must be a `reuters.com` story, usually a `url` from the listing. ```sh theme={null} curl -G https://api.clair.im/v1/reuters/article \ -H "Authorization: Bearer YOUR_KEY" \ --data-urlencode "url=https://www.reuters.com/world/americas/trump-set-whirlwind-un-meetings-with-wars-iran-ukraine-agenda-2026-09-22/" ``` The body is `article`: `title`, `url`, `authors[]`, `published_at`, `section`, `subsection`, `tags[]`, `image` (`url`, `caption`, `credit`), `paragraphs[]`, `words_count`, `access` (`free` / `metered` / `premium`), and `body_truncated`. Same article document as [Bloomberg](/docs/news-api/bloomberg) and [Associated Press](/docs/news-api/ap). Auth, plans, rate limits, and error codes: [Authentication](/docs/authentication). # Amazon API reference Source: https://clair.im/docs/products-api/amazon Amazon API: search, product details, reviews, offers, sellers, GTIN lookup, best sellers, and categories. One page per request. Nine endpoints, one key. Every call reads one live Amazon page and costs **1 request**. Every path is under `/v1/amazon`. Search keeps sponsored cards and flags them; lookup and seller products drop them. Fields Amazon does not show come back `null` or empty. See the [Amazon API: overview, pricing, and free tier](https://clair.im/apis/amazon). ## Marketplace and location Every endpoint takes two optional parameters. The response echoes both in `query`. | Parameter | Contract | | - | - | | `country` | Marketplace. Default `us`. `uk` is accepted as `gb`. Any other value is a 400. Reviews do not take `us`; see [Product reviews](#product-reviews). | | `zip_code` | Delivery postal code in that country, e.g. `10001`. Amazon then prices, stocks, and dates delivery for that address, and picks the buy-box seller for it. | | `country` | Domain | Currency | | - | - | - | | `us` | amazon.com | USD | | `gb` | amazon.co.uk | GBP | | `ca` | amazon.ca | CAD | | `au` | amazon.com.au | AUD | | `in` | amazon.in | INR | | `de` | amazon.de | EUR | | `es` | amazon.es | EUR | | `nl` | amazon.nl | EUR | | `be` | amazon.com.be | EUR | | `jp` | amazon.co.jp | JPY | The request is made from the marketplace's country, and pages are read in English. Without `zip_code`, Amazon picks a delivery location in that country itself; the one it used is in `product.delivery_location`. ```sh theme={null} curl -G https://api.clair.im/v1/amazon/product \ -H "Authorization: Bearer YOUR_KEY" \ --data-urlencode "asin=B07GR5K8SD" \ --data-urlencode "country=de" \ --data-urlencode "zip_code=10115" ``` ## Search `GET /v1/amazon/search` ```sh theme={null} curl -G https://api.clair.im/v1/amazon/search \ -H "Authorization: Bearer YOUR_KEY" \ --data-urlencode "q=wireless mouse" \ --data-urlencode "brand=Logitech" \ --data-urlencode "max_price=30" \ --data-urlencode "prime=true" ``` **Response time:** 2–5 s typical, 60 s limit. Page fetch. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `q` | no | Product keyword. Required unless `category_id` or `seller_id` is set. | | `category_id` | no | Numeric browse node, e.g. `12879431`, from `GET /v1/amazon/categories` or a best-seller page. | | `seller_id` | no | Only this seller's listings, e.g. `AWZI6BA70DZZD`, from `offers[].seller.seller_id` or a product's `sold_by`. Sponsored cards are dropped. | | `sort_by` | no | `relevance` (default), `price_low_to_high`, `price_high_to_low`, `reviews`, `newest`, or `best_sellers`. | | `min_price` | no | Lowest price, in the marketplace currency. | | `max_price` | no | Highest price, in the marketplace currency. | | `brand` | no | Brand name, e.g. `Logitech`. No commas. | | `prime` | no | `true` for Prime-eligible items only. Amazon US only; other countries return 400. | | `min_rating` | no | `4` for Amazon's 4 Stars & Up filter. | | `condition` | no | `new`, `used`, or `renewed`. A condition the marketplace does not offer returns 400. | | `deals` | no | `coupons`, `todays_deals`, or `all_discounts`. | | `page` | no | Page to open, 1 to 10. Default 1. Send `page` or `cursor`, not both. | | `cursor` | no | `next_cursor` from the previous response. Send it with the same other parameters. | | `country` | no | Marketplace: `us` (default), `gb`, `ca`, `au`, `in`, `de`, `es`, `nl`, `be`, or `jp`. Sets the Amazon domain, currency, and request location. | | `zip_code` | no | Delivery postal code in that country, e.g. `10001`. Prices, stock, delivery dates, and the buy-box seller follow it. A call with it is billed at the endpoint's delivery-postcode rate. | Send `q`, `category_id`, `seller_id`, or a mix. Send `next_cursor` back as `cursor` for the next page; there is no `limit`. The filters are Amazon's own search refinements, so results match what a shopper sees with the same filters ticked. Amazon numbers most refinements per marketplace, and not every marketplace offers every one: `prime` outside the US, `condition=renewed` on `ca`, `in`, `de`, `be`, and `jp`, and `condition=used` on `in` and `es` return `400` before any request is charged. Each hit is `position`, `asin`, `title`, `url`, `price_text`, `price`, `currency`, `original_price_text`, `original_price`, `rating`, `ratings_count`, `badge` (for example `Overall Pick`), `sales_volume` (for example `1K+ bought in past month`), `image_url`, `sponsored`, `is_prime`, `delivery`, `coupon`, and `other_offers`. * `sponsored` is `true` for paid placements. They keep their place in `position`, as on the page. * `is_prime` is `true` when the card offers Prime delivery and `false` when it shows delivery without Prime. Amazon shows Prime only to US visitors who are not logged in, so it is `null` on every other marketplace. * `delivery` is the card's delivery line, e.g. `FREE delivery Tomorrow, Sep 26`. For Prime items this is the Prime member date. * `coupon` is `{ text, price_text, price }`, e.g. `5% off coupon` and the price after it, or `null`. * `other_offers` is the card's "More Buying Choices" line: `{ min_price_text, min_price, offers_count }`, the cheapest other new or used offer and how many there are. `offers_count` is a lower bound when Amazon prints `8+`. ## Product details `GET /v1/amazon/product?asin=B0CF3VGQFL` **Response time:** 3–6 s typical, 60 s limit. Page fetch. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `asin` | yes | 10-character Amazon ASIN. | | `country` | no | Marketplace: `us` (default), `gb`, `ca`, `au`, `in`, `de`, `es`, `nl`, `be`, or `jp`. Sets the Amazon domain, currency, and request location. | | `zip_code` | no | Delivery postal code in that country, e.g. `10001`. Prices, stock, delivery dates, and the buy-box seller follow it. A call with it is billed at the endpoint's delivery-postcode rate. | The body is `product`: | Field | Contents | | - | - | | `title`, `brand`, `authors` | `authors` is filled for books; `brand` is then `null`. | | `price`, `original_price`, `currency` | Buy-box price and list price. For books with no buy box, the selected format's price. | | `availability` | Amazon's stock line. | | `sold_by`, `ships_from` | Buy-box seller `{ seller_id, name }` and fulfiller. Pass `sold_by.seller_id` as `seller_id`. | | `delivery`, `delivery_location` | Amazon's delivery promise and the address it was computed for. | | `rating`, `ratings_count`, `rating_distribution` | Distribution is a list from 5 stars down to 1, each `{ stars, percent }`. Amazon publishes no count per star. | | `image_url`, `images` | Full-size gallery. | | `bullets`, `description` | Feature bullets and the description or book blurb. | | `categories` | Breadcrumb, broadest first. | | `best_sellers_rank` | `[{ rank, category }]`. | | `specifications` | Name-to-value map from the product's spec tables. | | `identifiers` | `isbn_10`, `isbn_13`, `upc`, `model_number`. | | `variants` | `[{ asin, selected, attributes }]`, e.g. `{ "Color": "Deep Black" }`. | | `formats` | Book formats: `[{ name, asin, price, selected }]`. | ## Product reviews `GET /v1/amazon/reviews?asin=B0CF3VGQFL&country=ca` **Response time:** 4–7 s typical, 60 s limit. Page fetch. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `asin` | yes | 10-character Amazon ASIN. | | `country` | yes | Marketplace: `gb`, `ca`, `au`, `in`, `de`, `es`, `nl`, `be`, or `jp`. `us` is not supported: amazon.com shows reviews only to signed-in shoppers. | | `zip_code` | no | Delivery postal code in that country, e.g. `10001`. Prices, stock, delivery dates, and the buy-box seller follow it. A call with it is billed at the endpoint's delivery-postcode rate. | > [!WARNING] > > Not available on amazon.com. amazon.com shows reviews only to signed-in > shoppers, and Clair does not sign in, so `country=us`, the default, returns > **400** `unsupported_parameter` and is not charged. Pass any other > marketplace: `gb`, `ca`, `au`, `in`, `de`, `es`, `nl`, `be`, or `jp`. Many > US products sell on amazon.ca and amazon.co.uk under the same ASIN. For a US > product's rating and `rating_distribution`, use > [product details](#product-details), which works on every marketplace. The reviews the product page shows without sign-in, up to about 13 (fewer when the product has fewer), plus `product.rating_distribution`. Amazon keeps the full review list behind sign-in on every marketplace, so there is no `page` or `cursor`, and `next_cursor` is always `null`. Amazon sometimes serves the page without its review block; Clair then reads the page once more, still for 1 request. If Amazon asks for a sign-in instead of showing reviews, the call fails with **502** `scrape_failed` and is refunded. The response has `product` (`asin`, `title`, `rating`, `ratings_count`, `rating_distribution`), then the list fields. Each review in `results` is `review_id`, `title`, `body`, `rating`, `author`, `date` (ISO), `country`, `verified_purchase`, `variant`, `helpful_votes_count`, and `url`. ## Product offers `GET /v1/amazon/offers?asin=1098145356` **Response time:** 2–4 s typical, 60 s limit. Page fetch. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `asin` | yes | 10-character Amazon ASIN. | | `country` | no | Marketplace: `us` (default), `gb`, `ca`, `au`, `in`, `de`, `es`, `nl`, `be`, or `jp`. Sets the Amazon domain, currency, and request location. | | `zip_code` | no | Delivery postal code in that country, e.g. `10001`. Prices, stock, delivery dates, and the buy-box seller follow it. A call with it is billed at the endpoint's delivery-postcode rate. | Every seller in Amazon's all-offers panel, after `product` (`asin`, `title`, `rating`, `ratings_count`, `url`). Each offer in `results` is `position`, `condition` (`New`, `Used - Like New`, ...), `price`, `original_price`, `delivery`, `ships_from`, and `seller` with `seller_id`, `name`, `rating`, `ratings_count`, and `positive_percent`. `results` is empty when Amazon lists none. The panel is one page, so `next_cursor` is always `null`. ## GTIN lookup `GET /v1/amazon/lookup?gtin=9781098145354` **Response time:** 2–4 s typical, 60 s limit. Page fetch. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `gtin` | yes | UPC (12), EAN (13), GTIN-8, GTIN-14, or ISBN-10. | | `country` | no | Marketplace: `us` (default), `gb`, `ca`, `au`, `in`, `de`, `es`, `nl`, `be`, or `jp`. Sets the Amazon domain, currency, and request location. | | `zip_code` | no | Delivery postal code in that country, e.g. `10001`. Prices, stock, delivery dates, and the buy-box seller follow it. A call with it is billed at the endpoint's delivery-postcode rate. | Returns product cards in the search shape. Use `results[0].asin`. ## Seller profile `GET /v1/amazon/seller?seller_id=AWZI6BA70DZZD` **Response time:** 1–3 s typical, 60 s limit. Page fetch. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `seller_id` | yes | Amazon seller id, e.g. `A245R8VFMDKNT1`, from an offer's `seller.seller_id`. | | `country` | no | Marketplace: `us` (default), `gb`, `ca`, `au`, `in`, `de`, `es`, `nl`, `be`, or `jp`. Sets the Amazon domain, currency, and request location. | | `zip_code` | no | Delivery postal code in that country, e.g. `10001`. Prices, stock, delivery dates, and the buy-box seller follow it. A call with it is billed at the endpoint's delivery-postcode rate. | The body is `seller`: `seller_id`, `name`, `logo_url`, `rating`, `ratings_count`, `positive_percent`, `ratings` for `last_30_days`, `last_90_days`, `last_12_months`, and `lifetime`, `rating_distribution`, `business_name`, `business_address`, `about`, `storefront_url`, and recent `feedback` (`rating`, `text`, `author`, `date`). To list the products a seller carries, call search with their id: `GET /v1/amazon/search?seller_id=AWZI6BA70DZZD`. The cards are the same as any search, without other sellers' sponsored ads. ## Best sellers `GET /v1/amazon/bestsellers?category=electronics` **Response time:** 1–3 s typical, 60 s limit. Page fetch. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `category` | yes | Best-seller slug, e.g. `electronics` or `books`. | | `node_id` | no | Subcategory node from `subcategories[]`. | | `page` | no | Amazon ranks 30 a page, 60 in all. Page to open, 1 to 2. Default 1. Send `page` or `cursor`, not both. | | `cursor` | no | Amazon ranks 30 a page, 60 in all. `next_cursor` from the previous response. Send it with the same other parameters. | | `country` | no | Marketplace: `us` (default), `gb`, `ca`, `au`, `in`, `de`, `es`, `nl`, `be`, or `jp`. Sets the Amazon domain, currency, and request location. | | `zip_code` | no | Accepted and ignored: best-seller lists are read without a delivery postcode, at the usual rate. | Each result is `rank`, `asin`, `title`, `url`, `price`, `rating`, `ratings_count`, and `image_url`. `category` names the ranking, and `subcategories[]` has `name`, `category`, and `node_id` for drilling down. Amazon ranks 60 a category over 2 pages; `next_cursor` opens page 2. ## Categories `GET /v1/amazon/categories` **Response time:** 1–3 s typical, 60 s limit. Page fetch. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `category` | no | Department slug. Omit for the top level. | | `node_id` | no | Subcategory node. Needs `category`. | | `country` | no | Marketplace: `us` (default), `gb`, `ca`, `au`, `in`, `de`, `es`, `nl`, `be`, or `jp`. Sets the Amazon domain, currency, and request location. | | `zip_code` | no | Accepted and ignored: best-seller lists are read without a delivery postcode, at the usual rate. | Without parameters, the top-level departments. With `category` (and optionally `node_id`), that node's children, after `parent`. Each entry in `results` is `name`, `category`, and `node_id`. Use `node_id` as `category_id` in search or as `node_id` in best sellers. ## Not available Amazon renders deals client-side and puts full review pagination behind sign-in, so neither is offered. Reviews on amazon.com need a sign-in too, so the reviews endpoint does not take `country=us`. Auth, plans, rate limits, and error codes: [Authentication](/docs/authentication). # Google Shopping API reference Source: https://clair.im/docs/products-api/google-shopping Google Shopping API for developers. Search returns every product card Google shows for a query; Product returns one product with each store's offer, its options, and specifications. Two endpoints, one key. Search returns the product cards Google shows for a query. Product takes a card's `product_id` and returns every store offer Google's product viewer lists for it, with the product's options and specifications. Live scrape of **google.com**. One Search request returns the Google Shopping products Google shows for a query, usually 20 to 30, in its shopping sections (deals, popular products, more products). Each card carries one store's offer: its price, the pre-discount price when the product is on sale, delivery terms, and the product's rating. A product listed in more than one section appears once. This is not Google's Merchant API, which manages a merchant's own listings. See the [Google Shopping API: overview, pricing, and free tier](https://clair.im/apis/google-shopping). ## Search `GET /v1/google-shopping` · **1 request** ```sh theme={null} curl -G https://api.clair.im/v1/google-shopping \ -H "Authorization: Bearer YOUR_KEY" \ --data-urlencode "q=wireless earbuds" ``` ## Parameters **Response time:** 3–7 s typical, 60 s limit. Page fetch. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `q` | yes | Product query. | | `language` | no | ISO 639-1 interface language. Default `en`. | | `country` | no | ISO 3166-1 alpha-2 country the search is made from. Default `us`. Sets the stores and currency. | `country` sets where the search is made from, so it sets the stores and the currency. Sending `page`, `cursor`, or `limit` returns `locked_parameter`: Google shows these sections once per query, so `next_cursor` is always `null`. ## Response ```json theme={null} { "engine": "google_shopping", "family": "ecommerce", "query": { "q": "wireless earbuds", "language": "en", "country": "us" }, "count": 31, "total_results": null, "results": [ { "position": 1, "title": "JLab GO Air Pop True Wireless Earbuds", "product_id": "9146411353573113826", "product_link": "https://www.google.com/search?ibp=oshop&prds=pvt:hg,imageDocid:289739303464432744,gpcid:9146411353573113826,headlineOfferDocid:12831595790186495719,catalogid:8372463217625314514,productDocid:10114522055954158630&q=product", "image": "data:image/webp;base64,UklGRi…", "price_text": "$14.99", "price": 14.99, "currency": "USD", "original_price_text": "$20", "original_price": 20, "badge": "24% OFF", "merchant": "Target", "more_merchants": true, "delivery": "Free delivery on $35+", "rating": 4.3, "ratings_count": 33000, "section": "Popular products" } ], "next_cursor": null } ``` | Field | Contents | | - | - | | `product_id` | Google's product id: one product across every store that sells it. Stable between searches, so use it to join snapshots, and pass it to [Product](#product). | | `product_link` | Google's product viewer for the card, where it lists every store's offer. Built from the ids on the card. | | `image` | The card's picture as Google sends it: usually a thumbnail inlined as a `data:` URI of 10 to 20 KB, sometimes a URL. Null when the page carries none. | | `price`, `original_price` | Parsed from `price_text` and `original_price_text`. `original_price` is null when the product is not on sale. A card priced from several stores shows `$890+`: `price` is that lowest price. | | `badge` | Google's label, such as `25% OFF` or `LOW PRICE`. | | `merchant`, `more_merchants` | The store whose offer the card shows, and whether other stores sell it too. `merchant` is null on a card priced from several stores. | | `rating`, `ratings_count` | The product's rating out of 5, and its review count as Google rounds it (`33K` is 33000). | | `section` | The block the card sits in, such as `Popular products`. | A query no product matches returns `count: 0` and an empty `results`. ## Product `GET /v1/google-shopping/product` · **1 request** ```sh theme={null} curl -G https://api.clair.im/v1/google-shopping/product \ -H "Authorization: Bearer YOUR_KEY" \ --data-urlencode "product_id=5310256352848280793" ``` **Response time:** 12–25 s typical, 80 s limit. Browser with steps: Google opens a product in a viewer only a browser draws; the request waits for its store offers to load. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `product_id` | yes | A search result's `product_id`. | | `language` | no | ISO 639-1 interface language. Default `en`. | | `country` | no | ISO 3166-1 alpha-2 country the page is opened from. Default `us`. Sets the stores and currency. | Takes a search result's `product_id` and returns what Google's product viewer shows for it: the stores selling it, the price range across stores, its options, description, pictures, and specification table. The viewer is drawn by a browser, so a request takes 10 to 20 seconds, sometimes longer. ```json theme={null} { "engine": "google_shopping", "family": "ecommerce", "query": { "product_id": "5310256352848280793", "language": "en", "country": "us" }, "product": { "product_id": "5310256352848280793", "title": "Sony WF-C510 Truly Wireless Earbuds", "url": "https://www.google.com/search", "description": "WF-C510 True Wireless Bluetooth Earbuds - Black Light and compact to give you all-day comfort and designed for the ideal fit, for an exceptional all-round listening experience. Enjoy your music for longer with a full…", "images": [ "https://encrypted-tbn3.gstatic.com/shopping?...", "https://encrypted-tbn0.gstatic.com/shopping?..." ], "variants": [ { "option": null, "name": "Black", "available": true, "image": "https://encrypted-tbn1.gstatic.com/shopping?..." }, { "option": null, "name": "Blue", "available": true, "image": "https://encrypted-tbn1.gstatic.com/shopping?..." }, { "option": null, "name": "White", "available": true, "image": "https://encrypted-tbn1.gstatic.com/shopping?..." }, { "option": null, "name": "Yellow", "available": true, "image": "https://encrypted-tbn3.gstatic.com/shopping?..." } ], "typical_price": { "low": 48, "high": 70, "currency": "USD" }, "specifications": [ { "name": "Headphone Cup Type", "value": "In-ear" }, { "name": "Body Part Use", "value": "Ears" }, { "name": "Noise Cancellation Type", "value": "Passive" } ], "offers": [ { "position": 1, "merchant": "Sony", "title": "Sony Truly Wireless Earbuds Black WF-C510/B", "price_text": "$59.99", "price": 59.99, "currency": "USD", "original_price": 70, "discount": "14% off", "badge": "Best price", "availability": "In stock online", "merchant_rating": 4.8, "delivery": "Free delivery between Tue - Wed", "returns": "Free 30-day returns", "link": "https://electronics.sony.com/audio/headphones/all-headphones/p/wfc510-b" }, { "position": 2, "merchant": "Walmart - Electronic Express", "title": "Sony Wf-c510 Compact and Lightweight Truly Wireless Earbuds with Up To 11 Hours Battery Life and Multipoint Connection (White)", "price_text": "$59.99", "price": 59.99, "currency": "USD", "original_price": 68, "discount": "11% off", "badge": null, "availability": "In stock online", "merchant_rating": null, "delivery": "Free delivery", "returns": null, "link": "https://www.walmart.com/ip/Sony-WFC510-Earbuds/10684869663" } ] } } ``` | Field | Contents | | - | - | | `offers` | The stores the viewer lists, usually three to five. Each has `merchant`, `title` (the store's own listing name), `price`, `original_price`, `discount`, `badge` (`Best price`, `Most popular`), `availability`, `merchant_rating`, `delivery`, `returns`, and `link`. | | `offers[].link` | The store's product page. When Google does not give the address, a google.com link that forwards to it. | | `typical_price` | The range Google sees across stores (`Typically $48–$70`). Null when the viewer shows none. | | `variants` | The options the product comes in. `option` is what varies (`Color`, `Size`); it is null on picture swatches, which Google does not label. `available` is false for an option no store has. | | `specifications` | The viewer's "About this product" table, often 10 to 50 rows. | An id Google has no product for returns `404` `not_found`. Use the `country` the `product_id` came from: stores and prices differ by country. ## What this API does not do * Product returns the stores Google's viewer lists first, usually three to five, not every store that sells the product. * It does not return product reviews or price history. * It does not return full-size images: `image` is the thumbnail on the card. * It does not paginate. Auth, plans, rate limits, and error codes: [Authentication](/docs/authentication). # Clair API quickstart Source: https://clair.im/docs/quickstart Create a Clair API key and call api.clair.im. Every Clair API uses the same Bearer token. Every Clair API uses one host and one key. Create the key in the [dashboard](https://clair.im/dashboard) and send it as `Authorization: Bearer YOUR_KEY`. One plan covers every API. Full header and error reference: [Authentication](/docs/authentication). ## 1. Get a key 1. Open [clair.im/dashboard](https://clair.im/dashboard) and create an account. 2. You start on the **free tier**: \$1 of free credit across every API, once, no card. It is granted on your first call. 3. Create a key under **API keys** and copy it once. | API | Paths | Billed per | | - | - | - | | [Google Search](https://clair.im/apis/google-search) | `GET /v1/google-search` | results pages | | [Google Maps](https://clair.im/apis/google-maps) | `GET /v1/google-maps/search` and `/v1/google-maps/place` | places | | [ChatGPT](https://clair.im/apis/chatgpt) | `GET /v1/chatgpt` | answers | | [Google AI Overview](https://clair.im/apis/google-ai-overview) | `GET /v1/google-ai-overview` | overviews | | [Google AI Mode](https://clair.im/apis/google-ai-mode) | `GET /v1/google-ai-mode` | answers | | [Google News](https://clair.im/apis/google-news) | `GET /v1/google-news` | articles | | [Reuters](https://clair.im/apis/reuters) | `GET /v1/reuters/search` and `/v1/reuters/article` | articles | | [Bloomberg](https://clair.im/apis/bloomberg) | `GET /v1/bloomberg/search` and `/v1/bloomberg/article` | articles | | [Associated Press](https://clair.im/apis/ap) | `GET /v1/ap/search` and `/v1/ap/article` | articles | | [Glassdoor](https://clair.im/apis/glassdoor) | `GET /v1/glassdoor/jobs`, `/v1/glassdoor/job`, `/v1/glassdoor/companies`, `/v1/glassdoor/company`, `/v1/glassdoor/salaries` | jobs, companies, salaries | | [Indeed](https://clair.im/apis/indeed) | `GET /v1/indeed/jobs`, `/v1/indeed/job`, `/v1/indeed/companies`, `/v1/indeed/company`, `/v1/indeed/reviews` | jobs, companies, reviews | | [Amazon](https://clair.im/apis/amazon) | `GET /v1/amazon/search`, `/v1/amazon/product`, `/v1/amazon/reviews`, `/v1/amazon/offers`, `/v1/amazon/lookup`, `/v1/amazon/seller`, `/v1/amazon/bestsellers`, `/v1/amazon/categories` | products, reviews, offers, sellers, categories | | [Google Shopping](https://clair.im/apis/google-shopping) | `GET /v1/google-shopping` and `/v1/google-shopping/product` | products | | [Crunchbase](https://clair.im/apis/crunchbase) | `GET /v1/crunchbase/search`, `/v1/crunchbase/organization`, `/v1/crunchbase/person` | search results, companies, people | | [YouTube](https://clair.im/apis/youtube) | `GET /v1/youtube/search`, `/v1/youtube/video`, `/v1/youtube/channel`, `/v1/youtube/comments`, `/v1/youtube/transcript` | videos, comments, transcripts | | [TikTok](https://clair.im/apis/tiktok) | `GET /v1/tiktok/video`, `/v1/tiktok/profile`, `/v1/tiktok/videos`, `/v1/tiktok/hashtag` | videos, profiles | | [Instagram](https://clair.im/apis/instagram) | `GET /v1/instagram/post`, `/v1/instagram/profile`, `/v1/instagram/hashtag` | posts, profiles | | [Trustpilot](https://clair.im/apis/trustpilot) | `GET /v1/trustpilot/reviews`, `/v1/trustpilot/search`, `/v1/trustpilot/categories`, `/v1/trustpilot/review` | reviews, businesses | | [Web Scraper](https://clair.im/apis/scrape) | `GET /v1/scrape` | pages | You pay for the data a call returns: each endpoint is priced per 1,000 of its item, so a search that returns 40 jobs is 40 jobs and a profile is one. A call that returns nothing, or ends in an error, is free. Rates per plan are on the [pricing page](https://clair.im/pricing); [Authentication](/docs/authentication#pay-as-you-go-and-plans) has the details. Publisher article scrapes (Reuters, Bloomberg, Associated Press) are in the [API catalog](https://clair.im/apis). ## 2. Make your first call > [!TIP] > > Prefer Postman? Fork the [Clair API collection](https://www.postman.com/clair-api-team/clair-api/collection/58797287-3f95b24e-229a-479c-b33d-58f111c46392): every Clair API, with > parameter docs and a saved example response for every request. > [tab] Google Search > > Live organic Google Search, 10 hits per page: > > ```sh cURL theme={null} > curl -G https://api.clair.im/v1/google-search \ > -H "Authorization: Bearer YOUR_KEY" \ > --data-urlencode "q=albert einstein" \ > --data-urlencode "country=us" \ > --data-urlencode "page=1" > ``` > > > [card] [Google Search API](/docs/search-api/google-search) > > > > Organic hits, cursor pagination, language, and country. > [tab] Web Scraper > > Any public page as HTML: > > ```sh cURL theme={null} > curl -G https://api.clair.im/v1/scrape \ > -H "Authorization: Bearer YOUR_KEY" \ > --data-urlencode "url=https://news.ycombinator.com/" > ``` > > > [card] [Web Scraper API](/docs/scrape-api/web-scraper) > > > > A direct fetch first, then a browser. `render=true` for JavaScript pages. One request. ## 3. Read the errors Mounted endpoints return a stable machine-readable code you can branch on and human detail you should not parse. Typical envelope: ```json theme={null} { "error": "bad_request", "detail": "q is required" } ``` `401` means the bearer token is missing or invalid. `429` with `quota_exceeded` means your credit is spent, so top up on the Billing page; `rate_limit_exceeded` means the account rate limit was hit, so wait `Retry-After` seconds. > [!NOTE] > > Every call is one request, whichever API it goes to. Each `page` is its own > request. A call that fails with a `5xx` is not charged. # Response format and changes Source: https://clair.im/docs/response-format What every Clair API response promises: a published JSON schema, fields that are always present, and which changes we make without notice. Every endpoint returns JSON with a fixed shape. Each API's shape is published as an OpenAPI 3.1 spec at `https://clair.im/openapi/.json`, for example [`glassdoor.json`](https://clair.im/openapi/glassdoor.json). Generate your types from it, or validate against it. ## Fields are always present Every field in the schema is in every response. When the page does not show a value, the field is `null`. It is never left out. Each response is checked against its schema before it is sent. If a page changes and a value no longer fits its field, you get `null` in that field, never a value of the wrong type. ## Changes we make without notice These changes keep working code working. Write your client to tolerate them: * **New fields.** Ignore fields you do not know. * **New values in a set.** A field such as `workplace_type` lists the values it sends today. Handle an unknown value, for example by treating it like `null`. * **Fields filled more often.** A field that was often `null` may start carrying a value. ## Changes we do not make to an endpoint * Removing or renaming a field. * Changing a field's type, for example from a number to a string. * Making a field that is never `null` nullable. * Changing a fixed value, such as `engine`. # Response times Source: https://clair.im/docs/response-times How long each Clair endpoint takes, why, and what to set your client timeout to. Every request is live: Clair loads the page when you ask, so the response time is mostly the time the source site takes to hand over its data. Some sites answer a plain request in a second or two. Others only show their data inside a real browser, after a wait, a click, or a scroll. Those take longer on every request, and that time is expected. Each endpoint is labeled by how it loads, with the time most requests finish in and the limit after which Clair stops and returns an error. ## How an endpoint loads | Label | Most endpoints | What happens | | - | - | - | | Page fetch | 1–7 s | One request for the page, through a proxy network that gets past the site's bot checks. No browser. Usually a few seconds; a site that challenges the request takes longer. | | Browser render | 10–20 s | The site builds the page with JavaScript or blocks plain requests, so a real browser opens it and waits for the content. Starting the browser and loading the page takes most of the time. | | Browser with steps | 9–37 s | A real browser opens the page, then waits, clicks, or scrolls so the site loads the rest. Each step adds seconds, and they cannot run in parallel. | | Live AI answer | 10–40 s | A real browser asks the AI product the question and waits until it has finished writing. The answer's length sets the time, not the network. | ## Reading the numbers * **Typical** is the range most requests finish in, measured on live requests with nothing cached. A request inside it is working as intended. * A request above the range but under the limit usually means the source site blocked the first try and Clair tried again a different way. This happens on a small share of requests to any site. * **Limit** is where Clair stops. The request returns `504` and is not charged. Retry it. * A repeated request can come back in milliseconds: Clair keeps a result for a short time and serves the same request from it. Set your client timeout a few seconds above the endpoint's limit, so you get Clair's error body and not a dropped connection. To get through a long list faster, send requests in parallel within your plan's rate limit; one slow request does not hold up the others. A `503` `overloaded` means the endpoint is at capacity for the moment: wait a second and retry. ## Every endpoint ### Web Scraper API | Endpoint | How it loads | Typical | Limit | | - | - | - | - | | `GET /v1/scrape` | Page fetch | 1–5 s | 60 s | ### Amazon API | Endpoint | How it loads | Typical | Limit | | - | - | - | - | | `GET /v1/amazon/search` | Page fetch | 2–5 s | 60 s | | `GET /v1/amazon/product` | Page fetch | 3–6 s | 60 s | | `GET /v1/amazon/reviews` | Page fetch | 4–7 s | 60 s | | `GET /v1/amazon/offers` | Page fetch | 2–4 s | 60 s | | `GET /v1/amazon/lookup` | Page fetch | 2–4 s | 60 s | | `GET /v1/amazon/seller` | Page fetch | 1–3 s | 60 s | | `GET /v1/amazon/bestsellers` | Page fetch | 1–3 s | 60 s | | `GET /v1/amazon/categories` | Page fetch | 1–3 s | 60 s | ### Google Search API | Endpoint | How it loads | Typical | Limit | | - | - | - | - | | `GET /v1/google-search` | Page fetch | 3–8 s | 60 s | ### Google Maps API | Endpoint | How it loads | Typical | Limit | | - | - | - | - | | `GET /v1/google-maps/search` | Browser with steps | 9–15 s | 60 s | | `GET /v1/google-maps/place` | Browser with steps | 13–17 s | 60 s | ### ChatGPT API | Endpoint | How it loads | Typical | Limit | | - | - | - | - | | `GET /v1/chatgpt` | Live AI answer | 15–33 s | 90 s | ### Google AI Overview API | Endpoint | How it loads | Typical | Limit | | - | - | - | - | | `GET /v1/google-ai-overview` | Live AI answer | 10–26 s | 75 s | ### Google AI Mode API | Endpoint | How it loads | Typical | Limit | | - | - | - | - | | `GET /v1/google-ai-mode` | Live AI answer | 13–40 s | 85 s | ### YouTube API | Endpoint | How it loads | Typical | Limit | | - | - | - | - | | `GET /v1/youtube/search` | Page fetch | 1–4 s | 40 s | | `GET /v1/youtube/video` | Page fetch | 1–3 s | 40 s | | `GET /v1/youtube/channel` | Page fetch | 1–4 s | 40 s | | `GET /v1/youtube/comments` | Page fetch | 1–2 s | 40 s | | `GET /v1/youtube/transcript` | Page fetch | 1–3 s | 50 s | ### TikTok API | Endpoint | How it loads | Typical | Limit | | - | - | - | - | | `GET /v1/tiktok/video` | Page fetch | 1–3 s | 40 s | | `GET /v1/tiktok/profile` | Page fetch | 1–3 s | 40 s | | `GET /v1/tiktok/videos` | Browser with steps | 19–37 s | 60 s | | `GET /v1/tiktok/hashtag` | Browser with steps | 22–37 s | 60 s | ### Instagram API | Endpoint | How it loads | Typical | Limit | | - | - | - | - | | `GET /v1/instagram/post` | Page fetch | 1–4 s | 40 s | | `GET /v1/instagram/profile` | Page fetch | 1–3 s | 40 s | | `GET /v1/instagram/hashtag` | Page fetch | 1–3 s | 40 s | ### Glassdoor API | Endpoint | How it loads | Typical | Limit | | - | - | - | - | | `GET /v1/glassdoor/jobs` | Page fetch | 2–6 s | 90 s | | `GET /v1/glassdoor/job` | Browser render | 24–40 s | 70 s | | `GET /v1/glassdoor/companies` | Page fetch | 2–7 s | 70 s | | `GET /v1/glassdoor/company` | Page fetch | 1–22 s | 90 s | | `GET /v1/glassdoor/salaries` | Page fetch | 1–38 s | 90 s | ### Indeed API | Endpoint | How it loads | Typical | Limit | | - | - | - | - | | `GET /v1/indeed/jobs` | Page fetch | 3–7 s | 60 s | | `GET /v1/indeed/job` | Page fetch | 2–6 s | 50 s | | `GET /v1/indeed/companies` | Page fetch | 2–6 s | 50 s | | `GET /v1/indeed/company` | Page fetch | 2–16 s | 50 s | | `GET /v1/indeed/reviews` | Page fetch | 3–8 s | 50 s | ### Google News API | Endpoint | How it loads | Typical | Limit | | - | - | - | - | | `GET /v1/google-news` | Page fetch | 2–6 s | 60 s | ### Google Shopping API | Endpoint | How it loads | Typical | Limit | | - | - | - | - | | `GET /v1/google-shopping` | Page fetch | 3–7 s | 60 s | | `GET /v1/google-shopping/product` | Browser with steps | 12–25 s | 80 s | ### Trustpilot API | Endpoint | How it loads | Typical | Limit | | - | - | - | - | | `GET /v1/trustpilot/reviews` | Browser render | 10–20 s | 45 s | | `GET /v1/trustpilot/search` | Browser render | 10–15 s | 45 s | | `GET /v1/trustpilot/categories` | Browser render | 12–20 s | 45 s | | `GET /v1/trustpilot/review` | Browser render | 12–20 s | 45 s | ### Crunchbase API | Endpoint | How it loads | Typical | Limit | | - | - | - | - | | `GET /v1/crunchbase/search` | Page fetch | 1–13 s | 55 s | | `GET /v1/crunchbase/organization` | Page fetch | 1–3 s | 55 s | | `GET /v1/crunchbase/person` | Page fetch | 1–2 s | 55 s | ### Reuters API | Endpoint | How it loads | Typical | Limit | | - | - | - | - | | `GET /v1/reuters/search` | Page fetch | 2–10 s | 50 s | | `GET /v1/reuters/article` | Page fetch | 1–3 s | 50 s | ### Bloomberg API | Endpoint | How it loads | Typical | Limit | | - | - | - | - | | `GET /v1/bloomberg/search` | Page fetch | 1–3 s | 40 s | | `GET /v1/bloomberg/article` | Page fetch | 1–3 s | 40 s | ### Associated Press API | Endpoint | How it loads | Typical | Limit | | - | - | - | - | | `GET /v1/ap/search` | Page fetch | 1–6 s | 60 s | | `GET /v1/ap/article` | Page fetch | 1–5 s | 60 s | # Trustpilot API reference Source: https://clair.im/docs/reviews-api/trustpilot Trustpilot API: public company profiles, review listings, company search, and categories. One Trustpilot page per call. Live scrape of Trustpilot's **public pages**. Company profiles include trust score, rating distribution, claim status, and one review page. Search and category listings find businesses. A `review_id` returns one review and any company reply. It does not log in, post reviews, or call Trustpilot's private API. See the [Trustpilot API: overview, pricing, and free tier](https://clair.im/apis/trustpilot) and [review intelligence use case](https://clair.im/use-cases/review-intelligence). ## Company reviews `GET /v1/trustpilot/reviews` · **1 request** ```sh theme={null} curl -G https://api.clair.im/v1/trustpilot/reviews \ -H "Authorization: Bearer YOUR_KEY" \ --data-urlencode "domain=stripe.com" \ --data-urlencode "page=1" ``` **Response time:** 10–20 s typical, 45 s limit. Browser render: Trustpilot blocks plain requests, so a browser opens the page. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `domain` | yes | Public hostname, with or without `https://`. IPs and localhost are rejected. | | `stars` | no | Star filter, 1 through 5. Accepts `5`, `1,2`, or repeated `stars=1&stars=2`. | | `language` | no | ISO 639-1/3 code, or `all`. `.com` defaults to English unless `all` is set. | | `sort` | no | `recency` (Trustpilot default) or `relevance`. | | `date` | no | `last30days`, `last3months`, `last6months`, or `last12months`. | | `verified` | no | `true` to keep verified reviews only. | | `replies` | no | `true` to keep reviews with a company reply. | | `q` | no | Keyword to search the reviews for (Trustpilot's `search=`). | | `topic` | no | Trustpilot topic id, e.g. `customer_service`. | | `page` | no | Page to open, 1 to 10. Default 1. Send `page` or `cursor`, not both. | | `cursor` | no | `next_cursor` from the previous response. Send it with the same other parameters. | Anonymous review lists redirect to login after page 10. Send `next_cursor` back as `cursor` for the next page; each page is a new billed request. The response has `business` (`business_id`, trust score, rating distribution, claim status, contact, reply behaviour), `languages`, `ai_summary`, and `similar_businesses`, then `count`, `total_results` (reviews matching the filters), `results[]` (each with `review_id` and a `reviewer` with `reviewer_id`), and `next_cursor`. | Review field | Contents | | - | - | | `verification` | `is_verified`, `level` (`verified`, `invited`, or `not-verified`), `source` (the channel the review came in through, such as `Organic` or `BasicLink`), and `verification_source` (what Trustpilot's verification rests on, such as `invitation`). | | `is_pending` | `true` while Trustpilot is still checking the review. | | `is_merged` | `true` for a review carried over from a profile merged into this one. | | `reviewer.company_reviews_count` | Reviews this reviewer has written of the same company, this one included. `reviewer.reviews_count` counts all their reviews. | ## Company search `GET /v1/trustpilot/search` · **1 request** ```sh theme={null} curl -G https://api.clair.im/v1/trustpilot/search \ -H "Authorization: Bearer YOUR_KEY" \ --data-urlencode "q=bank" ``` **Response time:** 10–15 s typical, 45 s limit. Browser render: Trustpilot blocks plain requests, so a browser opens the page. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `q` | yes | Business name or domain fragment Trustpilot search accepts. | | `claimed` | no | `true` to keep claimed profiles. | | `min_trust_score` | no | `3.0`, `4.0`, or `4.5`. A bare `4` becomes `4.0`. | | `min_reviews` | no | `100`, `250`, or `500`. Other values are ignored by Trustpilot. | | `page` | no | Page to open, 1 to 100. Default 1. Send `page` or `cursor`, not both. | | `cursor` | no | `next_cursor` from the previous response. Send it with the same other parameters. | ## Category listing `GET /v1/trustpilot/categories` · **1 request** **Response time:** 12–20 s typical, 45 s limit. Browser render: Trustpilot blocks plain requests, so a browser opens the page. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `category` | yes | Trustpilot category id, e.g. `bank`. | | `country` | no | ISO-2. `UK` is accepted as `GB`. | | `sort` | no | `recommended` (default), `latest_review`, or `reviews_count`. | | `claimed` | no | `true` to keep claimed profiles. | | `min_trust_score` | no | `3.0`, `4.0`, or `4.5`. | | `page` | no | Page to open, 1 to 500. Default 1. Send `page` or `cursor`, not both. | | `cursor` | no | `next_cursor` from the previous response. Send it with the same other parameters. | ## One review `GET /v1/trustpilot/review` · **1 request** **Response time:** 12–20 s typical, 45 s limit. Browser render: Trustpilot blocks plain requests, so a browser opens the page. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `review_id` | yes | 24-character hex Trustpilot review id, from `results[].review_id` or the public review URL. Case-insensitive. | ## Errors An unlisted domain, category, or review returns `404` `not_found`. A review `page` past 10 returns `400` `bad_request`. A WAF wall or a login redirect returns `502` `scrape_failed`. Sending `limit` is `400` `locked_parameter`. ## What this API does not do * It does not export Trustpilot's private review corpus. * It does not score companies or recommend vendors. * It does not read past page 10 of a review list, which Trustpilot shows only to signed-in visitors. * It does not read locale subdomains such as `uk.trustpilot.com`. Keep author names and Trustpilot URLs where you display a review. Auth, plans, rate limits, and error codes: [Authentication](/docs/authentication). # Web Scraper API reference Source: https://clair.im/docs/scrape-api/web-scraper Web Scraper API: any public page as HTML. A direct fetch first, then unblocking networks that get past bot checks, then a browser; render=true for JavaScript-built pages. One request. Send a URL and get the page's HTML. A direct fetch goes first. When the page blocks it or answers an error, unblocking networks that get past bot checks try it in turn, without a browser, and a browser loads it as the last resort. `render=true` goes straight to the browser, for pages that build their content in JavaScript. It returns the page, not parsed fields. For structured results from Google, Amazon, Glassdoor, and the other sites in the catalog, use their APIs. See the [Web Scraper API: overview, pricing, and free tier](https://clair.im/apis/scrape). ## Endpoint `GET /v1/scrape` · **1 request** ```sh theme={null} curl -G https://api.clair.im/v1/scrape \ -H "Authorization: Bearer YOUR_KEY" \ --data-urlencode "url=https://news.ycombinator.com/" ``` ## Parameters **Response time:** 1–5 s typical, 60 s limit. Page fetch. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `url` | yes | The page, with `http://` or `https://`. Public hostnames only: IP addresses, localhost, custom ports, and URLs with a username or password are rejected. | | `render` | no | `true` to load the page in a browser first, for content built in JavaScript. Default `false`. | ## Response ```json theme={null} { "engine": "scrape", "family": "web", "query": { "url": "https://news.ycombinator.com/", "render": false }, "page": { "final_url": "https://news.ycombinator.com/", "status": 200, "rendered": false, "title": "Hacker News", "html": "……" } } ``` | Field | Type | Contract | | - | - | - | | `query.url` | string | The URL you asked for, without its fragment. | | `page.final_url` | string | Where the page ended up after redirects. | | `page.status` | integer | The HTTP status the page answered with. | | `page.rendered` | boolean | `true` when a browser loaded the page. | | `page.title` | string \| null | The page's ``, or `null` when it has none. | | `page.html` | string | The page's HTML. Rendered pages return the DOM after load. | `page.status` is the target page's own status: a page that answers 404 comes back as a `200` response with `"status": 404`. ## Errors When no route could load the page, the error says why. None of them is charged. | Status | `error` | Meaning | | - | - | - | | `502` | `target_blocked` | The site refused automated access on every route. `detail` gives the status it answered with. | | `504` | `target_timeout` | The site did not answer in time. | | `502` | `scrape_failed` | We could not load the page. Retry; if it keeps failing, contact support with the response's `x-request-id`. | | `422` | `page_too_large` | The page is over the 6 MB limit. | | `422` | `unsupported_content` | The URL serves something other than an HTML or text page. | | `422` | `target_unreachable` | The URL's hostname does not exist. | | `504` | `timeout` | The request passed its 60-second deadline. | ## What this API does not do * It does not parse the page or follow links. One URL is one page. * It does not log in, fill forms, or click. * It does not fetch private addresses, non-HTML files, or pages over the size limit. Auth, plans, rate limits, and error codes: [Authentication](/docs/authentication). # Google Maps API reference Source: https://clair.im/docs/search-api/google-maps Google Maps API: local businesses for a Maps query with place_id, coordinates, phone, website, and ratings, then one place with hours, rating histogram, and top reviews. Two endpoints, one key. Both load Google Maps in a real browser, in English. Google gives logged-out visitors either a **full** or a **limited** view of Maps, and the API cannot pick which. The limited view leaves out review counts, the rating histogram, review topics, reviews, and most of the week's hours. Those fields are then null or empty; everything else is the same. See the [Google Maps API: overview, pricing, and free tier](https://clair.im/apis/google-maps). ## Search `GET /v1/google-maps/search` · **1 request** One call scrolls the Maps results list and returns every place it loaded, usually 20 to 70, repeats removed. There is no paging. ```sh theme={null} curl -G https://api.clair.im/v1/google-maps/search \ -H "Authorization: Bearer YOUR_KEY" \ --data-urlencode "q=plumbers in Denver" ``` **Response time:** 9–15 s typical, 60 s limit. Browser with steps: Maps draws its results in the browser, which then scrolls the list until it stops growing. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `q` | yes | What and where, as typed into Maps: `coffee in Austin TX`. | | `country` | no | ISO 3166-1 alpha-2 country the search is made from. Default `us`. Results are in English. | | `latitude` | no | Center the map here. Send with `longitude`. | | `longitude` | no | Center the map here. Send with `latitude`. | | `zoom` | no | Map zoom 3 to 21 when `latitude` is set. Default 14. | One call returns the whole scrolled list, so there is no `page` or `cursor`, and `next_cursor` is always `null`. Each result includes `position`, `title`, `place_id`, `data_id` (the Maps feature id), `cid`, `latitude`, `longitude`, `rating`, `reviews_count`, `category`, `price`, `address`, `open_state`, `phone`, `website`, `description`, `wheelchair_accessible`, `action_links[]` (`label`, `url`: Book online, Order online, and the like), `thumbnail`, `sponsored`, and `url`. * `address` is the street line Maps shows on the card. Service-area businesses show none. * Trade searches (plumbers, HVAC) carry `phone` and `website` on each card. Storefront searches (cafés, restaurants, shops, dentists) show a photo instead, with no phone, website, or usually price; call Place for those. * `reviews_count` is null on cards Google drew in its limited view. One list can mix both. * `sponsored` places are Google ads. Their `website` is null because the card links through an ad redirect. ## Place `GET /v1/google-maps/place` · **1 request** ```sh theme={null} curl -G https://api.clair.im/v1/google-maps/place \ -H "Authorization: Bearer YOUR_KEY" \ --data-urlencode "place_id=ChIJszGcvzV0bIcR3_6j5Gru8sM" ``` **Response time:** 13–17 s typical, 60 s limit. Browser with steps: Maps draws the place in the browser, which then opens the week's hours and the full review texts. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `place_id` | yes | Google place id, such as `ChIJszGcvzV0bIcR3_6j5Gru8sM`, from a search result or any Google Places source. | | `country` | no | ISO 3166-1 alpha-2 country the page is loaded from. Default `us`. | The body is `place`: | Field | Contract | | - | - | | `view` | `full` or `limited`. Check it before relying on the review fields. | | `title`, `category`, `price` | As Maps shows them. | | `address`, `located_in`, `plus_code` | Full street address, the building or mall it sits in, and its plus code. | | `phone`, `phone_e164`, `website` | Display phone, E.164 phone, and the business's own site. | | `latitude`, `longitude`, `data_id`, `cid` | Location and Google's other ids for the place. | | `rating`, `reviews_count`, `rating_distribution` | Average, total, and a list from 5 stars down to 1, each `{ stars, reviews_count, percent }`. | | `hours[]` | `{ day, hours }`, such as `{ "day": "Friday", "hours": "7 AM to 8 PM" }`. Seven days on the full view, usually today only on the limited view. | | `attributes[]` | Labels such as `Identifies as women-owned`. | | `review_topics[]` | `{ topic, mentions }` from Google's review summary. | | `reviews[]` | The few reviews Google shows first: `review_id`, `author`, `author_url`, `local_guide`, `author_reviews_count`, `rating`, `date_text`, `text`, `owner_response{text, date_text}`. | An id Google Maps does not know is `404 not_found`. Auth, plans, rate limits, and error codes: [Authentication](/docs/authentication). # Google Search API reference Source: https://clair.im/docs/search-api/google-search Google Search API for developers. One live google.com results page per request: organic hits with real URLs, knowledge graph, People also ask, local pack, videos, and related searches. Live scrape of public **google.com/search**. One results page per request, parsed into organic hits and every SERP section Google shows on it. Ads are dropped. Google hides result links behind redirects; Clair resolves them, so `url` is the real destination. Google's page size is **10**. Each page is one billed request. This is not Google's official Custom Search API, and it is not a full SERP archive. Use it for retrieval, monitoring, and research over the current public listing. See the [Google Search API: overview, pricing, and free tier](https://clair.im/apis/google-search) and [SERP use case](https://clair.im/use-cases/serp-search). ## Endpoint `GET /v1/google-search` · **1 request** ```sh theme={null} curl -G https://api.clair.im/v1/google-search \ -H "Authorization: Bearer YOUR_KEY" \ --data-urlencode "q=albert einstein" \ --data-urlencode "country=us" \ --data-urlencode "page=1" ``` ## Parameters **Response time:** 3–8 s typical, 60 s limit. Page fetch. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `q` | yes | Search query. Supports operators such as `site:`. | | `language` | no | ISO 639-1 interface language. Default `en`. | | `country` | no | ISO 3166-1 alpha-2 country the search is made from. Default `us`. | | `page` | no | Page to open, 1 to 10. Default 1. Send `page` or `cursor`, not both. | | `cursor` | no | `next_cursor` from the previous response. Send it with the same other parameters. | `page=10` is Google `start=90`. Sending `limit` returns `locked_parameter`. ## Response ```json theme={null} { "engine": "google_search", "family": "search", "query": { "q": "albert einstein", "language": "en", "country": "us", "page": 1 }, "knowledge_graph": { "title": "Albert Einstein", "type": "Theoretical physicist", "description": "Albert Einstein was a German-born theoretical physicist ...", "description_source": { "title": "Wikipedia", "url": "https://en.wikipedia.org/wiki/Albert_Einstein" }, "facts": { "Born": "March 14, 1879, Ulm, Germany" } }, "ai_overview": null, "people_also_ask": ["What is Einstein famous for?"], "related_searches": ["Albert Einstein quotes"], "local_results": [], "videos": [ { "position": 1, "title": "Who Was Albert Einstein? Facts for Kids", "url": "https://www.youtube.com/watch?v=nEaFtXEYJn0", "platform": "YouTube", "channel": "Hey! Guess What", "date": "Oct 17, 2022", "duration": "8:47" } ], "count": 9, "total_results": null, "results": [ { "position": 1, "title": "Albert Einstein", "url": "https://en.wikipedia.org/wiki/Albert_Einstein", "source": "Wikipedia", "displayed_url": "https://en.wikipedia.org › wiki › Albert_Einstein", "date": null, "snippet": "Albert Einstein (14 March 1879 – 18 April 1955) was a German-born theoretical physicist ...", "duration": null, "sitelinks": [] } ], "next_cursor": "eyJwIjoyLCJzIjoiNWFJZzRFVVJoS3UzIn0" } ``` | Field | Contents | | - | - | | `results[]` | Organic hits: `position`, `title`, `url`, `source`, `displayed_url`, `date`, `snippet`, `duration`, `sitelinks[]` (`title`, `url`). Video results have no `displayed_url`; their `date` is the upload age and `duration` their length (`10:42`). | | `knowledge_graph` | Entity panel: `title`, `type`, `description`, `description_source`, and `facts` (label to value). `null` when Google shows none. | | `ai_overview` | Google's AI Overview, when the results page comes with one: `text` and `sources[]` (`title`, `url`). `null` otherwise. | | `people_also_ask` | Questions in the People also ask box. | | `related_searches` | Queries under "People also search for". | | `local_results[]` | Map pack: `name`, `rating`, `reviews_count`, `price`, `type`, `address`, `snippet`. | | `videos[]` | Video carousel: `title`, `url`, `platform`, `channel`, `date`, `duration`. | `position` is 1-based across pages (page 2 starts at 11). Send `next_cursor` back as `cursor` for the next 10 hits; it is null after page 10. A section Google does not show for the query comes back `null` or empty. ## What this API does not do * It does not return ads. * It does not wait for an AI Overview. `ai_overview` is filled only when Google sends one with the page; the [Google AI Overview API](/docs/ai-api/google-ai-overview) waits for it. * It does not accept an arbitrary URL to crawl. * It does not read past page 10, the last Google serves. Auth, plans, rate limits, and error codes: [Authentication](/docs/authentication). # Instagram API reference Source: https://clair.im/docs/video-api/instagram Instagram API: a hashtag's popular reels, one public post or reel with its likes, comments, and media, or one account with its followers and latest posts. Three endpoints, one key. Hashtag finds the popular reels under a tag. Post reads one public photo, video, reel, or carousel. Profile reads one public account, personal, creator, or business. All three read the page Instagram serves a signed-out visitor. A typical run: call Hashtag, take a `shortcode` from `results`, call Post for its likes, comments, and date, then call Profile with `author.username`. See the [Instagram API: overview, pricing, and free tier](https://clair.im/apis/instagram). ## Post `GET /v1/instagram/post` · **1 request** ```sh theme={null} curl -G https://api.clair.im/v1/instagram/post \ -H "Authorization: Bearer YOUR_KEY" \ --data-urlencode "shortcode=DeTUk4sDSp-" ``` **Response time:** 1–4 s typical, 40 s limit. Page fetch. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `shortcode` | yes | The post's shortcode, such as `DeTUk4sDSp-`, or an instagram.com /p/, /reel/, or /tv/ link. | `/p/`, `/reel/`, and `/tv/` links all work, with or without the username in them. `query.shortcode` is the shortcode, even when you sent a link. ```json theme={null} { "engine": "instagram", "family": "social", "query": { "shortcode": "DeTUk4sDSp-" }, "post": { "shortcode": "DeTUk4sDSp-", "post_id": "4004634989362489982", "url": "https://www.instagram.com/reel/DeTUk4sDSp-/", "type": "reel", "caption": "POV: you're watching the Earth set\n\nWe just released hundreds of new images and hours of new audio from our Artemis II mission around the Moon this spring. Check out our link in bio for the Artemis II Preliminary Lunar Science Report.\n\n#NASA #ArtemisII #Artemis", "caption_edited": false, "alt_text": "Video by NASA on October 10, 2026. May be an image of planet, eclipse and text.", "hashtags": [ "NASA", "ArtemisII", "Artemis" ], "mentions": [], "published_at": "2026-10-10T15:15:02.000Z", "duration_ms": 43767, "cover": "https://scontent-iad3-2.cdninstagram.com/...", "media": [ { "type": "video", "image": "https://scontent-iad3-2.cdninstagram.com/...", "video_url": "https://scontent-iad3-2.cdninstagram.com/o1/...", "width": 1074, "height": 1908, "duration_ms": 43767 } ], "likes_count": 752840, "comments_count": 7577, "author": { "user_id": "528817151", "username": "nasa", "full_name": "NASA", "verified": true, "url": "https://www.instagram.com/nasa/", "private": false, "avatar": "https://scontent-iad6-1.cdninstagram.com/..." }, "coauthors": [ { "user_id": "1611722079", "username": "nasasolarsystem", "full_name": "NASA Solar System Exploration", "verified": true, "url": "https://www.instagram.com/nasasolarsystem/" }, { "user_id": "1104426670", "username": "nasaartemis", "full_name": "NASA Artemis", "verified": true, "url": "https://www.instagram.com/nasaartemis/" } ], "tagged_users": [ { "user_id": "1104426670", "username": "nasaartemis", "full_name": "NASA Artemis", "verified": true, "url": "https://www.instagram.com/nasaartemis/" }, { "user_id": "1611722079", "username": "nasasolarsystem", "full_name": "NASA Solar System Exploration", "verified": true, "url": "https://www.instagram.com/nasasolarsystem/" } ], "audio": { "audio_id": "28589819277311219", "title": "Original audio", "artist": "nasa" }, "latest_comments": [ { "comment_id": "18060775346647906", "text": "🎬🎬🎬🤹‍♀️🤹‍♀️🤹‍♀️", "published_at": "2026-10-28T14:20:46.000Z", "likes_count": 0, "author": { "user_id": "268681544", "username": "doctorkarin", "full_name": null, "verified": true, "url": "https://www.instagram.com/doctorkarin/" } } ] } } ``` | Field | Contents | | - | - | | `type` | `photo`, `video`, `reel`, or `carousel` (several photos or videos in one post). | | `media` | Each photo or video in order, one entry per carousel slide: `type`, `image`, `video_url`, `width`, `height`, `duration_ms`. | | `likes_count`, `comments_count` | Exact. `likes_count` is `null` when the author hides likes. | | `hashtags`, `mentions` | Hashtags (without `#`) and usernames in the caption. | | `coauthors`, `tagged_users` | Accounts that co-posted it, and accounts tagged in it or any of its slides. | | `audio` | A reel's original sound. `null` for a licensed song, whose details are not read. | | `latest_comments` | The newest comments the page shows, usually 12 to 15. Older ones are not on the page. | | `cover`, `image`, `video_url`, `avatar` | Instagram signs media links with an expiry; they stop working after a few days. | ## Profile `GET /v1/instagram/profile` · **1 request** ```sh theme={null} curl -G https://api.clair.im/v1/instagram/profile \ -H "Authorization: Bearer YOUR_KEY" \ --data-urlencode "username=nasa" ``` **Response time:** 1–3 s typical, 40 s limit. Page fetch. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `username` | yes | The username, such as `nasa` or `@nasa`, or an instagram.com profile link. | The body is `profile`: `user_id`, `username`, `full_name`, `url`, `bio`, `links`, `avatar`, `verified`, `private`, exact `followers_count` and `following_count`, `posts_count`, `highlights`, and `latest_posts`. ```json theme={null} { "engine": "instagram", "family": "social", "query": { "username": "nasa" }, "profile": { "user_id": "528817151", "username": "nasa", "full_name": "NASA", "url": "https://www.instagram.com/nasa/", "bio": "Making the seemingly impossible, possible. ✨", "links": [ { "title": "NASA.gov Homepage", "url": "https://www.nasa.gov" } ], "avatar": "https://scontent-lax3-2.cdninstagram.com/...", "verified": true, "private": false, "followers_count": 104368412, "following_count": 90, "posts_count": 4982, "highlights": [ { "highlight_id": "18195781759377100", "title": "Roman", "cover": "https://scontent-lax3-1.cdninstagram.com/..." } ], "latest_posts": [ { "shortcode": "DeTUk4sDSp-", "url": "https://www.instagram.com/reel/DeTUk4sDSp-/", "type": "reel", "caption": "POV: you're watching the Earth set\n\nWe just released hundred…", "alt_text": "Video by NASA on October 10, 2026. May be an image of planet, eclipse and text.", "cover": "https://scontent-lax3-2.cdninstagram.com/...", "author_username": "nasa" }, { "shortcode": "DeJ28eTxo4s", "url": "https://www.instagram.com/p/DeJ28eTxo4s/", "type": "photo", "caption": "Brewing up new stars 🪄\n \n@NASAWebb’s unique view of the stel…", "alt_text": "Photo by NASA Webb Telescope on October 06, 2026. May be an image of text.", "cover": "https://scontent-lax3-1.cdninstagram.com/...", "author_username": "nasawebb" } ] } } ``` | Field | Contents | | - | - | | `posts_count` | As Instagram shows it: exact below 10,000, rounded above (`32K` is `32000`). | | `latest_posts` | The first twelve posts on the grid, pinned posts first. Each has `shortcode`, `url`, `type`, `caption`, `alt_text`, `cover`, and `author_username`, which differs on a collaboration. Likes and dates are not on the profile page; read the post for them. | ## Hashtag `GET /v1/instagram/hashtag` · **1 request** ```sh theme={null} curl -G https://api.clair.im/v1/instagram/hashtag \ -H "Authorization: Bearer YOUR_KEY" \ --data-urlencode "hashtag=thirdwavecoffee" ``` **Response time:** 1–3 s typical, 40 s limit. Page fetch. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `hashtag` | yes | The hashtag, such as `coffee` or `#coffee`, or an instagram.com /explore/tags/ link. Letters, digits, and underscores. | A leading `#` is optional and case does not matter; `query.hashtag` is the tag in lowercase. The response holds the twelve popular reels Instagram shows for the tag. ```json theme={null} { "engine": "instagram", "family": "social", "query": { "hashtag": "thirdwavecoffee" }, "hashtag": { "name": "thirdwavecoffee", "url": "https://www.instagram.com/explore/tags/thirdwavecoffee/", "related_searches": [ "thirdwavecoffee cafe in mumbai", "thirdwavecoffee new menu", "thirdwavecoffee coffee origin" ] }, "count": 12, "total_results": 4500000, "results": [ { "position": 1, "shortcode": "Cra2r2UJS9y", "post_id": "3088021002285035378", "url": "https://www.instagram.com/reel/Cra2r2UJS9y/", "type": "reel", "caption": "The best way to spend your Sunday! \nThank you\n@thirdwavecoff…", "hashtags": [ "explorepage", "bangalore", "coffeetime", "thirdwavecoffee", "bestie", "fy", "foryourpage" ], "cover": "https://scontent-lga3-2.cdninstagram.com/...", "video_url": "https://scontent-lga3-3.cdninstagram.com/...", "plays_count": 544013, "author": { "user_id": "6743035862", "username": "ashiyawnn", "verified": false, "avatar": "https://scontent-lga3-1.cdninstagram.com/...", "url": "https://www.instagram.com/ashiyawnn/" } }, { "position": 2, "shortcode": "DLczcCDBZfG", "post_id": "3665030423488337862", "url": "https://www.instagram.com/reel/DLczcCDBZfG/", "type": "reel", "caption": "Have you tried matcha yet?🍵✨ \n @thirdwavecoffeeindia \n.\n\n.\n…", "hashtags": [ "coffeecoffeecoffee", "coffee", "matcha", "macha", "coffeeaddict", "coffeeoftheday", "instagram", "thirdwavecoffee", "thirdwavecafe" ], "cover": "https://scontent-lga3-3.cdninstagram.com/...", "video_url": "https://scontent-lga3-2.cdninstagram.com/...", "plays_count": null, "author": { "user_id": "5535004927", "username": "ttrishaarora", "verified": false, "avatar": "https://scontent-lga3-2.cdninstagram.com/...", "url": "https://www.instagram.com/ttrishaarora/" } } ], "next_cursor": null } ``` | Field | Contents | | - | - | | `total_results` | Reels under the tag, as Instagram prints it (`4.5M` is `4500000`). Null when the page prints no number, which is common on very large tags. | | `hashtag.related_searches` | Searches Instagram suggests next to the tag. Often empty. | | `results[].plays_count` | Plays of the reel. Null when the author hides counts. | | `results[].video_url` | A link to the video file. It expires; download what you want to keep. | | `next_cursor` | Always null: the signed-out page holds one page of twelve reels. | Likes, comment counts, and the posting date are not on the hashtag page. Pass `results[].shortcode` to Post for them. ## Errors A post or account that is gone or never existed returns `404` `not_found`, as does a post Instagram shows only to signed-in viewers. Instagram serves a missing page and a refused request the same error page, so Clair returns `404` only after two scraping vendors both got it; a single refusal moves on to the next vendor. A malformed `shortcode`, `username`, or `hashtag` is `400`. Instagram has no signed-out page for some hashtags, brand names and rarely used tags among them, and sends the visitor to its sign-in page. Hashtag returns `404` for those, again only after two vendors both got that page. ## What this API does not do * Post does not return view counts, which are not on the signed-out post page. * Hashtag returns the twelve popular reels only: no second page, no newest-first order, and no photo posts. Instagram shows those to signed-in accounts. * It does not search by keyword or find accounts by name. * It does not return a licensed song's details or a post's location yet. * It does not read stories, or anything that needs a signed-in account. Auth, plans, rate limits, and error codes: [Authentication](/docs/authentication). # TikTok API reference Source: https://clair.im/docs/video-api/tiktok TikTok API: a public post with its views, likes, and shares, an account with its followers, an account's recent posts, and a hashtag's posts. Four endpoints, one key. Post reads one public video or photo post. Profile reads one public account. Videos lists an account's recent posts, and Hashtag lists a hashtag's posts. All four read what TikTok shows a signed-out visitor, which leaves out keyword search and comments. See the [TikTok API: overview, pricing, and free tier](https://clair.im/apis/tiktok). ## Post `GET /v1/tiktok/video` · **1 request** ```sh theme={null} curl -G https://api.clair.im/v1/tiktok/video \ -H "Authorization: Bearer YOUR_KEY" \ --data-urlencode "video_id=6718335390845095173" ``` **Response time:** 1–3 s typical, 40 s limit. Page fetch. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `video_id` | yes | The post id, such as `6718335390845095173`, or a tiktok.com/@user/video/ or /photo/ link. | Share links (`vm.tiktok.com`, `tiktok.com/t/`) hide the post id and return `400`: open one and pass the address it lands on. `query.video_id` is the id, even when you sent a link. ```json theme={null} { "engine": "tiktok", "family": "video", "query": { "video_id": "6718335390845095173" }, "video": { "video_id": "6718335390845095173", "url": "https://www.tiktok.com/@scout2015/video/6718335390845095173", "type": "video", "description": "Scramble up ur name & I’ll try to guess it😍❤️ #foryoupage #petsoftiktok #aesthetic", "published_at": "2019-07-27T13:32:38.000Z", "duration_ms": 10000, "cover": "https://p19-common-sign.tiktokcdn-us.com/...", "images": [], "hashtags": ["foryoupage", "petsoftiktok", "aesthetic"], "mentions": [], "language": "en", "country": "US", "is_ad": false, "ai_generated": false, "views_count": 159700, "likes_count": 35200, "comments_count": 5843, "shares_count": 1518, "saves_count": 649, "reposts_count": 0, "author": { "user_id": "53279706535428096", "username": "scout2015", "nickname": "Scout, Suki & Stella", "verified": true, "avatar": "https://p16-common-sign.tiktokcdn-us.com/...", "url": "https://www.tiktok.com/@scout2015", "followers_count": 9000000, "likes_count": 108300000, "videos_count": 3079 }, "music": { "music_id": "6689804660171082501", "title": "original sound", "author": "tiff", "original": true, "duration_ms": 10000 } } } ``` | Field | Contents | | - | - | | `type` | `video`, or `photo` for a post of images with a soundtrack. A photo post has `images[]` in order and `duration_ms: null`. | | `views_count` … `reposts_count` | Counts as the post page shows them. TikTok rounds large ones on this page (35,200 likes), and so does `author`'s. | | `hashtags`, `mentions` | Hashtags (without `#`) and usernames in the caption. | | `country` | Where the post was made, ISO 3166-1 alpha-2. | | `cover`, `images`, `avatar` | TikTok signs image links with an expiry; they stop working after about two days. | ## Profile `GET /v1/tiktok/profile` · **1 request** ```sh theme={null} curl -G https://api.clair.im/v1/tiktok/profile \ -H "Authorization: Bearer YOUR_KEY" \ --data-urlencode "username=nasa" ``` **Response time:** 1–3 s typical, 40 s limit. Page fetch. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `username` | yes | The username, such as `nasa` or `@nasa`, or a tiktok.com/@name link. | The body is `profile`: `user_id`, `sec_uid` (TikTok's other account id), `username`, `nickname`, `url`, `bio`, `bio_link`, `avatar`, `verified`, `private`, `organization`, `language`, `created_at`, and exact `followers_count`, `following_count`, `likes_count` (likes on all its posts), and `videos_count`. ```json theme={null} { "engine": "tiktok", "family": "social", "query": { "username": "nasa" }, "profile": { "user_id": "7664638705177150477", "username": "nasa", "nickname": "NASA", "bio": "Making the seemingly impossible, possible.✨", "bio_link": "https://science.nasa.gov/feature/artemis-ii-preliminary-lunar-science-report", "verified": true, "organization": true, "followers_count": 2142079, "following_count": 23, "likes_count": 11400811, "videos_count": 60 } } ``` ## Videos `GET /v1/tiktok/videos` · **1 request** ```sh theme={null} curl -G https://api.clair.im/v1/tiktok/videos \ -H "Authorization: Bearer YOUR_KEY" \ --data-urlencode "username=nasa" ``` **Response time:** 19–37 s typical, 60 s limit. Browser with steps: TikTok loads an account's posts as the page scrolls, so a browser opens the profile and scrolls it. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `username` | yes | The username, such as `nasa` or `@nasa`, or a tiktok.com/@name link. | One request opens the profile in a browser and scrolls it, so it takes 20 to 40 seconds. It returns the posts that loads: all of a small account's, about the 130 most recent of a large one. Pinned posts come first, then newest first. `total_results` is the account's post count, and `next_cursor` is always `null`: there is no next page. A private account returns its `profile` and an empty `results`. ```json theme={null} { "engine": "tiktok", "family": "video", "query": { "username": "nasa" }, "profile": { "username": "nasa", "followers_count": 2181884, "videos_count": 66 }, "count": 66, "total_results": 66, "results": [ { "position": 1, "video_id": "7665075736742530317", "url": "https://www.tiktok.com/@nasa/video/7665075736742530317", "type": "video", "description": "Something big just landed on TikTok.", "published_at": "2026-07-21T20:09:02.000Z", "duration_ms": 25000, "views_count": 1800000, "likes_count": 111300, "comments_count": 3333 } ], "next_cursor": null } ``` `profile` has the Profile endpoint's fields. Each of `results[]` has `position` and the Post endpoint's fields, with counts rounded as TikTok shows them in a list. `country` is `null` in a list: TikTok states it only on the post's own page. ## Hashtag `GET /v1/tiktok/hashtag` · **1 request** ```sh theme={null} curl -G https://api.clair.im/v1/tiktok/hashtag \ -H "Authorization: Bearer YOUR_KEY" \ --data-urlencode "hashtag=espresso" ``` **Response time:** 22–37 s typical, 60 s limit. Browser with steps: TikTok loads a hashtag's posts as the page scrolls, so a browser opens the hashtag and scrolls it. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `hashtag` | yes | The hashtag’s name, such as `espresso` or `#espresso`, or a tiktok.com/tag/ link. | One request opens the hashtag in a browser and scrolls it, so it takes 20 to 40 seconds. It returns the posts TikTok shows a signed-out visitor, about 100 to 120, in TikTok's own order, which favours popular posts. `total_results` is the number of posts that use the hashtag, and `next_cursor` is always `null`. `query.hashtag` is the name in lower case, without `#`. ```json theme={null} { "engine": "tiktok", "family": "video", "query": { "hashtag": "espresso" }, "hashtag": { "hashtag_id": "667423", "name": "espresso", "url": "https://www.tiktok.com/tag/espresso", "description": null, "videos_count": 1530378, "views_count": 23798863571 }, "count": 118, "total_results": 1530378, "results": [ { "position": 1, "video_id": "7662402004727237921", "url": "https://www.tiktok.com/@echosky53/video/7662402004727237921", "type": "video", "description": "Espresso #lyrics #vibe #fyp #music @Sabrina Carpenter ", "published_at": "2026-07-14T15:13:15.000Z", "views_count": 71400, "likes_count": 1542, "author": { "username": "echosky53" } } ], "next_cursor": null } ``` ## Errors A post that is gone or never existed, an account that is gone, banned, or never existed, and a hashtag nobody has used return `404` `not_found`. So does a private post, or a post on a private account, which TikTok shows only to signed-in viewers: the message says which. A `video_id` that is not a post id or post link, a share link, a malformed `username`, or a `hashtag` with spaces or punctuation is `400`. Any other status TikTok answers with fails as `502` `scrape_failed`, with TikTok's status in the message. ## What this API does not do * It does not search TikTok by keyword or return comments: TikTok shows both only to signed-in visitors. Hashtag finds posts on a topic. * It does not page past what one scrolled page loads: about 130 of an account's posts and about 120 of a hashtag's. * It does not read anything that needs a signed-in TikTok account. * It does not download videos. Auth, plans, rate limits, and error codes: [Authentication](/docs/authentication). # YouTube API reference Source: https://clair.im/docs/video-api/youtube YouTube API: search, video details, channels with their videos, comments, and transcripts. Five endpoints, one key: search, video details, a channel with its videos, comments, and transcripts. The ids one endpoint returns are what the next one takes, so a pipeline from a search to a transcript needs no other service. See the [YouTube API: overview, pricing, and free tier](https://clair.im/apis/youtube). | Endpoint | Takes | Returns | | - | - | - | | [Search](#search) | a query | videos, channels, or playlists | | [Video](#video) | a video id | details, views, likes, channel | | [Channel](#channel) | a handle or channel id | the profile and its videos | | [Comments](#comments) | a video id | comments, 20 a page | | [Transcript](#transcript) | a video id | captions as text and timed segments | List endpoints page by cursor: send a response's `next_cursor` back as `cursor` with the same other parameters. It is null on the last page. A YouTube cursor is long, up to a few thousand characters on a channel's later pages. Each page is one billed request. ## Search `GET /v1/youtube/search` · **1 request** ```sh theme={null} curl -G https://api.clair.im/v1/youtube/search \ -H "Authorization: Bearer YOUR_KEY" \ --data-urlencode "q=python tutorial for beginners" ``` **Response time:** 1–4 s typical, 40 s limit. Page fetch. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `q` | yes | The search, as typed into YouTube. | | `type` | no | `video`, `channel`, `playlist`, or `all`. Default `video`. | | `cursor` | no | `next_cursor` from the previous response. Send it with the same other parameters. | About 20 results a page, in YouTube's relevance order. Every result has a `type`, and its fields follow from it: | `type` | Fields | | - | - | | `video` | `video_id`, `title`, `url`, `thumbnail`, `duration`, `duration_seconds`, `views`, `published`, `snippet`, `live`, `channel` | | `channel` | `channel_id`, `name`, `handle`, `url`, `thumbnail`, `description`, `subscribers`, `verified` | | `playlist` | `playlist_id`, `title`, `url`, `thumbnail`, `videos_count`, `channel` | `channel` on a video or playlist is who posted it: `channel_id`, `name`, `handle`, `url`, `verified`. `published` is the age YouTube prints, such as `6 years ago`; Video returns the exact time. `total_results` is YouTube's estimate. `type=all` mixes the three kinds as YouTube's own results page does. ```json theme={null} { "engine": "youtube", "family": "video", "query": { "q": "python tutorial for beginners", "type": "video" }, "count": 20, "total_results": 9702500, "next_cursor": "eyJ0IjoiRXBNREVoMXdlWFJvYjI0Z2RIVjBiM0pwWVd3IiwibyI6MjAsInMiOiI0ZjJhIn0", "results": [ { "type": "video", "position": 1, "video_id": "kqtD5dpn9C8", "title": "Python for Beginners - Learn Coding with Python in 1 Hour", "url": "https://www.youtube.com/watch?v=kqtD5dpn9C8", "thumbnail": "https://i.ytimg.com/vi/kqtD5dpn9C8/hq720.jpg?sqp=-oaymwEnCNAFEJQDSFryq4qpAxkIARUAAIhCGAHYAQHiAQoIGBACGAY4AUAB&rs=AOn4CLD0dBhtORbMQwzcfnpyENbeikoJ7w", "duration": "1:00:06", "duration_seconds": 3606, "views": 25914186, "published": "6 years ago", "snippet": "Learn Python basics in just 1 hour! Perfect for beginners interested in AI and coding. ⚡ Plus, get 6 months of PyCharm FREE with ...", "live": false, "channel": { "channel_id": "UCWv7vMbMWH4-V0ZXdmDpPBA", "name": "Programming with Mosh", "handle": "@programmingwithmosh", "url": "https://www.youtube.com/@programmingwithmosh", "verified": true } } ] } ``` ## Video `GET /v1/youtube/video` · **1 request** ```sh theme={null} curl -G https://api.clair.im/v1/youtube/video \ -H "Authorization: Bearer YOUR_KEY" \ --data-urlencode "video_id=aircAruvnKk" ``` **Response time:** 1–3 s typical, 40 s limit. Page fetch. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `video_id` | yes | The 11-character id, such as `dQw4w9WgXcQ`, or a watch, shorts, embed, live, or youtu.be link. | `views` and `likes` are exact. `comments_count` and `channel.subscribers` are rounded as YouTube prints them (`9.5K`, `8.75M`); Comments returns the exact comment count. `published_at` is ISO 8601 with its offset. `duration` is null while a video is streaming. `likes` is null when the uploader hides them. ```json theme={null} { "engine": "youtube", "family": "video", "query": { "video_id": "aircAruvnKk" }, "video": { "video_id": "aircAruvnKk", "title": "But what is a neural network? | Deep learning chapter 1", "url": "https://www.youtube.com/watch?v=aircAruvnKk", "description": "What are the neurons, why are there layers, and what is the math underlying it? ...", "duration": "18:40", "duration_seconds": 1120, "views": 25243630, "likes": 570276, "comments_count": 9500, "published_at": "2017-10-05T08:11:25-07:00", "category": "Education", "keywords": [], "thumbnail": "https://i.ytimg.com/vi/aircAruvnKk/maxresdefault.jpg", "live": false, "family_safe": true, "unlisted": false, "channel": { "channel_id": "UCYO_jab_esuFRV4b17AJtAw", "name": "3Blue1Brown", "handle": "@3blue1brown", "url": "https://www.youtube.com/@3blue1brown", "verified": true, "subscribers": 8750000 } } } ``` ## Channel `GET /v1/youtube/channel` · **1 request** ```sh theme={null} curl -G https://api.clair.im/v1/youtube/channel \ -H "Authorization: Bearer YOUR_KEY" \ --data-urlencode "channel=@3blue1brown" ``` **Response time:** 1–4 s typical, 40 s limit. Page fetch. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `channel` | yes | An @handle such as `@nasa`, a channel id starting with `UC`, or a link to the channel. | | `cursor` | no | `next_cursor` from the previous response. Send it with the same other parameters. | `channel` is the profile; `results[]` are its videos, newest first, 30 a page. A continued page (one opened with `cursor`) carries videos only, and its `channel` is null. `subscribers`, `videos_count`, and each video's `views` are rounded as YouTube prints them. `total_results` is always null; use `channel.videos_count`. Shorts and live streams sit on other tabs of the channel and are not listed. ```json theme={null} { "engine": "youtube", "family": "video", "query": { "channel": "@3blue1brown" }, "channel": { "channel_id": "UCYO_jab_esuFRV4b17AJtAw", "name": "3Blue1Brown", "handle": "@3blue1brown", "url": "https://www.youtube.com/@3blue1brown", "description": "My name is Grant Sanderson. ...", "subscribers": 8750000, "videos_count": 247, "avatar": "https://yt3.googleusercontent.com/ytc/AIdro_nFzZFPLxPZRHcE3SSwzdrbuWqfoWYwLAu0_2iO6blQYAU=s900-c-k-c0x00ffffff-no-rj", "banner": "https://yt3.googleusercontent.com/JfUD9Tu79zgoYGo5-WdP5YYj0XvAjPgV3c2Snj-cgy8jslro0Ln5by024zWL7XDin7Vs-qnxVg=w2560-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj", "keywords": "Mathematics", "family_safe": true, "rss_url": "https://www.youtube.com/feeds/videos.xml?channel_id=UCYO_jab_esuFRV4b17AJtAw" }, "count": 30, "total_results": null, "next_cursor": "eyJ0IjoiRXBNREVoMXdlWFJvYjI0Z2RIVjBiM0pwWVd3IiwibyI6MjAsInMiOiI0ZjJhIn0", "results": [ { "position": 1, "video_id": "LKrwhjOI8Nc", "title": "There's never been a better time to go into math", "url": "https://www.youtube.com/watch?v=LKrwhjOI8Nc", "thumbnail": "https://i.ytimg.com/vi/LKrwhjOI8Nc/hq720.jpg?sqp=-oaymwEnCNAFEJQDSFryq4qpAxkIARUAAIhCGAHYAQHiAQoIGBACGAY4AUAB&rs=AOn4CLDhdmDHS_n5QdhrQWE8bghvyWvY1A", "duration": "40:44", "duration_seconds": 2444, "views": 2700000, "published": "4 weeks ago" } ] } ``` ## Comments `GET /v1/youtube/comments` · **1 request** ```sh theme={null} curl -G https://api.clair.im/v1/youtube/comments \ -H "Authorization: Bearer YOUR_KEY" \ --data-urlencode "video_id=aircAruvnKk" ``` **Response time:** 1–2 s typical, 40 s limit. Page fetch. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `video_id` | yes | The 11-character id, such as `dQw4w9WgXcQ`, or a watch, shorts, embed, live, or youtu.be link. | | `sort_by` | no | `top` or `newest`. Default `top`. | | `cursor` | no | `next_cursor` from the previous response. Send it with the same other parameters. | Top-level comments, 20 a page. `total_results` is the video's comment count, replies included, on the first page. `likes` is rounded as YouTube prints it (`14K`). `replies_count` says how many replies a comment has; the replies themselves are not returned. `author.creator` is true for the video's own channel. ```json theme={null} { "engine": "youtube", "family": "video", "query": { "video_id": "aircAruvnKk", "sort_by": "top" }, "count": 20, "total_results": 9528, "next_cursor": "eyJ0IjoiRXBNREVoMXdlWFJvYjI0Z2RIVjBiM0pwWVd3IiwibyI6MjAsInMiOiI0ZjJhIn0", "results": [ { "position": 1, "comment_id": "Ugwedfi--9yZVC0eefl4AaABAg", "text": "I study mathematics, physics and architecture. By definition this man is an ORACLE in the strict meaning of the word. ", "published": "7 years ago (edited)", "likes": 14000, "replies_count": 175, "author": { "channel_id": "UCqArZkt3NAOU0tcgIi6xmFQ", "name": "@kummer45", "verified": false, "creator": false } } ] } ``` ## Transcript `GET /v1/youtube/transcript` · **1 request** ```sh theme={null} curl -G https://api.clair.im/v1/youtube/transcript \ -H "Authorization: Bearer YOUR_KEY" \ --data-urlencode "video_id=jNQXAC9IVRw" ``` **Response time:** 1–3 s typical, 50 s limit. Page fetch. [How to read this](/docs/response-times). | Parameter | Required | Contract | | - | - | - | | `video_id` | yes | The 11-character id, such as `dQw4w9WgXcQ`, or a watch, shorts, embed, live, or youtu.be link. | | `language` | no | Caption language code, such as `en`, `de`, or `pt-BR`. `pt` also matches `pt-BR`. Default: English, else the first uploaded track. | The body is `transcript`: `language` (the track's code), `kind` (`manual` for the uploader's captions, `auto` for YouTube's), `text` (every segment joined by spaces), and `segments[]` with `start_ms`, `duration_ms`, and `text`. `query.video_id` is the id, even when you sent a link. ```json theme={null} { "engine": "youtube", "family": "video", "query": { "video_id": "jNQXAC9IVRw", "language": null }, "transcript": { "language": "en", "kind": "manual", "text": "All right, so here we are, in front of the elephants ...", "segments": [ { "start_ms": 1200, "duration_ms": 2160, "text": "All right, so here we are, in front of the elephants" } ] } } ``` Clair reads the captions a video offers to any signed-out viewer. It does not transcribe audio. ## Errors A video or channel that does not exist returns `404` `not_found`. So does a video with comments turned off (Comments), a video with no captions, and a language the video lacks (Transcript); that last message lists the languages it has. A `video_id` that is not an id or a YouTube link, a `channel` that is not a handle, id, or channel link, or a malformed `language`, is `400`. A cursor sent with other parameters than the request it came from is `400` `bad_cursor`. Private and age-restricted videos need a signed-in viewer, so Clair cannot read them; they fail with `502`. ## What this API does not do * It does not sort or filter search by upload date, length, or view count. * It does not return replies to comments, Shorts or live tabs of a channel, or the videos inside a playlist. * It does not read anything that needs a signed-in YouTube account. * It does not download video or audio. Auth, plans, rate limits, and error codes: [Authentication](/docs/authentication).