{"openapi":"3.1.0","info":{"title":"Search1API","description":"Web search, news, crawling, screenshot, and content extraction APIs for AI agents. Supports pay-per-request via MPP and x402 protocols.","version":"1.0.0","x-guidance":"Search1API provides web search, Maps place discovery, news aggregation, URL crawling, webpage screenshots, sitemap extraction, trending topics, content extraction, and deep crawling. All paid endpoints accept POST with a JSON body. Use POST \/search with a \"query\" field for web search. Use POST \/maps with a \"query\" and optional location coordinates to discover Google Maps places (API key only). Use POST \/dataset with a \"dataset\" and a \"query\" to answer from a verified fact dataset such as gta6 (API key only; GET \/dataset lists datasets). Use POST \/news with a \"query\" field for news. Use POST \/ask with a natural-language \"query\" to have Search1API choose the engines and time window and return only relevant results (API key only). Use POST \/crawl with a \"url\" field to crawl a page. Use POST \/screenshot with a \"url\" field to render a PNG, JPEG, or WebP image. Use POST \/sitemap with a \"url\" field to extract sitemap URLs. Use POST \/trending with a \"search_service\" field for trends. Use POST \/extract with a \"url\" field for structured content extraction. Use POST \/deepcrawl with a \"url\" field for deep multi-page crawling."},"x-discovery":{"ownershipProofs":[]},"servers":[{"url":"https:\/\/api.search1api.com"}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API Key"}},"schemas":{"ApiError":{"type":"object","description":"Search1API error. Every JSON error carries `ok: false`, `error` (a short status-derived label) and `message` (human-readable detail); validation failures add `errors`. Payment challenges may use RFC 9457 problem detail fields.","properties":{"ok":{"type":"boolean","enum":[false]},"error":{"type":"string"},"message":{"type":"string"},"top_up_url":{"type":"string","format":"uri","description":"Credits top-up URL, included when an authenticated account has insufficient credits (402). Payment protocol challenges do not include this field."},"first_payment_bonus":{"type":"object","description":"Included on an insufficient-credits 402 for a new account whose first-payment bonus is still open: the extra credits its first payment adds, and when the offer ends.","properties":{"credits":{"type":"integer"},"expires_at":{"type":"string","format":"date-time"}},"required":["credits","expires_at"]},"errors":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"message":{"type":"string"},"code":{"type":"string"}}}},"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"failureCategory":{"type":"string","description":"`\/crawl` and `\/extract`: why the page could not be read, e.g. `NOT_FOUND`, `GONE`, `FORBIDDEN`, `AUTH_REQUIRED`, `BLOCKED`, `RATE_LIMITED`, `DNS_NOT_FOUND`, `TARGET_UNREACHABLE`, `TARGET_BAD_REQUEST`, `TIMEOUT`, `QUALITY_CHECK`, `BUSY` (our crawler is at capacity; retry shortly)."},"upstreamStatus":{"type":"integer","description":"`\/crawl` and `\/extract`: the HTTP status the target site itself returned, when it answered."}},"additionalProperties":true},"SearchParameters":{"type":"object","properties":{"query":{"type":"string","minLength":1},"search_service":{"type":"string","enum":["google","bing","bingcn","duckduckgo","yahoo","yandex","youtube","x","reddit","github","arxiv","wechat","bilibili","imdb","wikipedia","grokipedia","","baidu","360","quark","yuanbao"]},"max_results":{"type":"integer","minimum":1,"maximum":50,"default":5},"page":{"type":"integer","minimum":1,"maximum":100,"default":1},"crawl_results":{"type":"integer","minimum":0,"maximum":50,"default":0},"image":{"type":"boolean","default":false},"include_sites":{"type":"array","items":{"type":"string"},"default":[]},"exclude_sites":{"type":"array","items":{"type":"string"},"default":[]},"language":{"type":"string"},"time_range":{"type":"string","enum":["day","week","month","year",""]}},"required":["query"],"additionalProperties":false},"MapsResponse":{"type":"object","properties":{"searchParameters":{"type":"object","properties":{"query":{"type":"string","minLength":1,"maxLength":1000,"description":"Google Maps search phrase; leading and trailing whitespace is removed."},"country":{"type":"string","pattern":"^[a-zA-Z]{2}$","default":"us","description":"Two-letter country code, normalized to lowercase. Defaults to us."},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[a-zA-Z]{2,4})?$","default":"en","description":"Result language, for example en, de or zh-CN. Defaults to en."},"location":{"type":"object","properties":{"latitude":{"type":"number","minimum":-90,"maximum":90},"longitude":{"type":"number","minimum":-180,"maximum":180},"zoom":{"type":"number","minimum":3,"maximum":30,"default":14}},"required":["latitude","longitude"],"additionalProperties":false,"description":"Search origin coordinates and map zoom (default 14). Required for page > 1. Latitude must be -90 to 90, longitude -180 to 180, and zoom 3 to 30. Example: {\"latitude\":40.7455,\"longitude\":-74.0083,\"zoom\":15}."},"page":{"type":"integer","minimum":1,"maximum":6,"default":1,"description":"Page number, 1\u20136; default 1. Accepts an integer or canonical integer string such as \"2\". Empty strings use the default. Pages after the first require location."},"max_results":{"type":"integer","minimum":1,"maximum":20,"default":20,"description":"Maximum places to return from this page, 1\u201320; default 20. Accepts an integer or canonical integer string such as \"10\". Empty strings use the default. Truncation does not reduce the page charge or carry places to the next page."}},"required":["query"],"additionalProperties":false},"results":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":1,"description":"Position in the requested native page, offset by earlier page capacities. Gaps can remain after filtering or deduplication; this is not a stable SEO rank."},"name":{"type":"string","minLength":1,"description":"Business or place name."},"place_id":{"type":"string","minLength":1,"description":"Google Maps place identifier, also used to deduplicate this page."},"maps_url":{"type":"string","format":"uri","description":"Public Google Maps link for this place."},"cid":{"type":"string","pattern":"^[1-9]\\d{0,19}$","description":"Google Maps customer id (CID) of the place, as a decimal string."},"address":{"type":"string"},"phone":{"type":"string"},"website":{"type":"string","format":"uri"},"thumbnail":{"type":"string","format":"uri"},"category":{"type":"string"},"categories":{"type":"array","items":{"type":"string"}},"rating":{"type":"number","minimum":0,"maximum":5},"review_count":{"type":"integer","minimum":0,"maximum":9007199254740991},"coordinates":{"type":"object","properties":{"latitude":{"type":"number","minimum":-90,"maximum":90},"longitude":{"type":"number","minimum":-180,"maximum":180}},"required":["latitude","longitude"],"additionalProperties":false},"opening_hours":{"type":"object","properties":{"monday":{"type":"string"},"tuesday":{"type":"string"},"wednesday":{"type":"string"},"thursday":{"type":"string"},"friday":{"type":"string"},"saturday":{"type":"string"},"sunday":{"type":"string"}},"additionalProperties":false,"description":"Opening hours by weekday, as displayed by the source; omitted when unavailable."},"open_state":{"type":"string","description":"Source display text for the current opening state, not a normalized boolean."},"price":{"type":"string","description":"Source display text for the business price range, not a numeric amount or normalized currency."},"description":{"type":"string"}},"required":["position","name","place_id","maps_url"],"additionalProperties":false},"maxItems":20}},"required":["searchParameters","results"],"additionalProperties":false},"DatasetQueryResponse":{"type":"object","properties":{"dataset":{"type":"string"},"query":{"type":"string"},"query_en":{"type":"string","description":"The English translation used for matching, for non-English queries."},"found":{"type":"boolean","description":"Whether the best fact answers the query. When false, results are only the closest facts and the request is not charged."},"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Stable fact identifier within the dataset."},"fact":{"type":"string","description":"The verified fact, as one short statement."},"question":{"type":"string","description":"The question this fact answers."},"relevance":{"type":"number","description":"Probability, 0\u20131, that this fact answers the query, from the ranking model."},"confidence":{"type":"number","description":"How well the sources support the fact, 0\u20131, from source weights and independent corroboration."},"corroborated_by":{"type":"integer","description":"Number of independent sources that state this fact."},"contested":{"type":"boolean","description":"True when some sources disagree with this fact."},"conflicting_claims":{"type":"array","items":{"type":"string"},"description":"Competing versions of a contested fact, up to two."},"sources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string","description":"Source family, for example guide, reddit or x."},"site":{"type":"string","nullable":true,"description":"Guide site domain or community name, when known."},"url":{"type":"string","description":"Link to the original page, post or comment."}},"required":["source","site","url"],"additionalProperties":false},"description":"Up to three supporting sources, guide sites first."},"attributes":{"type":"object","additionalProperties":{},"description":"Dataset-specific fields, for example the fact type and whether it is a story spoiler."},"updated_at":{"type":"string","description":"When this fact was last updated (ISO 8601, UTC)."}},"required":["id","fact","question","relevance","confidence","corroborated_by","contested","conflicting_claims","sources","attributes","updated_at"],"additionalProperties":false}}},"required":["dataset","query","found","results"],"additionalProperties":false},"DatasetListResponse":{"type":"object","properties":{"datasets":{"type":"array","items":{"type":"object","properties":{"dataset":{"type":"string","description":"Name to pass as dataset."},"title":{"type":"string"},"description":{"type":"string","description":"What the dataset covers."},"fact_count":{"type":"integer"},"updated_at":{"type":"string","description":"Last sync time (ISO 8601, UTC)."},"stats":{"type":"object","properties":{"by_type":{"type":"object","additionalProperties":{"type":"integer"},"description":"Fact count per fact type, for example mission or weapon."},"by_source":{"type":"object","additionalProperties":{"type":"integer"},"description":"Facts supported by each source family (guide, reddit, x); a fact can count for several."},"multi_source_facts":{"type":"integer","description":"Facts stated by at least two independent sources."},"contested_facts":{"type":"integer","description":"Facts that some sources disagree with."}},"required":["by_type","by_source","multi_source_facts","contested_facts"],"additionalProperties":false,"description":"Coverage figures for the dataset."}},"required":["dataset","title","description","fact_count","updated_at"],"additionalProperties":false}}},"required":["datasets"],"additionalProperties":false},"NewsParameters":{"type":"object","properties":{"query":{"type":"string","minLength":1},"search_service":{"type":"string","enum":["google","bing","duckduckgo","yahoo","hackernews","","reuters"]},"max_results":{"type":"integer","minimum":1,"maximum":50,"default":5},"crawl_results":{"type":"integer","minimum":0,"maximum":50,"default":0},"image":{"type":"boolean","default":false},"include_sites":{"type":"array","items":{"type":"string"},"default":[]},"exclude_sites":{"type":"array","items":{"type":"string"},"default":[]},"language":{"type":"string"},"time_range":{"type":"string","enum":["day","week","month","year",""]}},"required":["query"],"additionalProperties":false},"CrawlRequest":{"type":"object","properties":{"url":{"type":"string","format":"uri","minLength":1},"enableFallback":{"type":"boolean","default":true}},"required":["url"],"additionalProperties":false},"SitemapRequest":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"type":{"type":"string","enum":["sitemap","all"]}},"required":["url"],"additionalProperties":false},"TrendingRequest":{"type":"object","properties":{"search_service":{"type":"string","minLength":1},"max_results":{"type":"integer","minimum":1}},"required":["search_service"],"additionalProperties":false},"ExtractRequest":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"The webpage to extract data from."},"prompt":{"type":"string","minLength":1,"description":"Natural-language instructions: what to extract from the page, e.g. \"Extract the product name and price.\""},"response_format":{"type":"object","properties":{"type":{"type":"string","enum":["json_schema"]},"json_schema":{"type":"object","additionalProperties":{},"description":"The JSON Schema the result must follow, e.g. {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"string\"}}}. Pass the schema itself, not an object wrapping it under name\/schema."}},"required":["type","json_schema"],"additionalProperties":false,"description":"Shape of the result. Wrap your JSON Schema as {\"type\": \"json_schema\", \"json_schema\": <schema>}."}},"required":["url","prompt","response_format"],"additionalProperties":false},"DeepcrawlRequest":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"Absolute http or https URL to start from, e.g. https:\/\/example.com. A bare domain without the scheme is rejected with 400."},"type":{"type":"string","enum":["sitemap","all"]},"max_pages":{"type":"integer","minimum":1,"maximum":1000,"description":"Maximum number of pages to crawl, 1\u20131000; default 1000. Applied after include_paths\/exclude_paths, in discovery order."},"include_paths":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"maxItems":20,"description":"Only crawl URLs whose path matches one of these rules (up to 20). A rule without * is a path prefix on segment boundaries: \"\/docs\" matches \/docs and \/docs\/api but not \/docsearch. A rule with * must match the whole path, and * matches any characters including \/, e.g. \"\/blog\/*\". Empty or omitted means every discovered URL."},"exclude_paths":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"maxItems":20,"description":"Skip URLs whose path matches one of these rules (up to 20), using the same syntax as include_paths. Exclusion wins over inclusion."},"format":{"type":"string","enum":["zip","json"],"description":"Result format; default \"zip\". \"zip\" packages the pages as Markdown files behind zipUrl. \"json\" returns pages: [{url, title, content}] in the completed status response, plus resultUrl for the same JSON file."}},"required":["url"],"additionalProperties":false},"SearchResult":{"type":"object","required":["title","link","snippet"],"properties":{"title":{"type":"string"},"link":{"type":"string","format":"uri"},"snippet":{"type":"string"},"content":{"type":"string"},"published_date":{"type":"string","description":"When the page was published, as ISO 8601: `YYYY-MM-DD` when only the day is known (web search engines), or `YYYY-MM-DDTHH:MM:SSZ` in UTC when the source carries a time (x, reddit, github, arxiv, youtube, bilibili, wechat, news feeds). Omitted when the source exposes no date, so treat it as optional per result.","example":"2026-09-03"},"metadata":{"$ref":"#\/components\/schemas\/SearchResultMetadata"}},"additionalProperties":true},"SearchResultMetadata":{"type":"object","description":"Optional engine-specific fields. Omitted when none apply. GitHub, Reddit and X fields appear on POST \/search; Hacker News fields appear on POST \/news.","properties":{"kind":{"type":"string","enum":["repo","issue","pr","discussion"],"description":"What a `github` result is: a repository, an issue, a pull request, or a discussion. Only present for `search_service: \"github\"`."},"stars":{"type":"integer","description":"Stargazer count of a `github` repository result (`metadata.kind: \"repo\"`)."},"language":{"type":"string","description":"Primary language of a `github` repository result (`metadata.kind: \"repo\"`), or the language code X detected for an `x` post. Omitted when none is reported."},"num_comments":{"type":"integer","description":"Comment count on a `github` issue, pull request or discussion, on a `reddit` post, on an `x` post (replies), or on a `hackernews` thread (POST \/news)."},"story_url":{"type":"string","format":"uri","description":"POST \/news with `search_service: \"hackernews\"` only: the submitted article. `link` is the Hacker News discussion thread; `metadata.story_url` is omitted for Ask HN \/ Show HN text posts."},"points":{"type":"integer","description":"POST \/news with `search_service: \"hackernews\"` only: upvotes on the thread."},"post_id":{"type":"string","description":"`search_service: \"x\"` only: the post id."},"author_username":{"type":"string","description":"`x` only: handle of the account that posted, without the @."},"author_name":{"type":"string","description":"`x` only: display name of the account that posted."},"author_id":{"type":"string","description":"`x` only: numeric user id of the account that posted."},"author_image":{"type":"string","format":"uri","description":"`x` only: avatar URL of the account that posted."},"author_verified":{"type":"boolean","description":"`x` only: whether the account shows a verified checkmark."},"author_followers":{"type":"integer","description":"`x` only: follower count of the account that posted."},"like_count":{"type":"integer","description":"`x` only: likes on the post."},"repost_count":{"type":"integer","description":"`x` only: reposts of the post."},"quote_count":{"type":"integer","description":"`x` only: quotes of the post."},"bookmark_count":{"type":"integer","description":"`x` only: bookmarks of the post."},"view_count":{"type":"integer","description":"`x` only: views of the post. Omitted when X reports none, as for older posts."},"is_reply":{"type":"boolean","description":"`x` only: whether the post replies to another post."},"conversation_id":{"type":"string","description":"`x` only: id of the first post in the thread."},"in_reply_to_id":{"type":"string","description":"`x` only: id of the post this one replies to. Omitted when it is not a reply."},"media":{"type":"array","description":"`x` only: photos, videos and GIFs attached to the post. Empty when there are none.","items":{"type":"object","required":["type","url"],"properties":{"type":{"type":"string","enum":["photo","video","gif"]},"url":{"type":"string","format":"uri","description":"Image URL; for a video or GIF, its poster frame."},"width":{"type":"integer"},"height":{"type":"integer"},"video_url":{"type":"string","format":"uri","description":"Playable MP4 (highest bitrate) for a video or GIF."}}}}},"additionalProperties":true},"SearchResponse":{"type":"object","required":["searchParameters","results"],"properties":{"searchParameters":{"$ref":"#\/components\/schemas\/SearchParameters"},"results":{"type":"array","items":{"$ref":"#\/components\/schemas\/SearchResult"}},"images":{"type":"array","items":{"type":"string","format":"uri"}}}},"SearchBatchResponse":{"type":"object","required":["results","summary"],"properties":{"results":{"type":"array","items":{"type":"object","required":["success","cost"],"properties":{"success":{"type":"boolean"},"data":{"$ref":"#\/components\/schemas\/SearchResponse"},"error":{"type":"object","properties":{"message":{"type":"string"},"statusCode":{"type":"integer"}}},"cost":{"type":"integer","minimum":0}}}},"summary":{"type":"object","required":["total","successful","failed","totalCost"],"properties":{"total":{"type":"integer","minimum":0},"successful":{"type":"integer","minimum":0},"failed":{"type":"integer","minimum":0},"totalCost":{"type":"integer","minimum":0}}}}},"NewsResponse":{"type":"object","required":["searchParameters","results"],"properties":{"searchParameters":{"$ref":"#\/components\/schemas\/NewsParameters"},"results":{"type":"array","items":{"$ref":"#\/components\/schemas\/SearchResult"}},"images":{"type":"array","items":{"type":"string","format":"uri"}}}},"NewsBatchResponse":{"type":"object","required":["results","summary"],"properties":{"results":{"type":"array","items":{"type":"object","required":["success","cost"],"properties":{"success":{"type":"boolean"},"data":{"$ref":"#\/components\/schemas\/NewsResponse"},"error":{"type":"object","properties":{"message":{"type":"string"},"statusCode":{"type":"integer"}}},"cost":{"type":"integer","minimum":0}}}},"summary":{"type":"object","required":["total","successful","failed","totalCost"],"properties":{"total":{"type":"integer","minimum":0},"successful":{"type":"integer","minimum":0},"failed":{"type":"integer","minimum":0},"totalCost":{"type":"integer","minimum":0}}}}},"AskResult":{"type":"object","required":["title","link","snippet","source","relevance"],"properties":{"title":{"type":"string"},"link":{"type":"string","format":"uri"},"snippet":{"type":"string"},"published_date":{"type":"string","description":"When the page was published, as ISO 8601 (`YYYY-MM-DD` or `YYYY-MM-DDTHH:MM:SSZ`). Omitted when the engine exposes no date.","example":"2026-09-03"},"source":{"type":"string","description":"Engine that returned the result."},"relevance":{"type":"number","minimum":0,"maximum":1,"description":"How likely the result is to be about the query, two decimals. Only results scoring at least 0.5 are returned."}}},"AskResponse":{"type":"object","required":["query","intent","results","errors"],"properties":{"query":{"type":"string","description":"The query as sent."},"intent":{"type":"object","required":["search_query","sources","time_range"],"description":"How the request was interpreted and searched.","properties":{"search_query":{"type":"string","description":"Query sent to the first engine in `sources`. Each engine searches its own span of the request words, without platform names; the time window is applied as a filter."},"sources":{"type":"array","items":{"type":"string"},"description":"Engines searched."},"time_range":{"type":["string","null"],"enum":["day","week","month","year",null],"description":"Publication window applied, or null for none. year means the past 365 days, not the current calendar year."}}},"results":{"type":"array","items":{"$ref":"#\/components\/schemas\/AskResult"},"description":"Relevant results from every engine, best first, with duplicates merged. May be empty."},"errors":{"type":"array","description":"Engines that failed while others completed. The request is still charged.","items":{"type":"object","required":["source","message"],"properties":{"source":{"type":"string"},"message":{"type":"string"}}}}}},"CrawlResult":{"type":"object","required":["title","link","content"],"properties":{"title":{"type":"string"},"link":{"type":"string","format":"uri"},"content":{"type":"string"},"metadata":{"type":"object","additionalProperties":true}},"additionalProperties":true},"CrawlResponse":{"type":"object","required":["crawlParameters","results"],"properties":{"crawlParameters":{"type":"object","required":["url"],"properties":{"url":{"type":"string","format":"uri"}}},"results":{"$ref":"#\/components\/schemas\/CrawlResult"}}},"SitemapResponse":{"type":"object","required":["links"],"properties":{"links":{"type":"array","items":{"type":"string","format":"uri"}}}},"TrendingResult":{"type":"object","required":["title","url"],"properties":{"title":{"type":"string"},"url":{"type":"string","format":"uri"},"description":{"type":["string","null"]}}},"TrendingResponse":{"type":"object","required":["trendingParameters","results"],"properties":{"trendingParameters":{"$ref":"#\/components\/schemas\/TrendingRequest"},"results":{"type":"array","items":{"$ref":"#\/components\/schemas\/TrendingResult"}}}},"ExtractResponse":{"type":"object","required":["success","extractParameters","results"],"properties":{"success":{"type":"boolean","enum":[true]},"extractParameters":{"type":"object","required":["url"],"properties":{"url":{"type":"string","format":"uri"}}},"results":{}}},"DeepcrawlAcceptedResponse":{"type":"object","required":["taskId","status"],"properties":{"taskId":{"type":"string"},"status":{"type":"string","enum":["queued"]}}},"DeepcrawlStatusResponse":{"type":"object","required":["taskId"],"properties":{"taskId":{"type":"string"},"status":{"type":"string","enum":["queued","waiting","processing","completed","failed","not_found"]},"success":{"type":"boolean"},"message":{"type":"string"},"error":{"type":["string","null"]},"r2Key":{"type":"string"},"zipUrl":{"type":["string","null"],"format":"uri"},"stats":{"type":"object","description":"Page counts for a finished task: discovered links, how many matched the path rules, how many max_pages left out, and how many pages were crawled or failed.","required":["discovered","matched","skipped","crawled","failed"],"properties":{"discovered":{"type":"integer","minimum":0},"matched":{"type":"integer","minimum":0},"skipped":{"type":"integer","minimum":0},"crawled":{"type":"integer","minimum":0},"failed":{"type":"integer","minimum":0}}},"format":{"type":"string","enum":["zip","json"]},"failed":{"type":"array","description":"Pages that could not be crawled, with the reason.","items":{"type":"object","required":["url","error"],"properties":{"url":{"type":"string","format":"uri"},"error":{"type":"string"}}}},"resultUrl":{"type":["string","null"],"format":"uri","description":"format=json only: the JSON result file, {\"pages\": [...], \"failed\": [...]}."},"pages":{"type":"array","description":"format=json only: the crawled pages in discovery order. Omitted when the result is larger than 5 MB; download resultUrl instead.","items":{"type":"object","required":["url","title","content"],"properties":{"url":{"type":"string","format":"uri"},"title":{"type":["string","null"]},"content":{"type":"string","description":"Page body as Markdown."}}}}},"additionalProperties":true},"HealthResponse":{"type":"object","required":["status"],"properties":{"status":{"type":"string"},"timestamp":{"type":"string","format":"date-time"},"version":{"type":"string"}}},"UsageResponse":{"type":"object","required":["usage","credential_type"],"properties":{"usage":{"type":"integer","minimum":0},"user_id":{"type":["string","null"]},"credential_type":{"type":"string","enum":["api_key","oauth"]},"client_id":{"type":["string","null"]}}},"FeedbackResponse":{"type":"object","required":["id","status"],"properties":{"id":{"type":"string","pattern":"^fb_[a-zA-Z0-9_-]+$","maxLength":80},"status":{"type":"string","enum":["new"]}},"additionalProperties":false}}},"paths":{"\/maps":{"post":{"operationId":"maps","summary":"Search Google Maps for local businesses and places","description":"Discover businesses and places with names, place IDs and public Maps links, plus addresses, contact details, ratings, review counts, coordinates and opening hours when available. Optional result fields are omitted when unavailable. Use POST \/search for webpages and POST \/crawl to read a business website.\n\nEach request fetches one Google Maps page of up to 20 places. page is 1-based (1\u20136); page > 1 requires location coordinates. max_results only truncates that page and does not change the price or carry unused places into the next page. Send the same query, country, language and location with the next page number for another separately billed request. There is no automatic pagination, retry or filling from another engine. Results can change between requests; an empty or short page does not guarantee that no later results exist.\n\nThe response contains searchParameters and results, following the single-request format of POST \/search and POST \/news. searchParameters includes the requested page and normalized defaults. Result positions preserve native page order with possible gaps, not a stable SEO rank. A short or empty results array does not assert a total count or a next page.\n\nA confirmed empty page is completed and charged. Technical failures return an error and release the credit reservation. GET \/usage separately returns the remaining account balance.\n\nAccount credits only; no batch requests or payment protocols. Unknown fields are rejected; validation failures return 422 with errors entries containing field, message and code. Normal account limits apply (200 requests per minute). Set your client timeout above 20 seconds. SDK and MCP methods are not included in this release. Costs 3 credits per request.","tags":["Maps"],"responses":{"200":{"description":"Successful response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/MapsResponse"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"402":{"description":"Payment Required","content":{"application\/problem+json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"502":{"description":"Bad Gateway","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"503":{"description":"Service Unavailable","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","properties":{"query":{"type":"string","minLength":1,"maxLength":1000,"description":"Google Maps search phrase; leading and trailing whitespace is removed.","example":"coffee in Manhattan"},"country":{"type":"string","pattern":"^[a-zA-Z]{2}$","default":"us","description":"Two-letter country code, normalized to lowercase. Defaults to us."},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[a-zA-Z]{2,4})?$","default":"en","description":"Result language, for example en, de or zh-CN. Defaults to en."},"location":{"type":"object","properties":{"latitude":{"type":"number","minimum":-90,"maximum":90},"longitude":{"type":"number","minimum":-180,"maximum":180},"zoom":{"type":"number","minimum":3,"maximum":30,"default":14}},"required":["latitude","longitude"],"additionalProperties":false,"description":"Search origin coordinates and map zoom (default 14). Required for page > 1. Latitude must be -90 to 90, longitude -180 to 180, and zoom 3 to 30. Example: {\"latitude\":40.7455,\"longitude\":-74.0083,\"zoom\":15}."},"page":{"type":"integer","minimum":1,"maximum":6,"default":1,"description":"Page number, 1\u20136; default 1. Accepts an integer or canonical integer string such as \"2\". Empty strings use the default. Pages after the first require location."},"max_results":{"type":"integer","minimum":1,"maximum":20,"default":20,"description":"Maximum places to return from this page, 1\u201320; default 20. Accepts an integer or canonical integer string such as \"10\". Empty strings use the default. Truncation does not reduce the page charge or carry places to the next page."}},"required":["query"],"additionalProperties":false}}}}}},"\/dataset":{"post":{"operationId":"queryDataset","summary":"Query a verified fact dataset","description":"Answer a question from a curated, verified dataset instead of the open web. Each result is one short fact with relevance, confidence, the number of independent sources that state it, whether sources disagree (contested, with the competing claims) and links to the sources. GET \/dataset lists the datasets and what they cover; the first is gta6 (GTA 6 gameplay: missions, vehicles, weapons, money, collectibles, settings, bugs and fixes).\n\nAsk in natural language and put constraints such as platform or version in the question. Non-English questions are translated before matching, and query_en shows the translation. Story spoilers are left out unless the question asks about the story.\n\nfound says whether the best fact answers the question. When found is false, results are only the closest facts, which may not answer it; say that the dataset has no answer or use POST \/search instead. Only answered queries (found: true) are charged.\n\nAccount credits only; no batch requests or payment protocols. Unknown fields are rejected; validation failures return 422 with errors entries containing field, message and code. An unknown dataset returns 400 with the available names. Normal account limits apply (200 requests per minute). Costs 1 credit per request.","tags":["Datasets"],"responses":{"200":{"description":"Successful response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DatasetQueryResponse"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"402":{"description":"Payment Required","content":{"application\/problem+json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"502":{"description":"Bad Gateway","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"503":{"description":"Service Unavailable","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","properties":{"dataset":{"type":"string","minLength":1,"maxLength":64,"description":"Dataset to query, for example gta6. GET \/dataset lists the available datasets."},"query":{"type":"string","minLength":1,"maxLength":500,"description":"Natural-language question, for example \"how do I lose a wanted level fast\". Put constraints such as platform or version in the question itself. Non-English questions are translated before matching."},"max_results":{"type":"integer","minimum":1,"maximum":10,"default":5,"description":"Maximum facts to return, 1\u201310; default 5."}},"required":["dataset","query"],"additionalProperties":false}}}}},"get":{"operationId":"listDatasets","summary":"List verified fact datasets","description":"List the datasets POST \/dataset can query, with what each covers, its number of facts and when it was last updated. Free. Free to call.","tags":["Datasets"],"responses":{"200":{"description":"Successful response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DatasetListResponse"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"502":{"description":"Bad Gateway","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"503":{"description":"Service Unavailable","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}}},"security":[{"bearerAuth":[]}]}},"\/feedback":{"post":{"operationId":"feedback","summary":"Report a Search1API problem or feature request","description":"Report a Search1API problem, missing capability, or confusing documentation encountered during a task. Only message is required. Optional request_id refers to the original problem request. Do not include credentials, personal data, or private user content. Reports are stored in Agentback and linked to an opaque account reference. Do not report every empty result or retry the same report automatically; feedback should not block the main task. Returns 201 only after storage succeeds. Maximum JSON body size: 16 KiB. Limited to 10 submissions per account per minute at a Cloudflare location. Free to call.","tags":["Feedback"],"responses":{"201":{"description":"Successful response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/FeedbackResponse"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"413":{"description":"Payload Too Large","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"415":{"description":"Unsupported Media Type","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"503":{"description":"Service Unavailable","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","properties":{"message":{"type":"string","minLength":1,"maxLength":4000},"intent":{"type":"string","maxLength":2000},"category":{"type":"string","enum":["bug","feature_request","docs","other"],"default":"other"},"request_id":{"type":"string","maxLength":256},"agent":{"type":"object","properties":{"name":{"type":"string","maxLength":128},"model":{"type":"string","maxLength":128}},"additionalProperties":false}},"required":["message"],"additionalProperties":false}}}}}},"\/screenshot":{"post":{"operationId":"screenshot","summary":"Render a web page as a PNG, JPEG, or WebP image","description":"Render a public webpage as a PNG, JPEG, or WebP image. Use it when appearance is the point \u2014 layout checks, visual previews, or content that does not survive text extraction \u2014 and control the viewport, when the page counts as ready, and whether to capture the full document or a single element by CSS selector. When you want the page's text instead, call POST \/crawl. Costs 2 credits per request.","tags":["Screenshot"],"x-codeSamples":[{"id":"js","lang":"ts","label":"TypeScript SDK","source":"import { writeFile } from 'node:fs\/promises';\nimport { Search1API } from '@search1api\/client';\n\nconst client = new Search1API();\nconst screenshot = await client.screenshot('https:\/\/example.com', {\n  format: 'png',\n  fullPage: true,\n});\n\nawait writeFile('screenshot.png', screenshot.data);"},{"id":"python","lang":"python","label":"Python SDK","source":"from pathlib import Path\nfrom search1api import Search1API\n\nclient = Search1API()\nscreenshot = client.screenshot(\n    \"https:\/\/example.com\",\n    format=\"png\",\n    full_page=True,\n)\n\nPath(\"screenshot.png\").write_bytes(screenshot[\"data\"])"}],"responses":{"200":{"description":"Successful response","content":{"image\/png":{"schema":{"type":"string","format":"binary"}},"image\/jpeg":{"schema":{"type":"string","format":"binary"}},"image\/webp":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"402":{"description":"Payment Required","content":{"application\/problem+json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"502":{"description":"Bad Gateway","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"503":{"description":"Service Unavailable","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"504":{"description":"Gateway Timeout","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}}},"security":[{"bearerAuth":[]}],"x-payment-info":{"protocols":["mpp"],"pricingMode":"fixed","price":"0.006"},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri","maxLength":4096},"format":{"type":"string","enum":["png","jpeg","webp"],"default":"png"},"full_page":{"type":"boolean","default":false},"viewport":{"type":"object","properties":{"width":{"type":"integer","minimum":320,"maximum":2560,"default":1440},"height":{"type":"integer","minimum":200,"maximum":1440,"default":900},"device_scale_factor":{"type":"number","minimum":1,"maximum":2,"default":1}},"additionalProperties":false,"default":{"width":1440,"height":900,"device_scale_factor":1}},"wait_until":{"type":"string","enum":["domcontentloaded","load","networkidle"],"default":"load"},"wait_for_selector":{"type":"string","minLength":1,"maxLength":500},"selector":{"type":"string","minLength":1,"maxLength":500},"delay_ms":{"type":"integer","minimum":0,"maximum":5000,"default":0},"timeout_ms":{"type":"integer","minimum":1000,"maximum":30000,"default":20000},"quality":{"type":"integer","minimum":1,"maximum":100},"omit_background":{"type":"boolean","default":false},"color_scheme":{"type":"string","enum":["light","dark"],"default":"light"},"animations":{"type":"string","enum":["disabled","allow"],"default":"disabled"}},"required":["url"],"additionalProperties":false},"examples":{"fullPage":{"summary":"Full-page PNG","description":"Capture the complete document after the load event and a short stabilization delay.","value":{"url":"https:\/\/s1.dev","format":"png","full_page":true,"wait_until":"load","delay_ms":1000,"timeout_ms":30000}},"element":{"summary":"Page element as WebP","description":"Wait for one visible element and return only that element as a compressed WebP image.","value":{"url":"https:\/\/example.com","format":"webp","selector":"h1","wait_for_selector":"h1","quality":85}},"darkViewport":{"summary":"Dark-mode viewport","description":"Capture a high-density 1280 \u00d7 720 viewport with dark color-scheme emulation.","value":{"url":"https:\/\/s1.dev","format":"jpeg","viewport":{"width":1280,"height":720,"device_scale_factor":2},"color_scheme":"dark","quality":85}}}}}}}},"\/search":{"post":{"operationId":"search","summary":"Search the web using multiple search engines","description":"Search the live public web when the answer depends on current information, sources, or research a model's training data cannot cover. Returns ranked results with id, title, URL, snippet, and `published_date` (ISO 8601, when the engine exposes one) across 13+ engines, with optional images. Set `crawl_results` to pull the top N result pages in the same call \u2014 each crawled page is billed as an additional crawl \u2014 or pass a result URL to POST \/crawl separately. Yuanbao supports time filters and either one included exact hostname or up to five excluded hostnames. It rejects language and image filters; page > 1 is available only without time or site filters. Costs 1 credit per request.","tags":["Search"],"x-codeSamples":[{"id":"js","lang":"ts","label":"TypeScript SDK","source":"import { Search1API } from '@search1api\/client';\n\nconst client = new Search1API();\nconst response = await client.search('latest AI agent frameworks', {\n  maxResults: 10,\n});\n\nconsole.log(response.results);"},{"id":"python","lang":"python","label":"Python SDK","source":"from search1api import Search1API\n\nclient = Search1API()\nresponse = client.search(\n    \"latest AI agent frameworks\",\n    max_results=10,\n)\n\nprint(response[\"results\"])"}],"responses":{"200":{"description":"Successful response","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/SearchResponse"},{"$ref":"#\/components\/schemas\/SearchBatchResponse"}]}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"402":{"description":"Payment Required","content":{"application\/problem+json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"502":{"description":"Bad Gateway","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}}},"security":[{"bearerAuth":[]}],"x-payment-info":{"protocols":["mpp"],"pricingMode":"fixed","price":"0.003"},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"anyOf":[{"type":"object","properties":{"query":{"type":"string","minLength":1},"search_service":{"type":"string","enum":["google","bing","bingcn","duckduckgo","yahoo","yandex","youtube","x","reddit","github","arxiv","wechat","bilibili","imdb","wikipedia","grokipedia","","baidu","360","quark","yuanbao"]},"max_results":{"type":"integer","minimum":1,"maximum":50,"default":5},"page":{"type":"integer","minimum":1,"maximum":100,"default":1},"crawl_results":{"type":"integer","minimum":0,"maximum":50,"default":0},"image":{"type":"boolean","default":false},"include_sites":{"type":"array","items":{"type":"string"},"default":[]},"exclude_sites":{"type":"array","items":{"type":"string"},"default":[]},"language":{"type":"string"},"time_range":{"type":"string","enum":["day","week","month","year",""]}},"required":["query"],"additionalProperties":false},{"type":"array","items":{"type":"object","properties":{"query":{"type":"string","minLength":1},"search_service":{"type":"string","enum":["google","bing","bingcn","duckduckgo","yahoo","yandex","youtube","x","reddit","github","arxiv","wechat","bilibili","imdb","wikipedia","grokipedia","","baidu","360","quark","yuanbao"]},"max_results":{"type":"integer","minimum":1,"maximum":50,"default":5},"page":{"type":"integer","minimum":1,"maximum":100,"default":1},"crawl_results":{"type":"integer","minimum":0,"maximum":50,"default":0},"image":{"type":"boolean","default":false},"include_sites":{"type":"array","items":{"type":"string"},"default":[]},"exclude_sites":{"type":"array","items":{"type":"string"},"default":[]},"language":{"type":"string"},"time_range":{"type":"string","enum":["day","week","month","year",""]}},"required":["query"],"additionalProperties":false},"minItems":1,"maxItems":50}]}}}}}},"\/news":{"post":{"operationId":"news","summary":"Search news articles across multiple sources","description":"Search recent news when the question is about events, announcements, or coverage rather than reference material. Returns articles from verified publishers with title, URL, snippet, `published_date` (ISO 8601, when known), and optional full page content, filterable by site, language, and time range. For questions that are not time-sensitive, prefer POST \/search. Costs 1 credit per request.","tags":["Search"],"x-codeSamples":[{"id":"js","lang":"ts","label":"TypeScript SDK","source":"import { Search1API } from '@search1api\/client';\n\nconst client = new Search1API();\nconst response = await client.news('latest AI industry news', {\n  maxResults: 10,\n});\n\nconsole.log(response.results);"},{"id":"python","lang":"python","label":"Python SDK","source":"from search1api import Search1API\n\nclient = Search1API()\nresponse = client.news(\n    \"latest AI industry news\",\n    max_results=10,\n)\n\nprint(response[\"results\"])"}],"responses":{"200":{"description":"Successful response","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/NewsResponse"},{"$ref":"#\/components\/schemas\/NewsBatchResponse"}]}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"402":{"description":"Payment Required","content":{"application\/problem+json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"502":{"description":"Bad Gateway","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}}},"security":[{"bearerAuth":[]}],"x-payment-info":{"protocols":["mpp"],"pricingMode":"fixed","price":"0.003"},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"anyOf":[{"type":"object","properties":{"query":{"type":"string","minLength":1},"search_service":{"type":"string","enum":["google","bing","duckduckgo","yahoo","hackernews","","reuters"]},"max_results":{"type":"integer","minimum":1,"maximum":50,"default":5},"crawl_results":{"type":"integer","minimum":0,"maximum":50,"default":0},"image":{"type":"boolean","default":false},"include_sites":{"type":"array","items":{"type":"string"},"default":[]},"exclude_sites":{"type":"array","items":{"type":"string"},"default":[]},"language":{"type":"string"},"time_range":{"type":"string","enum":["day","week","month","year",""]}},"required":["query"],"additionalProperties":false},{"type":"array","items":{"type":"object","properties":{"query":{"type":"string","minLength":1},"search_service":{"type":"string","enum":["google","bing","duckduckgo","yahoo","hackernews","","reuters"]},"max_results":{"type":"integer","minimum":1,"maximum":50,"default":5},"crawl_results":{"type":"integer","minimum":0,"maximum":50,"default":0},"image":{"type":"boolean","default":false},"include_sites":{"type":"array","items":{"type":"string"},"default":[]},"exclude_sites":{"type":"array","items":{"type":"string"},"default":[]},"language":{"type":"string"},"time_range":{"type":"string","enum":["day","week","month","year",""]}},"required":["query"],"additionalProperties":false},"minItems":1,"maxItems":50}]}}}}}},"\/ask":{"post":{"operationId":"ask","summary":"Search the engines a natural-language request calls for","description":"Agentic search. Describe what you are looking for in plain language and let a decision model (currently TypeSafe Jev) decide where to look. It picks up to five engines (web search, Hacker News, Reddit, GitHub, X, arXiv, Wikipedia, IMDb, WeChat, YouTube), rewrites the request into search keywords, infers a publication window from phrases such as \"this week\", searches the engines in parallel, and returns only the results judged relevant, merged and ranked, so agents read fewer off-topic results. The request takes only `query`; engines, keywords, and the window are always chosen by the model, and the response reports them in `intent`. Use POST \/search instead when you already know the engine and keywords and want its raw ranking. Costs 5 credits per request.","tags":["Search"],"responses":{"200":{"description":"Successful response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AskResponse"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"402":{"description":"Payment Required","content":{"application\/problem+json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"502":{"description":"Bad Gateway","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","properties":{"query":{"type":"string","minLength":1,"maxLength":500,"description":"What you are looking for, in natural language. Platform hints (\"on Reddit\", \"papers\") and time hints (\"this week\") steer engine and time-range selection."}},"required":["query"],"additionalProperties":false},"examples":{"community":{"summary":"Let Search1API choose","description":"Engines and the time window are inferred from the wording: community discussion, within the past month.","value":{"query":"What are developers saying about Bun 1.3 this month?"}}}}}}}},"\/crawl":{"post":{"operationId":"crawl","summary":"Crawl a URL and extract its content","description":"Fetch one public URL and return its readable title and body as clean text, with navigation, boilerplate, and scripts stripped. Use it on a URL the user supplied or one returned by POST \/search. To ingest a whole site rather than a single page, use POST \/deepcrawl. Send an array of request objects to crawl several URLs in one call: the response is an array containing only the URLs that succeeded, in no guaranteed order, so match items back to your input by `crawlParameters.url`; failed URLs are omitted and not charged. `enable_fallback` is accepted as a snake_case alias of `enableFallback`. Costs 1 credit per request.","tags":["Crawl"],"x-codeSamples":[{"id":"js","lang":"ts","label":"TypeScript SDK","source":"import { Search1API } from '@search1api\/client';\n\nconst client = new Search1API();\nconst response = await client.crawl('https:\/\/example.com');\n\nconsole.log(response);"},{"id":"python","lang":"python","label":"Python SDK","source":"from search1api import Search1API\n\nclient = Search1API()\nresponse = client.crawl(\"https:\/\/example.com\")\n\nprint(response)"}],"responses":{"200":{"description":"Successful response","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/CrawlResponse"},{"type":"array","items":{"$ref":"#\/components\/schemas\/CrawlResponse"}}]}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"402":{"description":"Payment Required","content":{"application\/problem+json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"410":{"description":"Gone","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"502":{"description":"Bad Gateway","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}}},"security":[{"bearerAuth":[]}],"x-payment-info":{"protocols":["mpp"],"pricingMode":"fixed","price":"0.003"},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"anyOf":[{"type":"object","properties":{"url":{"type":"string","format":"uri","minLength":1},"enableFallback":{"type":"boolean","default":true}},"required":["url"],"additionalProperties":false},{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","format":"uri","minLength":1},"enableFallback":{"type":"boolean","default":true}},"required":["url"],"additionalProperties":false},"minItems":1,"maxItems":50}]}}}}}},"\/sitemap":{"post":{"operationId":"sitemap","summary":"Extract sitemap URLs from a website","description":"Discover the public URLs of a site when you need to know which pages exist before fetching any of them \u2014 scoping a crawl, auditing coverage, or locating a section. With the default `type: \"sitemap\"` this reads the site's own sitemap: `Sitemap:` directives in robots.txt first, then the conventional paths, following sitemap index files and gzipped sitemaps, and returns the URLs it declares for the requested host. A site that publishes no sitemap falls back to the links found on the given page. Use `type: \"all\"` to skip the sitemap and get every link on that one page instead, including links to other hosts. Neither mode fetches page content. Costs 1 credit per request.","tags":["Crawl"],"x-codeSamples":[{"id":"js","lang":"ts","label":"TypeScript SDK","source":"import { Search1API } from '@search1api\/client';\n\nconst client = new Search1API();\nconst response = await client.sitemap('https:\/\/example.com');\n\nconsole.log(response);"},{"id":"python","lang":"python","label":"Python SDK","source":"from search1api import Search1API\n\nclient = Search1API()\nresponse = client.sitemap(\"https:\/\/example.com\")\n\nprint(response)"}],"responses":{"200":{"description":"Successful response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/SitemapResponse"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"402":{"description":"Payment Required","content":{"application\/problem+json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"502":{"description":"Bad Gateway","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}}},"security":[{"bearerAuth":[]}],"x-payment-info":{"protocols":["mpp"],"pricingMode":"fixed","price":"0.003"},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"type":{"type":"string","enum":["sitemap","all"]}},"required":["url"],"additionalProperties":false}}}}}},"\/trending":{"post":{"operationId":"trending","summary":"Get trending topics from various platforms","description":"List what is currently popular on a supported platform, such as GitHub repositories or Hacker News stories, when the user asks what is trending or new right now. This reads a platform's own live ranking rather than performing a query \u2014 for topic searches use POST \/search. Costs 1 credit per request.","tags":["Search"],"x-codeSamples":[{"id":"js","lang":"ts","label":"TypeScript SDK","source":"import { Search1API } from '@search1api\/client';\n\nconst client = new Search1API();\nconst response = await client.trending('github', {\n  maxResults: 10,\n});\n\nconsole.log(response);"},{"id":"python","lang":"python","label":"Python SDK","source":"from search1api import Search1API\n\nclient = Search1API()\nresponse = client.trending(\"github\", max_results=10)\n\nprint(response)"}],"responses":{"200":{"description":"Successful response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/TrendingResponse"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"402":{"description":"Payment Required","content":{"application\/problem+json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"502":{"description":"Bad Gateway","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}}},"security":[{"bearerAuth":[]}],"x-payment-info":{"protocols":["mpp"],"pricingMode":"fixed","price":"0.003"},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","properties":{"search_service":{"type":"string","minLength":1},"max_results":{"type":"integer","minimum":1}},"required":["search_service"],"additionalProperties":false}}}}}},"\/extract":{"post":{"operationId":"extract","summary":"Extract structured content from a URL","description":"Pull structured data out of a single webpage using a natural-language prompt and a JSON schema you supply; both are required, and a request missing either returns 422 with the fields to fix. Use it when you need specific fields \u2014 prices, specifications, contact details \u2014 rather than the whole document; when you want the full text, use POST \/crawl. Costs 10 credits per request.","tags":["Crawl"],"x-codeSamples":[{"id":"js","lang":"ts","label":"TypeScript SDK","source":"import { Search1API } from '@search1api\/client';\n\nconst client = new Search1API();\nconst response = await client.extract('https:\/\/example.com', {\n  prompt: 'Extract the page title and description.',\n  responseFormat: {\n    type: 'json_schema',\n    json_schema: {\n      type: 'object',\n      properties: {\n        title: { type: 'string' },\n        description: { type: 'string' },\n      },\n    },\n  },\n});\n\nconsole.log(response.results);"},{"id":"python","lang":"python","label":"Python SDK","source":"from search1api import Search1API\n\nclient = Search1API()\nresponse = client.extract(\n    \"https:\/\/example.com\",\n    prompt=\"Extract the page title and description.\",\n    response_format={\n        \"type\": \"json_schema\",\n        \"json_schema\": {\n            \"type\": \"object\",\n            \"properties\": {\n                \"title\": {\"type\": \"string\"},\n                \"description\": {\"type\": \"string\"},\n            },\n        },\n    },\n)\n\nprint(response[\"results\"])"}],"responses":{"200":{"description":"Successful response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ExtractResponse"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"402":{"description":"Payment Required","content":{"application\/problem+json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"410":{"description":"Gone","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"502":{"description":"Bad Gateway","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}}},"security":[{"bearerAuth":[]}],"x-payment-info":{"protocols":["mpp"],"pricingMode":"fixed","price":"0.03"},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"The webpage to extract data from."},"prompt":{"type":"string","minLength":1,"description":"Natural-language instructions: what to extract from the page, e.g. \"Extract the product name and price.\""},"response_format":{"type":"object","properties":{"type":{"type":"string","enum":["json_schema"]},"json_schema":{"type":"object","additionalProperties":{},"description":"The JSON Schema the result must follow, e.g. {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"string\"}}}. Pass the schema itself, not an object wrapping it under name\/schema."}},"required":["type","json_schema"],"additionalProperties":false,"description":"Shape of the result. Wrap your JSON Schema as {\"type\": \"json_schema\", \"json_schema\": <schema>}."}},"required":["url","prompt","response_format"],"additionalProperties":false},"examples":{"pageSummary":{"summary":"Title and description","description":"Wrap the JSON Schema of the result as {\"type\": \"json_schema\", \"json_schema\": <schema>}.","value":{"url":"https:\/\/example.com","prompt":"Extract the page title and description.","response_format":{"type":"json_schema","json_schema":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"}},"required":["title"]}}}}}}}}}},"\/deepcrawl":{"post":{"operationId":"deepcrawl","summary":"Deep crawl a website across multiple pages","description":"Start an asynchronous crawl of an entire site and package the pages as documents. Use it for whole-site ingestion; a single page is POST \/crawl. Narrow the crawl with include_paths\/exclude_paths and cap it with max_pages; a task costs the same regardless of page count. Set format to \"json\" to get the pages inline in the status response instead of a ZIP. The call returns a task id immediately rather than the result \u2014 poll GET \/deepcrawl\/status\/{taskId} until the task reports completion. Costs 20 credits per request.","tags":["Crawl"],"x-codeSamples":[{"id":"js","lang":"ts","label":"TypeScript SDK","source":"import { Search1API } from '@search1api\/client';\n\nconst client = new Search1API();\nconst task = await client.startDeepcrawl('https:\/\/example.com', {\n  type: 'all',\n});\n\nconsole.log(task.taskId);"},{"id":"python","lang":"python","label":"Python SDK","source":"from search1api import Search1API\n\nclient = Search1API()\ntask = client.start_deepcrawl(\"https:\/\/example.com\", type=\"all\")\n\nprint(task[\"taskId\"])"}],"responses":{"202":{"description":"Successful response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DeepcrawlAcceptedResponse"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"402":{"description":"Payment Required","content":{"application\/problem+json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"502":{"description":"Bad Gateway","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}}},"security":[{"bearerAuth":[]}],"x-payment-info":{"protocols":["mpp"],"pricingMode":"fixed","price":"0.06"},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"Absolute http or https URL to start from, e.g. https:\/\/example.com. A bare domain without the scheme is rejected with 400."},"type":{"type":"string","enum":["sitemap","all"]},"max_pages":{"type":"integer","minimum":1,"maximum":1000,"description":"Maximum number of pages to crawl, 1\u20131000; default 1000. Applied after include_paths\/exclude_paths, in discovery order."},"include_paths":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"maxItems":20,"description":"Only crawl URLs whose path matches one of these rules (up to 20). A rule without * is a path prefix on segment boundaries: \"\/docs\" matches \/docs and \/docs\/api but not \/docsearch. A rule with * must match the whole path, and * matches any characters including \/, e.g. \"\/blog\/*\". Empty or omitted means every discovered URL."},"exclude_paths":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"maxItems":20,"description":"Skip URLs whose path matches one of these rules (up to 20), using the same syntax as include_paths. Exclusion wins over inclusion."},"format":{"type":"string","enum":["zip","json"],"description":"Result format; default \"zip\". \"zip\" packages the pages as Markdown files behind zipUrl. \"json\" returns pages: [{url, title, content}] in the completed status response, plus resultUrl for the same JSON file."}},"required":["url"],"additionalProperties":false},"examples":{"wholeSite":{"summary":"Whole site","description":"Crawl every URL the site lists in its sitemap, up to 1000 pages.","value":{"url":"https:\/\/example.com"}},"docsSection":{"summary":"One section, capped","description":"Crawl at most 20 pages under \/docs\/, skipping the changelog.","value":{"url":"https:\/\/hono.dev\/docs\/","max_pages":20,"include_paths":["\/docs\/"],"exclude_paths":["\/docs\/changelog"]}},"jsonPages":{"summary":"Pages as JSON","description":"Return url, title and Markdown content for each page in the status response instead of a ZIP.","value":{"url":"https:\/\/hono.dev\/docs\/","max_pages":20,"format":"json"}}}}}}}},"\/deepcrawl\/status\/{taskId}":{"get":{"operationId":"deepcrawlStatus","summary":"Check deepcrawl task status","description":"Poll a deepcrawl task started by POST \/deepcrawl. Returns the task's current state and, once it finishes, page counts (stats), failed URLs, and the result: zipUrl for format=zip, or the pages inline plus resultUrl for format=json. Safe to call repeatedly. Free to call.","tags":["Crawl"],"x-codeSamples":[{"id":"js","lang":"ts","label":"TypeScript SDK","source":"import { Search1API } from '@search1api\/client';\n\nconst client = new Search1API();\nconst status = await client.getDeepcrawlStatus('task_id');\n\nconsole.log(status);"},{"id":"python","lang":"python","label":"Python SDK","source":"from search1api import Search1API\n\nclient = Search1API()\nstatus = client.get_deepcrawl_status(\"task_id\")\n\nprint(status)"}],"responses":{"200":{"description":"Successful response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DeepcrawlStatusResponse"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"502":{"description":"Bad Gateway","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}}},"security":[{"bearerAuth":[]}],"parameters":[{"in":"path","name":"taskId","required":true,"schema":{"type":"string","minLength":1}}]}},"\/health":{"get":{"operationId":"health","summary":"Health check","description":"Report whether the API is serving traffic. Takes no credentials, so use it for uptime and readiness checks \u2014 it will not tell you whether an API key is valid; call GET \/usage for that. Free to call.","tags":["System"],"x-codeSamples":[{"id":"js","lang":"ts","label":"TypeScript SDK","source":"import { Search1API } from '@search1api\/client';\n\nconst client = new Search1API();\nconst health = await client.health();\n\nconsole.log(health);"},{"id":"python","lang":"python","label":"Python SDK","source":"from search1api import Search1API\n\nclient = Search1API()\nhealth = client.health()\n\nprint(health)"}],"responses":{"200":{"description":"Successful response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HealthResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}}}}},"\/usage":{"get":{"operationId":"usage","summary":"Get API key usage statistics","description":"Return the remaining credit balance for the authenticated account. Use it to check headroom before starting an expensive job such as a deepcrawl, or to confirm an API key works. Free to call.","tags":["Account"],"x-codeSamples":[{"id":"js","lang":"ts","label":"TypeScript SDK","source":"import { Search1API } from '@search1api\/client';\n\nconst client = new Search1API();\nconst usage = await client.usage('month');\n\nconsole.log(usage);"},{"id":"python","lang":"python","label":"Python SDK","source":"from search1api import Search1API\n\nclient = Search1API()\nusage = client.usage(\"month\")\n\nprint(usage)"}],"responses":{"200":{"description":"Successful response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UsageResponse"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}}},"security":[{"bearerAuth":[]}],"parameters":[{"in":"query","name":"period","required":false,"schema":{"type":"string","enum":["day","week","month","year"]}}]}}}}