Python

Search API for Python Developers

Search Google, Amazon, YouTube, Walmart, and Reddit from Python using requests. Structured JSON responses. Free tier included.

Scavio provides a REST API that you can call from any Python 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.

Python
import requests

API_KEY = "your_scavio_api_key"

response = requests.post(
    "https://api.scavio.dev/api/v1/search",
    headers={
        "x-api-key": API_KEY,
        "Content-Type": "application/json",
    },
    json={"query": query},
)

data = response.json()
for result in data.get("organic_results", [])[:5]:
    print(f"{result['position']}. {result['title']}")
    print(f"   {result['link']}\n")

Amazon Search

Product search with prices, ratings, and reviews.

Python
import requests

API_KEY = "your_scavio_api_key"

response = requests.post(
    "https://api.scavio.dev/api/v1/amazon/search",
    headers={
        "x-api-key": API_KEY,
        "Content-Type": "application/json",
    },
    json={"query": query, "marketplace": "us"},
)

data = response.json()
for product in data.get("products", [])[:5]:
    print(f"{product['title']} — {product.get('price', 'N/A')} ({product.get('rating', 'N/A')}⭐)")

Reddit Search

Community, posts & threaded comments from any subreddit.

Python
import requests

API_KEY = "your_scavio_api_key"

response = requests.post(
    "https://api.scavio.dev/api/v1/reddit/search",
    headers={
        "x-api-key": API_KEY,
        "Content-Type": "application/json",
    },
    json={"query": query, "sort": "new"},
)

data = response.json()
for post in data["data"].get("posts", [])[:5]:
    print(f"r/{post['subreddit']} — {post['title']}")
    print(f"   by u/{post['author']}")

YouTube Search

Video search with transcripts and metadata.

Python
import requests

API_KEY = "your_scavio_api_key"

response = requests.post(
    "https://api.scavio.dev/api/v1/youtube/search",
    headers={
        "x-api-key": API_KEY,
        "Content-Type": "application/json",
    },
    json={"query": query},
)

data = response.json()
for video in data.get("videos", [])[:5]:
    print(f"{video['title']} — {video.get('views', 'N/A')} views")

Walmart Search

Product search with pricing and fulfillment data.

Python
import requests

API_KEY = "your_scavio_api_key"

response = requests.post(
    "https://api.scavio.dev/api/v1/walmart/search",
    headers={
        "x-api-key": API_KEY,
        "Content-Type": "application/json",
    },
    json={"query": query},
)

data = response.json()
for product in data.get("products", [])[:5]:
    print(f"{product['title']} — {product.get('price', 'N/A')} ({product.get('rating', 'N/A')}⭐)")

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

Frequently Asked Questions

Send a POST request to the Scavio API endpoint using requests. Include your API key in the x-api-key header and your search query in the JSON body. The API returns structured JSON that you can parse directly.

Yes, install requests with: pip install requests. After that, you can make API calls to Scavio.

Scavio supports Google (web, news, images, shopping, maps), Amazon (12 marketplaces), YouTube (search, transcripts, metadata), and Walmart. All platforms use the same authentication and return structured JSON.

Yes. For LangChain users, install langchain-scavio for a native integration. For direct API access, use the requests library — no SDK needed.

Check the HTTP status code: 200 means success, 401 means invalid API key, 429 means rate limit exceeded, and 500 means a server error. The response body includes an error message with details. See the error handling example above.

Start Building with Python

Get your free Scavio API key and search Google, Amazon, YouTube, Walmart, and Reddit from Python. 500 free credits/month.