compat (shown as Drop-ins in the dashboard); without it the call answers 403 endpoint_not_allowed.
Tavily
POST /compat/tavily/search takes Tavily’s request body and answers in Tavily’s shape, plus a styne object with the cost, the balance and per-result dates and rights.
Before:
query,max_results(up to 20, billed per started block of 10),search_depth,chunks_per_source,time_range,days,start_date,end_date,include_domainsandexclude_domains,language.search_depthpicks the mode:basic,fast,ultra-fastor none runfast;advancedrunsauto. The mode served is instyne.mode.- Fields Styne does not act on (
topic,include_answer,include_raw_content,include_images,country,exact_match,auto_parameters) are accepted and listed instyne.warnings. Unknown fields are ignored, so newer client options never break a call. - In the answer,
scoreruns from 0 to 1 against the best hit,published_dateis an HTTP date,usage.creditsis the number of blocks billed, andstyneholdscost_usd,balance_usdand per-resultpublished_at,crawled_at,tokensandrights.
Google Custom Search
GET /compat/customsearch/v1 takes the Custom Search JSON API query string and answers in its shape, with a top-level styne object.
Before:
keymay be a query parameter on this path only (also asaccess_tokenoroauth_token), as Custom Search clients send it, or a Bearer header.cxisweb(or empty) for the whole index, or the id of one of your saved site lists, which plays the part of the Custom Search engine. Any othercxanswers400 invalid_cx.- Every
cse.listparameter is served; a parametercse.listdoes not define answers400, as Google does. q,num(1 to 20),start(start + numat most 101),dateRestrict,siteSearchwithsiteSearchFilter,lr: as on Google.exactTermsandexcludeTermsare index filters;orTermsruns one search per term (each requiring its term) and fuses them, billed per search;hqandlowRange..highRangeare appended to the query;fileTypematches the result URL’s extension;linkSitesearches the sites that link to that host (crawl link graph, per site).glandgooglehostprefer a country’s sites;cr=countryXXkeeps only them (|lists fuse one search per country);safe=activeis moderate safe search;rightskeeps openly licensed pages bycc_*licence trait.sort=date(hard sort, dated pages only),date:a,date:d:s,date:r:YYYYMMDD:YYYYMMDD; the order applies to the returned page.searchType=imageanswers Google’s image items from the stored content images of the ranked pages;imgSize(by pixels),imgType,imgColorTypeandimgDominantColor(by format and the image’s alt text, caption and file name) narrow them.byteSizeis 0: Styne stores image addresses and sizes, not image bytes.callbackwraps the answer in JSONP;fieldsgives Google’s partial response (thestyneobject stays);hl,filter,c2coff,prettyPrint,quotaUser,userIp,relatedSiteare checked and accepted.- Like Google,
itemsis left out when nothing matched.
Errors
Errors keep the shape of the API being replaced and add Styne’scode and request_id.
- Tavily:
{"detail": {"error": "<message>"}, "code": "<code>", "request_id": "<id>"}. - Custom Search:
{"error": {"code": <http status>, "message": "...", "status": "INVALID_ARGUMENT", "errors": [{"message": "...", "domain": "global", "reason": "<code>"}], "request_id": "<id>"}}. The Styne code is thereason.
Retry-After are the same as everywhere.