Search results
tinyfish/searchReturn ranked search results as structured records.
- call
- $0.002
- TinyFish
- 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.
| Field | Type | Required | Description |
|---|---|---|---|
| query | string | Yes | What to search for. |
| domain_type | string | No | Which corpus to search. |
| location | string | No | Country code to target. |
| language | string | No | Language of the results. |
| recency_minutes | number | No | Only return results published within this many minutes. |
| page | number | No | Zero-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.
