POST /api/brave/serp
Price: 20 credits
Brave web search results page by query, with its answer blocks: the AI answer with its cited sources and follow-up questions, the first page of organic and sponsored results with their product, movie, review, software and article details, the knowledge panel with movie details and ratings, FAQ, news, videos, discussions, recipes, local places and related searches.
One Brave results page for a query, with the AI answer when the page carries one and every result block listed in the schema; a block the page does not show is empty. For more organic results than one page use brave/search.
access-token string requiredtimeout integer — Max scrapping execution timeout (in seconds) (default: 300; min: 20; max: 1500)q string required — Search query (examples: "how to boil an egg"; minLength: 1)country string — Region of the search results (default: "all"; one of: "all", "us", "ar", "au", "at", "be", "br", "ca", "cl", "cn", "de", "dk", "fi", "fr", "gr", "hk", "in", "id", "it", "jp", "kr", "my", "mx", "nl", "nz", "no", "ph", "pl", "pt", "ru", "sa", "sg", "za", "es", "se", "ch", "tw", "tr", "gb")search_lang string nullable — Language of the result content (ISO 639-1) (one of: "en", "az", "id", "ms", "br", "ca", "cs", "cy", "da", "de", "et", "es", "eu", "fr", "gl", "hr", "it", "sw", "lv", "lt", "hu", "nl", "nb", "pl", "pt", "ro", "sq", "sk", "sl", "sr", "fi", "sv", "vi", "tr", "el", "bg", "ru", "uk", "ka", "th", "ko", "zh", "ja")safesearch string — Adult content filtering level (default: "moderate"; one of: "off", "moderate", "strict")tf string — Restrict results to a recency window (default: "any"; one of: "any", "pd", "pw", "pm", "py")@type string (default: "BraveSerp")query string requiredai_answer object nullable@type string (default: "BraveAiAnswer")text string requiredcitations array (default: [])@type string (default: "BraveAiCitation")url string requiredtitle string (default: "")snippet string nullablefavicon string nullablefollow_up_questions array (default: [])results array (default: [])@type string (default: "BraveSerpResult")url string requiredtitle string (default: "")position integer nullabledisplayed_url string nullabledescription string nullabledate string nullablefavicon string nullablethumbnail string nullableis_sponsored boolean (default: false)deep_links array (default: [])@type string (default: "BraveDeepLink")title string requiredurl string requiredpublished_at integer nullablearticle_published_at integer nullablelanguage string nullablesource_name string nullableoriginal_thumbnail string nullableauthors array (default: [])@type string (default: "BravePerson")name string requiredurl string nullableimage string nullablepublisher string nullableorganization string nullableis_accessible_for_free boolean nullableduration integer nullableview_count integer nullableproduct object nullable@type string (default: "BraveProduct")name string requiredurl string nullabledescription string nullableprice number nullablecurrency string nullableoffers array (default: [])gtin12 string nullablegtin13 string nullablerating number nullablebest_rating number nullablereview_count integer nullablethumbnail string nullableoriginal_thumbnail string nullableproducts array (default: [])@type string (default: "BraveProduct")name string requiredurl string nullabledescription string nullableprice number nullablecurrency string nullableoffers array (default: [])gtin12 string nullablegtin13 string nullablerating number nullablebest_rating number nullablereview_count integer nullablethumbnail string nullableoriginal_thumbnail string nullablemovie object nullable@type string (default: "BraveMovie")name string requireddescription string nullableurl string nullablethumbnail string nullableoriginal_thumbnail string nullablereleased_at integer nullableduration integer nullablegenres array (default: [])directors array (default: [])actors array (default: [])rating number nullablebest_rating number nullablereview_count integer nullablereview object nullable@type string (default: "BraveReview")name string requireddescription string nullablerating number nullablebest_rating number nullablethumbnail string nullableoriginal_thumbnail string nullablesoftware object nullable@type string (default: "BraveSoftware")name string requiredprogramming_language string nullablecluster_links array (default: [])@type string (default: "BraveClusterLink")url string requiredtitle string (default: "")description string nullableinfobox object nullable@type string (default: "BraveInfobox")title string requiredcategory string nullabledescription string nullablelong_description string nullableurl string nullablewebsite_url string nullableimage string nullableattributes array (default: [])@type string (default: "BraveInfoboxAttribute")name string requiredvalue string requiredprofiles array (default: [])@type string (default: "BraveInfoboxProfile")name string requiredurl string requiredmovie object nullable@type string (default: "BraveMovie")name string requireddescription string nullableurl string nullablethumbnail string nullableoriginal_thumbnail string nullablereleased_at integer nullableduration integer nullablegenres array (default: [])directors array (default: [])@type string (default: "BravePerson")name string requiredurl string nullableimage string nullableactors array (default: [])@type string (default: "BravePerson")name string requiredurl string nullableimage string nullablerating number nullablebest_rating number nullablereview_count integer nullableratings array (default: [])@type string (default: "BraveRating")source string requiredurl string nullablerating number nullablebest_rating number nullablereview_count integer nullablefaq array (default: [])@type string (default: "BraveFaq")question string requiredanswer string nullabletitle string nullableurl string nullabledomain string nullablenews array (default: [])@type string (default: "BraveSerpNewsArticle")url string requiredposition integer nullabletitle string (default: "")description string nullablepublished_at integer nullabledomain string nullabledisplayed_url string nullablefavicon string nullablethumbnail string nullablesource_name string nullableoriginal_thumbnail string nullablevideos array (default: [])@type string (default: "BraveSerpVideo")url string requiredposition integer nullabletitle string (default: "")description string nullablepublished_at integer nullablefetched_at integer nullableduration integer nullableview_count integer nullablecreator string nullablepublisher string nullableauthor object nullable@type string (default: "BraveVideoAuthor")name string requiredurl string nullabletags array (default: [])domain string nullablefavicon string nullablethumbnail string nullableoriginal_thumbnail string nullablediscussions array (default: [])@type string (default: "BraveDiscussion")url string requiredtitle string (default: "")description string nullableforum_name string nullablequestion string nullabletop_comment string nullablevote_count integer nullableanswer_count integer nullablepublished_at integer nullabledomain string nullablefavicon string nullablerecipes array (default: [])@type string (default: "BraveRecipe")url string requiredtitle string (default: "")description string nullabledomain string nullablefavicon string nullablethumbnail string nullableauthor string nullablecategory string nullablecuisine string nullableingredients string nullableinstructions array (default: [])calories integer nullableservings integer nullabletotal_time string nullableprep_time string nullablecook_time string nullablelocations array (default: [])@type string (default: "BraveSerpPlace")id string requiredname string (default: "")position integer requiredwebsite_url string nullabledescription string nullablelatitude number nullablelongitude number nullableaddress string nullablephone string nullableopening_hours array (default: [])@type string (default: "BravePlaceHours")day string requiredopens string nullablecloses string nullablerating number nullablebest_rating number nullablereview_count integer nullableis_tripadvisor_rating boolean nullableprice_range string nullablecategory string nullablecategories array (default: [])icon_category string nullablecuisines array (default: [])thumbnail string nullableimages array (default: [])utc_offset_minutes integer nullablerelated_queries array (default: [])422 — The request body did not validate Check the fields against this schema. A URN with the wrong prefix is the most common cause.408 — The request ran past its time limit Raise `timeout` in the request body, up to the maximum this endpoint documents. Lowering `count` or turning off the `with_*` flags also helps, because less work finishes sooner.412 — The entity was not found, or a precondition failed Retrying will not help: either the entity does not exist, or the input points at a different one.429 — Too many requests: a rate limit or a usage window is exhausted When the response carries an X-Retry-After header, wait that many seconds and retry: the same number is in the body as `detail.retry_after`, and the limit clears once that window passes. The message in the body names the limit that was hit.500 — Something broke on our side Retrying will not help. If it keeps happening, send us the X-Request-ID from the response headers.529 — Rate limit reached, or the endpoint is overloaded Wait at least 30 seconds, then retry.X-Error — Error message text (present only on error)X-Request-ID — Unique request identifierX-Execution-Time — Execution time in secondsX-Result-Count — How many records the body carries. 0 means an empty result, which is a normal answer and not by itself an error. A non-zero count can come back together with X-Error when the failure happened partway through — read this header and X-Error independently.X-Total-Available-Results — How many records exist for this query, when the endpoint can say. On a `dry_run` request this is the answer and the body is empty. It saturates: the endpoint's documented maximum means 'at least that many', any smaller number is exact.X-Warning — Present when the request body carried keys this endpoint does not document. They were ignored, so any filter you meant to apply through them did not apply. Check the spelling against this schema and retry.X-Retry-After — Seconds to wait before retrying. Present only on 429.