JavaScript SDK Quickstart
The official scavio package is a typed, isomorphic client (Node and modern runtimes) for every Scavio endpoint, with a built-in concurrency limiter and automatic retries.
Install
Bash
npm i scavioAuthenticate
Pass your API key, or set the SCAVIO_API_KEY environment variable and the client picks it up automatically.
JavaScript
import { Scavio } from "scavio";
const client = new Scavio({ apiKey: "sk_live_your_key" }); // or SCAVIO_API_KEYYour first search
client.search() is a shortcut for Google web search. Every platform is also available under its own namespace.
JavaScript
const results = await client.search({ query: "Best AI Model 2026" });
console.log(results.organic_results[0].title);
// Per-platform namespaces
await client.google.search({ query: "Best AI Model 2026" });
await client.youtube.search({ query: "drone footage 4k" });
await client.amazon.search({ query: "wireless earbuds" });
await client.reddit.search({ query: "best vector database" });See the JavaScript SDK Reference for the full client options and every namespace method.