{"components":{"headers":{"CreditsLeft":{"description":"Absent for test keys.","schema":{"type":"integer"}},"CreditsUsed":{"schema":{"type":"integer"}},"RequestId":{"description":"Quote this when asking for help.","schema":{"type":"string"}}},"responses":{"Error":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error with a message written to be shown to people."}},"schemas":{"Account":{"properties":{"account_id":{"type":"integer"},"bonus":{"type":"integer"},"credits":{"type":"integer"},"free":{"type":"integer"},"key_mode":{"enum":["live","test"],"type":"string"},"name":{"type":"string"},"paid":{"type":"integer"}},"type":"object"},"Balance":{"properties":{"bonus":{"type":"integer"},"credits":{"type":"integer"},"free":{"type":"integer"},"paid":{"type":"integer"}},"type":"object"},"ClassifyResponse":{"properties":{"credits":{"$ref":"#/components/schemas/Credits"},"results":{"description":"One per item, in the order sent.","items":{"properties":{"id":{"type":"string"},"signals":{"$ref":"#/components/schemas/SignalScores"}},"type":"object"},"type":"array"},"signal_summary":{"$ref":"#/components/schemas/SignalSummary"}},"type":"object"},"Countries":{"properties":{"countries":{"items":{"properties":{"code":{"type":"string"},"flag":{"type":"string"},"name":{"type":"string"}},"type":"object"},"type":"array"}},"type":"object"},"Credits":{"properties":{"left":{"type":["integer","null"]},"test":{"type":"boolean"},"used":{"type":"integer"}},"type":"object"},"Error":{"properties":{"error":{"examples":["no_credits","key_budget_reached","invalid_request","invalid_key","search_expired","too_many_in_flight","signal_failed"],"type":"string"},"message":{"type":"string"}},"required":["error","message"],"type":"object"},"FetchMarkdownResponse":{"properties":{"credits":{"$ref":"#/components/schemas/Credits"},"failed":{"properties":{"id":{"type":"string"},"reason":{"enum":["not_found","blocked","timeout"],"type":"string"}},"type":"object"},"result":{"properties":{"author":{"type":["string","null"]},"id":{"type":"string"},"markdown":{"type":"string"},"platform":{"enum":["publications","x","instagram","tiktok","reddit","youtube","linkedin","threads","facebook","substack","medium","github","stackoverflow"],"type":"string"},"published":{"format":"date-time","type":["string","null"]},"title":{"type":"string"},"truncated":{"type":"boolean"},"url":{"format":"uri","type":"string"}},"type":"object"}},"type":"object"},"FetchResponse":{"properties":{"credits":{"$ref":"#/components/schemas/Credits"},"not_found":{"items":{"type":"string"},"type":"array"},"results":{"items":{"$ref":"#/components/schemas/LinkedResult"},"type":"array"}},"type":"object"},"Group":{"properties":{"group":{"type":"integer"},"matches_query":{"description":"At least half the group's results have matches_query.","type":"boolean"},"platforms":{"additionalProperties":{"type":"integer"},"type":"object"},"title":{"type":"string"},"total":{"description":"Results in the group, across every page.","type":"integer"}},"type":"object"},"LinkedResult":{"allOf":[{"$ref":"#/components/schemas/Result"},{"properties":{"author":{"type":["string","null"]},"image":{"type":["string","null"]},"image_height":{"type":["integer","null"]},"image_width":{"type":["integer","null"]},"url":{"format":"uri","type":"string"}},"type":"object"}]},"LinksResponse":{"properties":{"credits":{"$ref":"#/components/schemas/Credits"},"groups":{"items":{"$ref":"#/components/schemas/Group"},"type":"array"},"page":{"type":"integer"},"platforms":{"additionalProperties":{"properties":{"has_more":{"type":"boolean"},"results":{"items":{"$ref":"#/components/schemas/LinkedResult"},"type":"array"}},"type":"object"},"type":"object"},"search_id":{"type":"string"},"signal_summary":{"$ref":"#/components/schemas/SignalSummary"}},"type":"object"},"Platforms":{"properties":{"default":{"items":{"type":"string"},"type":"array"},"platforms":{"items":{"properties":{"description":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"}},"type":"object"},"type":"array"}},"type":"object"},"Result":{"properties":{"countries":{"items":{"type":"string"},"type":"array"},"group":{"description":"The search's group this result belongs to (see `groups`), or null.","type":["integer","null"]},"id":{"type":"string"},"latest":{"description":"Among the newest developments when the search ran: posted in the last 2 hours, up to 3 per platform, one per recent story in turn.","type":"boolean"},"matches_query":{"description":"True when the result's title has every word of the whole search (small words such as \"the\" and question words such as \"what\" aside), or when it comes from the search subject's own news page. It is a word check, not a relevance score: false doesn't mean the result is unrelated (a question's words rarely all appear in one headline), and true doesn't mean the event in the search happened.","type":"boolean"},"meta":{"additionalProperties":true,"description":"Only on `github` and `stackoverflow` results, which a search adds when it is about software or AI tooling. The source's own numbers and attribution. `kind` is `release`, `repo` or `question`; a release has `repo`, `tag`, `prerelease`, `excerpt` and `breaking_lines` (lines of its notes about breaking changes, for the reader to judge); a repo has `stars`, `forks`, `license`, `archived`, `pushed_at`, `open_issues_and_prs`, `topics` and `owner`; a question has `score`, `answers`, `accepted`, `views`, `tags`, `created_at`, `last_activity_at`, `author` and `attribution` (source, post URL, license and its version, which Stack Overflow requires you to show). `url` is the post's address.","type":"object"},"platform":{"enum":["publications","x","instagram","tiktok","reddit","youtube","linkedin","threads","facebook","substack","medium","github","stackoverflow"],"type":"string"},"published":{"format":"date-time","type":["string","null"]},"signals":{"$ref":"#/components/schemas/SignalScores"},"source":{"type":["string","null"]},"story":{"type":["integer","null"]},"title":{"type":"string"}},"type":"object"},"SearchResponse":{"properties":{"countries":{"items":{"type":"string"},"type":"array"},"counts":{"additionalProperties":{"type":"integer"},"type":"object"},"credits":{"$ref":"#/components/schemas/Credits"},"groups":{"description":"Every group, biggest first; among equal sizes, those with matches_query first.","items":{"$ref":"#/components/schemas/Group"},"type":"array"},"has_more":{"type":"boolean"},"match_summary":{"description":"How many results have matches_query true, and how many don't.","properties":{"matching_every_word":{"type":"integer"},"partial":{"type":"integer"}},"type":"object"},"order":{"description":"The order results are in; later pages keep it.","enum":["relevance","newest"],"type":"string"},"page":{"type":"integer"},"platforms":{"items":{"type":"string"},"type":"array"},"query":{"type":"string"},"results":{"items":{"$ref":"#/components/schemas/Result"},"type":"array"},"search_id":{"type":"string"},"searched_for":{"description":"What was searched. A 2-3-word name's joined form (\"paytmmoney\") or a handle without its @ follows the subject when it was searched too (social platforms only).","properties":{"countries_added":{"description":"Countries searched for places the search names (auto_countries), with the place: [{\"country\": \"gb\", \"from\": \"london\"}].","items":{"properties":{"country":{"type":"string"},"from":{"type":"string"}},"type":"object"},"type":"array"},"keywords":{"items":{"type":"string"},"type":"array"},"languages":{"description":"Countries searched in their own language too (auto_languages), with the search it was for: [{\"country\": \"br\", \"language\": \"pt\", \"name\": \"Portuguese\", \"from\": \"s\u00e3o paulo enchentes\"}].","items":{"properties":{"country":{"type":"string"},"from":{"type":"string"},"language":{"type":"string"},"name":{"type":"string"}},"type":"object"},"type":"array"},"mode":{"enum":["search","question"],"type":"string"}},"type":"object"},"signal_summary":{"$ref":"#/components/schemas/SignalSummary"},"stories":{"items":{"properties":{"count":{"type":"integer"},"story":{"type":"integer"},"title":{"type":"string"}},"type":"object"},"type":"array"},"total":{"type":"integer"},"widened_from":{"description":"Only when no window was sent and 24h found little: the window first tried.","type":"string"},"window":{"description":"The window searched.","type":"string"}},"type":"object"},"SignalScores":{"additionalProperties":{"properties":{"match":{"description":"`p` at or above the threshold.","type":"boolean"},"p":{"description":"A score, not a probability of being right, and not stable between calls: the same title can move by a few hundredths. Don't store it as a key.","maximum":1,"minimum":0,"type":"number"}},"type":"object"},"description":"Only when the call carried signals: one entry per signal, keyed by the name you sent (`signal` for the single-string form).","type":"object"},"SignalSummary":{"description":"Only when the call carried signals.","properties":{"checked":{"description":"Results scored: always every result returned.","type":"integer"},"classifier":{"description":"The model version that scored the results, so you can tell when it changes.","type":"string"},"credits":{"description":"The signals' share of `credits.used`.","type":"integer"},"signals":{"additionalProperties":{"properties":{"description":{"type":"string"},"matched":{"type":"integer"}},"type":"object"},"type":"object"},"threshold":{"type":"number"}},"type":"object"},"Usage":{"properties":{"from":{"type":"string"},"group":{"type":"string"},"to":{"type":"string"},"usage":{"items":{"properties":{"bucket":{"type":["string","integer","null"]},"calls":{"type":"integer"},"credits":{"type":"integer"},"free_calls":{"type":"integer"}},"type":"object"},"type":"array"}},"type":"object"},"WatchVideoResponse":{"properties":{"credits":{"$ref":"#/components/schemas/Credits"},"failed":{"properties":{"id":{"type":"string"},"reason":{"description":"`too_long`: a YouTube video over 5 minutes, not watched yet.","enum":["not_found","unsupported","unavailable","timeout","too_long"],"type":"string"},"url":{"type":"string"}},"type":"object"},"result":{"properties":{"answer":{"description":"The answer to `question` from the video, or null when none was sent. Says so when the video doesn't cover it.","type":["string","null"]},"author":{"type":["string","null"]},"duration":{"description":"Seconds, when known.","type":["number","null"]},"entities":{"items":{"properties":{"name":{"type":"string"},"type":{"description":"person, organization, place, product, event, work or other","type":"string"}},"type":"object"},"maxItems":10,"type":"array"},"frame_times":{"description":"In `frames` mode, where each sampled run starts (seconds).","items":{"type":"number"},"type":"array"},"id":{"description":"The result id, when one was sent.","type":["string","null"]},"keywords":{"items":{"type":"string"},"maxItems":10,"type":"array"},"mode":{"description":"`transcript`: understood from what's said. `frames`: no speech, understood from what's shown.","enum":["transcript","frames"],"type":"string"},"platform":{"enum":["youtube","instagram","tiktok","facebook"],"type":"string"},"published":{"format":"date-time","type":["string","null"]},"question":{"description":"The question sent, or null.","type":["string","null"]},"summary":{"type":"string"},"title":{"type":["string","null"]},"transcript":{"description":"What was said (in `frames` mode, any stray words heard, often empty).","type":"string"},"transcript_partial":{"description":"Only the first 3 minutes were transcribed.","type":"boolean"},"url":{"format":"uri","type":"string"}},"type":"object"}},"type":"object"}},"securitySchemes":{"bearerAuth":{"description":"oc_live_... from https://openchase.ai/connect (Keys tab)","scheme":"bearer","type":"http"}}},"info":{"contact":{"email":"comms@curiouscats.ai"},"description":"What publications and people are posting right now, across X, Reddit, YouTube, Instagram, TikTok, LinkedIn, Threads, Facebook, Substack, Medium and news sites, plus GitHub releases and Stack Overflow questions for software topics. One credit is one search (3 credits for a question); each signal on a call adds 1; watching a video is 5; credits cost Rs 180 per 1,000 in India (GST included; $2 per 1,000 elsewhere, coming soon). Calls that fail or find nothing are free.","title":"OpenChase API","version":"1.0.0"},"openapi":"3.1.0","paths":{"/v1/account":{"get":{"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"}}},"description":"OK","headers":{"X-OC-Credits-Left":{"$ref":"#/components/headers/CreditsLeft"},"X-OC-Credits-Used":{"$ref":"#/components/headers/CreditsUsed"},"X-OC-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}},"summary":"The calling key's account"}},"/v1/balance":{"get":{"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Balance"}}},"description":"OK","headers":{"X-OC-Credits-Left":{"$ref":"#/components/headers/CreditsLeft"},"X-OC-Credits-Used":{"$ref":"#/components/headers/CreditsUsed"},"X-OC-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}},"summary":"Credits left"}},"/v1/classify":{"post":{"description":"1 credit per signal, however many items (up to 30). Checks text you already have against yes/no criteria you write; no search runs and nothing is stored. Send `signals` or `signal`. Free if it fails.","requestBody":{"content":{"application/json":{"schema":{"properties":{"items":{"items":{"properties":{"id":{"description":"Echoed back. Default: the item's position (\"0\", \"1\", ...).","maxLength":64,"type":"string"},"text":{"description":"A title, or a title and a short snippet.","maxLength":1000,"minLength":1,"type":"string"}},"required":["text"],"type":"object"},"maxItems":30,"minItems":1,"type":"array"},"signal":{"description":"One signal: the same as `signals` with a single entry named `signal`. Send this or `signals`.","maxLength":300,"minLength":3,"type":"string"},"signal_threshold":{"default":0.5,"description":"A result `match`es a signal when its score `p` is at least this. It only changes `match`; `p` is always returned.","exclusiveMaximum":1,"exclusiveMinimum":0,"type":"number"},"signals":{"additionalProperties":{"maxLength":300,"minLength":3,"type":"string"},"description":"Up to 3 signals: a name and a plain-language yes/no criterion for each, such as {\"complaint\": \"Is this a complaint about the app?\"}. Each result's title is checked against every signal (see `signals` on a result). 1 credit per signal, on top of the call's price. Send this or `signal`.","maxProperties":3,"minProperties":1,"propertyNames":{"pattern":"^[A-Za-z0-9_-]{1,32}$"},"type":"object"}},"required":["items"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClassifyResponse"}}},"description":"OK","headers":{"X-OC-Credits-Left":{"$ref":"#/components/headers/CreditsLeft"},"X-OC-Credits-Used":{"$ref":"#/components/headers/CreditsUsed"},"X-OC-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"502":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}},"summary":"Check text against signals"}},"/v1/countries":{"get":{"parameters":[{"description":"Filter by name.","in":"query","name":"q","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Countries"}}},"description":"OK","headers":{"X-OC-Credits-Left":{"$ref":"#/components/headers/CreditsLeft"},"X-OC-Credits-Used":{"$ref":"#/components/headers/CreditsUsed"},"X-OC-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"429":{"$ref":"#/components/responses/Error"}},"security":[],"summary":"Country codes"}},"/v1/fetch":{"post":{"description":"Free. Ids stay valid for an hour.","requestBody":{"content":{"application/json":{"schema":{"properties":{"ids":{"description":"Result ids from a search, e.g. p_d7f92c3cf2ed416e949d.","items":{"pattern":"^p_[0-9a-f]{20}$","type":"string"},"maxItems":50,"minItems":1,"type":"array"}},"required":["ids"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FetchResponse"}}},"description":"OK","headers":{"X-OC-Credits-Left":{"$ref":"#/components/headers/CreditsLeft"},"X-OC-Credits-Used":{"$ref":"#/components/headers/CreditsUsed"},"X-OC-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}},"summary":"Open results by id"}},"/v1/fetch-markdown":{"post":{"description":"1 credit if the page is read, free if it can't be. One id per call. Some platforms (X, Instagram, TikTok, LinkedIn, Facebook) sit behind a login wall, so this mostly returns a caption rather than full article text there; publications, Substack and Medium come back as clean text. Reddit pages are blocked for now (they refuse our crawler), so a Reddit read usually fails, free of charge. `github` and `stackoverflow` results are read through those sites' own APIs: a release's full notes, a README, or a question with its top answers, each post with its author, date and license.","requestBody":{"content":{"application/json":{"schema":{"properties":{"id":{"description":"One result id from a search, search-links or fetch call.","pattern":"^p_[0-9a-f]{20}$","type":"string"},"max_characters":{"default":20000,"description":"Cap on the returned page text.","maximum":100000,"minimum":1000,"type":"integer"}},"required":["id"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FetchMarkdownResponse"}}},"description":"OK","headers":{"X-OC-Credits-Left":{"$ref":"#/components/headers/CreditsLeft"},"X-OC-Credits-Used":{"$ref":"#/components/headers/CreditsUsed"},"X-OC-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}},"summary":"The page's text as markdown"}},"/v1/openapi.json":{"get":{"responses":{"200":{"description":"OpenAPI 3.1"}},"security":[],"summary":"This document"}},"/v1/platforms":{"get":{"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Platforms"}}},"description":"OK","headers":{"X-OC-Credits-Left":{"$ref":"#/components/headers/CreditsLeft"},"X-OC-Credits-Used":{"$ref":"#/components/headers/CreditsUsed"},"X-OC-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"429":{"$ref":"#/components/responses/Error"}},"security":[],"summary":"Platform names"}},"/v1/search":{"post":{"description":"1 credit (3 credits for a question), free if nothing is found. Up to 100 results a page, most relevant first. `searched_for` lists what was searched. Add `signals` to check every result against criteria you write (1 more credit each).","requestBody":{"content":{"application/json":{"schema":{"properties":{"auto_countries":{"default":true,"description":"Also search the country of a place the search names (\"london flood warning\" adds gb): added to `countries`, or in place of the default when `countries` isn't sent. `searched_for.countries_added` lists them. false searches exactly `countries`.","type":"boolean"},"auto_languages":{"default":true,"description":"A search written in a country's own language (\"s\u00e3o paulo enchentes\" in br, \"\u6771\u4eac \u5730\u9707\" in jp) is also searched in that language there, not only in English. A search in English is never searched in another language, and nothing is translated. `searched_for.languages` lists them. false searches every country in English only.","type":"boolean"},"countries":{"default":["us"],"description":"Two-letter country codes (GET /v1/countries). The country of a place the search names is searched too (see auto_countries).","items":{"pattern":"^[a-z]{2}$","type":"string"},"type":"array"},"exact":{"default":false,"description":"Search the words exactly as typed. Only for a quoted phrase, a slogan or a product code.","type":"boolean"},"limit":{"default":100,"description":"Results per page.","maximum":100,"minimum":1,"type":"integer"},"order":{"default":"relevance","description":"relevance: posts about the search first, then the biggest stories, then newest; the first 18 hold at most 3 posts per story unless the story is about the whole search. newest: a chronological feed.","enum":["relevance","newest"],"type":"string"},"platforms":{"default":["x","youtube","instagram"],"description":"Platforms to search. Three or fewer per call works best. For a software question add `github` (a library's latest releases and breaking-change lines; needs a library named in `q`) and `stackoverflow` (questions with scores; needs words describing a problem or a choice); a search about software or AI tooling is given them without asking.","items":{"enum":["publications","x","instagram","tiktok","reddit","youtube","linkedin","threads","facebook","substack","medium","github","stackoverflow"],"type":"string"},"type":"array"},"q":{"description":"What to search for, in plain words: a name, a topic or a question. `searched_for` lists what was searched and `credits.used` what it cost.","maxLength":200,"minLength":1,"type":"string"},"signal":{"description":"One signal: the same as `signals` with a single entry named `signal`. Send this or `signals`.","maxLength":300,"minLength":3,"type":"string"},"signal_threshold":{"default":0.5,"description":"A result `match`es a signal when its score `p` is at least this. It only changes `match`; `p` is always returned.","exclusiveMaximum":1,"exclusiveMinimum":0,"type":"number"},"signals":{"additionalProperties":{"maxLength":300,"minLength":3,"type":"string"},"description":"Up to 3 signals: a name and a plain-language yes/no criterion for each, such as {\"complaint\": \"Is this a complaint about the app?\"}. Each result's title is checked against every signal (see `signals` on a result). 1 credit per signal, on top of the call's price. Send this or `signal`.","maxProperties":3,"minProperties":1,"propertyNames":{"pattern":"^[A-Za-z0-9_-]{1,32}$"},"type":"object"},"strict":{"default":false,"description":"Only results with matches_query true. Returns little for a question: its words rarely all appear in a headline.","type":"boolean"},"window":{"default":"24h","description":"How far back to look. When you don't send it, a search that finds little in 24h looks wider by itself (the response's `window` is the one used, with `widened_from`); a window you send is kept.","enum":["24h","7d","30d","any"],"type":"string"}},"required":["q"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResponse"}}},"description":"OK","headers":{"X-OC-Credits-Left":{"$ref":"#/components/headers/CreditsLeft"},"X-OC-Credits-Used":{"$ref":"#/components/headers/CreditsUsed"},"X-OC-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"502":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}},"summary":"Search"}},"/v1/search-links":{"post":{"description":"1 credit per call (3 credits for a question), free if nothing is found. Send `search_id` (an earlier search) or `q` (a new one). Add `signals` to check every returned post against criteria you write (1 more credit each).","requestBody":{"content":{"application/json":{"schema":{"properties":{"auto_countries":{"default":true,"description":"Also search the country of a place the search names (\"london flood warning\" adds gb): added to `countries`, or in place of the default when `countries` isn't sent. `searched_for.countries_added` lists them. false searches exactly `countries`.","type":"boolean"},"auto_languages":{"default":true,"description":"A search written in a country's own language (\"s\u00e3o paulo enchentes\" in br, \"\u6771\u4eac \u5730\u9707\" in jp) is also searched in that language there, not only in English. A search in English is never searched in another language, and nothing is translated. `searched_for.languages` lists them. false searches every country in English only.","type":"boolean"},"countries":{"default":["us"],"description":"Two-letter country codes (GET /v1/countries). The country of a place the search names is searched too (see auto_countries).","items":{"pattern":"^[a-z]{2}$","type":"string"},"type":"array"},"exact":{"default":false,"description":"Search the words exactly as typed. Only for a quoted phrase, a slogan or a product code.","type":"boolean"},"page":{"default":1,"description":"The next per_platform posts on each platform.","maximum":100,"minimum":1,"type":"integer"},"per_platform":{"default":10,"description":"Posts per platform.","maximum":10,"minimum":1,"type":"integer"},"platforms":{"default":["x","youtube","instagram"],"description":"Platforms to search. Three or fewer per call works best. For a software question add `github` (a library's latest releases and breaking-change lines; needs a library named in `q`) and `stackoverflow` (questions with scores; needs words describing a problem or a choice); a search about software or AI tooling is given them without asking.","items":{"enum":["publications","x","instagram","tiktok","reddit","youtube","linkedin","threads","facebook","substack","medium","github","stackoverflow"],"type":"string"},"type":"array"},"q":{"description":"A new search. Either this or search_id.","maxLength":200,"minLength":1,"type":"string"},"search_id":{"description":"An earlier search (no new search runs). Either this or q.","pattern":"^[0-9a-f]{32}$","type":"string"},"signal":{"description":"One signal: the same as `signals` with a single entry named `signal`. Send this or `signals`.","maxLength":300,"minLength":3,"type":"string"},"signal_threshold":{"default":0.5,"description":"A result `match`es a signal when its score `p` is at least this. It only changes `match`; `p` is always returned.","exclusiveMaximum":1,"exclusiveMinimum":0,"type":"number"},"signals":{"additionalProperties":{"maxLength":300,"minLength":3,"type":"string"},"description":"Up to 3 signals: a name and a plain-language yes/no criterion for each, such as {\"complaint\": \"Is this a complaint about the app?\"}. Each result's title is checked against every signal (see `signals` on a result). 1 credit per signal, on top of the call's price. Send this or `signal`.","maxProperties":3,"minProperties":1,"propertyNames":{"pattern":"^[A-Za-z0-9_-]{1,32}$"},"type":"object"},"window":{"default":"24h","description":"How far back to look. When you don't send it, a search that finds little in 24h looks wider by itself (the response's `window` is the one used, with `widened_from`); a window you send is kept.","enum":["24h","7d","30d","any"],"type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinksResponse"}}},"description":"OK","headers":{"X-OC-Credits-Left":{"$ref":"#/components/headers/CreditsLeft"},"X-OC-Credits-Used":{"$ref":"#/components/headers/CreditsUsed"},"X-OC-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"502":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}},"summary":"Top results per platform, with links"}},"/v1/search/{search_id}":{"get":{"description":"1 credit per page, free past the last page. Searches last 15 minutes. Signals aren't remembered between pages: send them again on each page you want checked (1 more credit each).","parameters":[{"description":"From the first page's response.","in":"path","name":"search_id","required":true,"schema":{"pattern":"^[0-9a-f]{32}$","type":"string"}},{"description":"2 for the second page, and so on.","in":"query","name":"page","required":true,"schema":{"maximum":1000,"minimum":1,"type":"integer"}},{"description":"Results per page.","in":"query","name":"limit","schema":{"default":100,"maximum":100,"minimum":1,"type":"integer"}},{"description":"As `signals` on a search, URL-encoded JSON: %7B%22complaint%22%3A%22Is%20this%20a%20complaint%3F%22%7D.","in":"query","name":"signals","schema":{"type":"string"}},{"in":"query","name":"signal","schema":{"description":"One signal: the same as `signals` with a single entry named `signal`. Send this or `signals`.","maxLength":300,"minLength":3,"type":"string"}},{"in":"query","name":"signal_threshold","schema":{"default":0.5,"description":"A result `match`es a signal when its score `p` is at least this. It only changes `match`; `p` is always returned.","exclusiveMaximum":1,"exclusiveMinimum":0,"type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResponse"}}},"description":"OK","headers":{"X-OC-Credits-Left":{"$ref":"#/components/headers/CreditsLeft"},"X-OC-Credits-Used":{"$ref":"#/components/headers/CreditsUsed"},"X-OC-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"502":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}},"summary":"Next page of a search"}},"/v1/usage":{"get":{"parameters":[{"description":"YYYY-MM-DD (UTC). Default: 31 days before `to`.","in":"query","name":"from","schema":{"format":"date","type":"string"}},{"description":"YYYY-MM-DD (UTC). Default: today.","in":"query","name":"to","schema":{"format":"date","type":"string"}},{"in":"query","name":"group","schema":{"default":"day","enum":["day","endpoint","key"],"type":"string"}},{"description":"Only this key.","in":"query","name":"key_id","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Usage"}}},"description":"OK","headers":{"X-OC-Credits-Left":{"$ref":"#/components/headers/CreditsLeft"},"X-OC-Credits-Used":{"$ref":"#/components/headers/CreditsUsed"},"X-OC-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}},"summary":"Calls and credits over time"}},"/v1/watch-video":{"post":{"description":"5 credits if the video is understood, free if it can't be. One video per call, from YouTube, Instagram, TikTok or Facebook. Returns a summary, up to 10 keywords, up to 10 named entities and the transcript; a video with no speech (silent or music only) is understood from frames sampled across it instead (`mode: frames`). Send `question` to have it answered from the video too (`answer`). Takes up to about 50 seconds; another question about the same video within the hour is much quicker.","requestBody":{"content":{"application/json":{"schema":{"properties":{"id":{"description":"One result id (a YouTube, Instagram, TikTok or Facebook result) from search, search-links or fetch. Send this or `url`.","pattern":"^p_[0-9a-f]{20}$","type":"string"},"question":{"description":"Optional. A question about the video, answered from what it says or shows. Leave it out for a summary.","maxLength":300,"type":"string"},"url":{"description":"A YouTube, Instagram, TikTok or Facebook video link. Send this or `id`.","format":"uri","maxLength":2000,"type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatchVideoResponse"}}},"description":"OK","headers":{"X-OC-Credits-Left":{"$ref":"#/components/headers/CreditsLeft"},"X-OC-Credits-Used":{"$ref":"#/components/headers/CreditsUsed"},"X-OC-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"502":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}},"summary":"What's in a video"}}},"security":[{"bearerAuth":[]}],"servers":[{"url":"https://api.openchase.ai"}]}
