Skip to main content

pydantic-scavio

Real-time Google search for Pydantic AI agents, powered by Scavio — a unified search API for AI agents (Google, YouTube, Amazon, Walmart, Reddit, TikTok, TikTok Shop, Instagram, X, LinkedIn).

Scope: 1 endpoint, by design

This package is a curated subset of the Scavio API, not a wrapper around all of it. It ships exactly 1 of Scavio's 98 endpoints:

Tool Endpoint Platform Credits
scavio_search POST /api/v2/google Google (web search) 1

That is the whole surface, and it stays that way on purpose: one small, well-described tool an agent picks correctly every time beats a hundred it has to disambiguate between.

Credits: 1 credit per search, flat. Nothing here reaches the endpoints that cost more (YouTube transcripts are 8, Instagram is 2-10, a LinkedIn job is 30).

Reaching the rest of the API

Scavio covers 98 live endpoints across ten platforms: Google, YouTube, Amazon, Walmart, Reddit, TikTok, TikTok Shop, Instagram, X, and LinkedIn. Point a Pydantic AI agent at the hosted MCP server for all of them:

from pydantic_ai import Agent
from pydantic_ai.mcp import MCPServerStreamableHTTP

scavio = MCPServerStreamableHTTP(
    'https://mcp.scavio.dev/mcp',
    headers={'x-api-key': 'sk_live_...'},
)

agent = Agent('openai:gpt-5.5', toolsets=[scavio])

That server exposes 100 tools, one per endpoint. See the MCP docs. Alternatively, call the scavio SDK directly — it is already a dependency here — and wrap whichever endpoints you need as your own tools.

Install

pip install pydantic-scavio

Get a free API key (50 one-time signup credits, no monthly refill, no credit card) at dashboard.scavio.dev.

Usage

from pydantic_ai import Agent
from pydantic_scavio import scavio_search_tool

agent = Agent(
    "openai:gpt-5.5",
    tools=[scavio_search_tool(api_key="sk_live_...")],
    system_prompt="Search the web when you need current information.",
)

result = agent.run_sync("What changed in the latest Pydantic AI release?")
print(result.output)

Fixing parameters for the agent

Parameters you pass to the factory are fixed for all searches and hidden from the LLM's tool schema; parameters you leave unset stay available for the LLM to set per call.

# Always search from the US in English; the LLM only controls the query.
tool = scavio_search_tool(api_key="sk_live_...", country_code="us", language="en")

Sharing a client

from scavio import AsyncScavioClient
from pydantic_scavio import scavio_search_tool

client = AsyncScavioClient(api_key="sk_live_...")
tool = scavio_search_tool(client=client)

Result shape

The tool returns list[ScavioSearchResult]:

Field Type Description
position int Rank of the result on the page
title str Result title
url str Result URL
domain str Result domain
content str Snippet
date str | None Publication date when available

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pydantic_scavio-0.1.1.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pydantic_scavio-0.1.1-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file pydantic_scavio-0.1.1.tar.gz.

File metadata

  • Download URL: pydantic_scavio-0.1.1.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.13

File hashes

Hashes for pydantic_scavio-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6309c255e40bfaf883d9077ed87151d6abed72b73fad3f43f41955d7c01457de
MD5 ca4035bfca7d71163a1daaa54bb24889
BLAKE2b-256 a06b6aecc19b85e2ad32ed338109b91e9bfb56b306a7b98638abb5aa7c736ddd

See more details on using hashes here.

File details

Details for the file pydantic_scavio-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pydantic_scavio-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5873f85b835e149402a1904d472911bdd5116bd309741c1a48cb8bc1d9553d3c
MD5 4264bd0b9a2d0243b36c6e09bc3cf258
BLAKE2b-256 820b9206eaa3966ad2c663580d0bc28c5fcd2e91dde3b4e0daec93379a2c2713

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.2

2 files

This release

0.1.1 This release

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page