Search the web
Search the web and get structured results. Returns ranked results with titles, snippets, and URLs. Supports location/language targeting, domain include/exclude filters, date range filters, and search types (web, news, research_paper).
Example code
// Using @orth/sdk - The simplest way to call APIs
// Install: npm install @orth/sdk
import Orthogonal from "@orth/sdk";
const orthogonal = new Orthogonal({
apiKey: process.env.ORTHOGONAL_API_KEY,
});
const output = await orthogonal.run({
api: "tinyfish/search",
path: "/",
query: {
"query": "example"
}
});
console.log(output);Query parameters
Search query (1-2000 chars)
Why this search is being run. Used to better rank results against your intent.
Country code for geo-targeted results (e.g. US, GB, DE)
Language code for result language (e.g. en, es, de)
Comma-separated list of domains to restrict results to
Comma-separated list of domains to exclude from results
Type of search: web (default), news, or research_paper
Return results after this date (YYYY-MM-DD)
Return results before this date (YYYY-MM-DD)
Return results from the past N minutes (1-5256000)
Min publication year for research_paper type (0-9999)
Max publication year for research_paper type (0-9999)
Page number for pagination, starting from 0 (max 10)
When true, results include thumbnail_url when available