Scavio provides a REST API that you can call from any PHP 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.
<?php
$apiKey = "your_scavio_api_key";
$ch = curl_init("https://api.scavio.dev/api/v1/search");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => [
"x-api-key: $apiKey",
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode(["query" => $query]),
]);
$response = curl_exec($ch);
curl_close($ch);
$data = json_decode($response, true);
print_r($data);Amazon Search
Product search with prices, ratings, and reviews.
<?php
$apiKey = "your_scavio_api_key";
$ch = curl_init("https://api.scavio.dev/api/v1/amazon/search");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => [
"x-api-key: $apiKey",
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode(["query" => $query, "marketplace" => "us"]),
]);
$response = curl_exec($ch);
curl_close($ch);
$data = json_decode($response, true);
print_r($data);Reddit Search
Community, posts & threaded comments from any subreddit.
<?php
$apiKey = "your_scavio_api_key";
$ch = curl_init("https://api.scavio.dev/api/v1/reddit/search");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => [
"x-api-key: $apiKey",
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode(["query" => $query, "sort" => "new"]),
]);
$response = curl_exec($ch);
curl_close($ch);
$data = json_decode($response, true);
print_r($data);YouTube Search
Video search with transcripts and metadata.
<?php
$apiKey = "your_scavio_api_key";
$ch = curl_init("https://api.scavio.dev/api/v1/youtube/search");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => [
"x-api-key: $apiKey",
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode(["query" => $query]),
]);
$response = curl_exec($ch);
curl_close($ch);
$data = json_decode($response, true);
print_r($data);Walmart Search
Product search with pricing and fulfillment data.
<?php
$apiKey = "your_scavio_api_key";
$ch = curl_init("https://api.scavio.dev/api/v1/walmart/search");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => [
"x-api-key: $apiKey",
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode(["query" => $query]),
]);
$response = curl_exec($ch);
curl_close($ch);
$data = json_decode($response, true);
print_r($data);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