Skip to main content

anakin-adk

Google ADK tools for web scraping, search, and research — powered by Anakin.

Give your Gemini agents the ability to scrape websites, search the web, and run deep research — all through a simple toolkit that plugs into Google's Agent Development Kit.

Installation

pip install anakin-adk

You also need the Anakin CLI installed and authenticated:

pip install anakin-cli
anakin login --api-key "ask_your-key-here"

Get your API key by signing up at anakin.io/signup — then grab the key (starts with ask_) from your dashboard. Verify with:

anakin status

Quick start

from anakin_adk import AnakinToolkit
from google.adk.agents import Agent

agent = Agent(
    model="gemini-2.5-pro",
    name="web_researcher",
    instruction="Help users extract data from the web",
    tools=AnakinToolkit().get_tools(),
)

Run with the ADK dev UI:

adk web

How it works

Your ADK Agent (Gemini)
        │
        ▼
   anakin-adk          ← this package: exposes tools to ADK
        │
        ▼
   anakin-cli           ← local CLI that talks to the Anakin API
        │
        ▼
   Anakin Cloud API     ← handles scraping, search, and research
  1. Your Gemini agent decides to call a tool (e.g. scrape_website).
  2. anakin-adk translates the call into an anakin-cli command.
  3. The CLI sends the request to the Anakin cloud API, which handles proxy rotation, browser rendering, and anti-detection.
  4. Results come back as clean markdown or structured JSON, ready for the agent to use.

Available tools

Tool Description Speed
scrape_website Scrape a single URL and return clean markdown or structured JSON. Supports headless browser for JS-heavy sites, geo-targeted proxies (207 countries), and AI extraction. 3–15s
batch_scrape Scrape up to 10 URLs at once and return combined results. 5–30s
search_web AI-powered web search returning titles, URLs, and snippets with citations. Instant
deep_research Autonomous multi-stage research — searches, scrapes, and synthesizes a comprehensive report. 1–5 min

Using individual tools

You can pick only the tools you need:

from anakin_adk import ScrapeWebsiteTool, SearchWebTool
from google.adk.agents import Agent

agent = Agent(
    model="gemini-2.5-pro",
    name="search_and_scrape",
    instruction="Search the web and scrape relevant pages",
    tools=[SearchWebTool(), ScrapeWebsiteTool()],
)

Examples

See the examples/ directory:

  • basic_scraping.py — Simple scrape agent
  • research_agent.py — Deep research agent
  • search_and_scrape.py — Multi-step: search then scrape

Troubleshooting

Error Cause
401 Unauthorized Invalid or missing API key. Run anakin login --api-key "ask_..."
402 Payment Required Free tier exceeded — upgrade your plan at anakin.io
429 Too Many Requests Rate limited — slow down or upgrade
anakin: command not found CLI not installed. Run pip install anakin-cli

For JS-heavy sites that return empty content, try setting use_browser=true in the scrape_website tool.

Check your auth status anytime with anakin status.

Development

pip install -e ".[dev]"
pytest tests/ -v
ruff check anakin_adk/

License

MIT

Metadata

Release files for anakin-adk 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for anakin-adk 0.1.3
File Size Uploaded Provenance Actions
anakin_adk-0.1.3.tar.gz 84.7 kB Without provenance Details for anakin_adk-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for anakin-adk 0.1.3
File Interpreter ABI Platform Actions
anakin_adk-0.1.3-py3-none-any.whl Python 3 none any Details for anakin_adk-0.1.3-py3-none-any.whl

Total release size: 92.4 kB

Release files / anakin_adk-0.1.3.tar.gz

Download URL anakin_adk-0.1.3.tar.gz
Size 84.7 kB
Tags Source
SHA-256 checksum
How to use checksums
712316e93e68c2fcff5da52dbc038d363f0dfba5c709ad89dcacead2c939f0ba
BLAKE2b-256 checksum
How to use checksums
936c1259808a0aa521a749e19c359eec493c79ab7ca8539fa3d5105504e6643f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.0

Release files / anakin_adk-0.1.3-py3-none-any.whl

Download URL anakin_adk-0.1.3-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d20d3aa180847b8b976a2d62ab397476e2e3edc9f229bbc21dec3c597abec3a2
BLAKE2b-256 checksum
How to use checksums
8d3726608e7dd3763f1a2e0ab7f8d9527bcf0aae76b7127d46d7601066608eff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.0

Security for anakin-adk 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files No provenance

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