Search results

by TinyFish

tinyfish/search

Return ranked search results as structured records.

Billed per
call
Price
$0.002
Provider
TinyFish
Timeout
5 min

Overview

Runs a search and returns ranked results as structured records with position, title, snippet, source, URL, and date, rather than a scraped results page. The corpus is selectable between general web, news, and research papers, and the result shape extends accordingly: news carries a publisher, research carries authors, venue, year, and citation count. Results can be constrained by country and language, limited to or excluded from named domains, and bounded by how recent they are.

The query, a ranked result list with position, title, snippet, URL, and date, and the total available.

Input

These go in the input object of the run request.

FieldTypeRequiredDescription
querystringYesWhat to search for.
domain_typestringNoWhich corpus to search.
locationstringNoCountry code to target.
languagestringNoLanguage of the results.
recency_minutesnumberNoOnly return results published within this many minutes.
pagenumberNoZero-based page number.

Requests up to 1 MB.

Example

A call that works, with your own key.

curl https://gateway.agentsky.dev/v1/run \
  -H "authorization: Bearer $AGENTSKY_API_KEY" \
  -H "content-type: application/json" \
  -d '{"provider":"tinyfish","endpoint":"search","input":{"query":"agent gateways","domain_type":"web","location":"US","language":"en"}}'

Pricing

$0.002 per call on the default plan. Every run carries its price in the response.

Questions

Search results — AgentSky