Scavio provides a REST API that you can call from any JavaScript application. Send a POST request with your query, get structured JSON back. Here is how to use every platform.
Google Search
Web search with knowledge graph, PAA, and AI overviews.
const API_KEY = "your_scavio_api_key";
const response = await fetch("https://api.scavio.dev/api/v1/search", {
method: "POST",
headers: {
"x-api-key": API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({ query }),
});
const data = await response.json();
for (const result of data.organic_results?.slice(0, 5) ?? []) {
console.log(`${result.position}. ${result.title}`);
console.log(` ${result.link}\n`);
}Amazon Search
Product search with prices, ratings, and reviews.
const API_KEY = "your_scavio_api_key";
const response = await fetch("https://api.scavio.dev/api/v1/amazon/search", {
method: "POST",
headers: {
"x-api-key": API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({ query, marketplace: "us" }),
});
const data = await response.json();
for (const product of data.products?.slice(0, 5) ?? []) {
console.log(`${product.title} — ${product.price} (${product.rating}⭐)`);
}Reddit Search
Community, posts & threaded comments from any subreddit.
const API_KEY = "your_scavio_api_key";
const response = await fetch("https://api.scavio.dev/api/v1/reddit/search", {
method: "POST",
headers: {
"x-api-key": API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({ query, sort: "new" }),
});
const data = await response.json();
for (const post of data.data?.posts?.slice(0, 5) ?? []) {
console.log(`r/${post.subreddit} — ${post.title}`);
console.log(` by u/${post.author}`);
}YouTube Search
Video search with transcripts and metadata.
const API_KEY = "your_scavio_api_key";
const response = await fetch("https://api.scavio.dev/api/v1/youtube/search", {
method: "POST",
headers: {
"x-api-key": API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({ query }),
});
const data = await response.json();
for (const video of data.videos?.slice(0, 5) ?? []) {
console.log(`${video.title} — ${video.views} views`);
}Walmart Search
Product search with pricing and fulfillment data.
const API_KEY = "your_scavio_api_key";
const response = await fetch("https://api.scavio.dev/api/v1/walmart/search", {
method: "POST",
headers: {
"x-api-key": API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({ query }),
});
const data = await response.json();
for (const product of data.products?.slice(0, 5) ?? []) {
console.log(`${product.title} — ${product.price} (${product.rating}⭐)`);
}Error Handling
The API returns standard HTTP status codes. Check for 200 (success), 401 (invalid API key), 429 (rate limit), and 500 (server error). The response body always includes a descriptive error message.
Next Steps
- Quickstart guide — get your API key and make your first request
- Rate limits — understand credit usage and limits
- Error reference — full list of error codes and troubleshooting