Skip to main content

Decodo tools for CrewAI

Python License

CrewAI tools for the Decodo Web Scraping API. Give your agents live web pages and search results.

Tool What it does
DecodoWebScraperTool Scrapes any public URL and returns the page as Markdown.
DecodoSearchTool Searches Google or Amazon and returns the parsed results as JSON.
DecodoEcommerceTool Gets product details or search results from Amazon, Walmart or Target as JSON.
DecodoSERPTool Gets Google or Bing results pages, with paging, or a Google AI Mode answer as JSON.

Requirements

  • Python 3.12 or 3.13
  • A Decodo Web Scraping API key

Installation

pip install decodo-crewai

Credentials

Copy your API key from your Web Scraping API subscription on the Decodo dashboard and set it as an environment variable:

export DECODO_API_KEY="<api_key>"

Or pass it to each tool:

DecodoWebScraperTool(api_key="<api_key>")

Usage

from crewai import Agent, Crew, Task

from decodo_crewai import DecodoSearchTool, DecodoWebScraperTool

researcher = Agent(
    role="Researcher",
    goal="Find and summarize up-to-date information from the web",
    backstory="You search the web, read the most relevant pages and report what they say.",
    tools=[DecodoSearchTool(), DecodoWebScraperTool()],
)

task = Task(
    description="Find the three most recent announcements about {topic} and summarize each one.",
    expected_output="Three bullet points, each with a one-sentence summary and the source URL.",
    agent=researcher,
)

crew = Crew(agents=[researcher], tasks=[task])
print(crew.kickoff(inputs={"topic": "solid-state batteries"}))

The tools can also be called directly:

from decodo_crewai import DecodoSearchTool, DecodoWebScraperTool

print(DecodoWebScraperTool().run(url="https://ip.decodo.com"))
print(DecodoSearchTool().run(query="mechanical keyboard", source="amazon"))

For a complete multi-agent example, see the research crew: a researcher, an analyst and a writer that turn any topic into a cited report.

Tools

DecodoWebScraperTool

Arguments the agent fills in:

Argument Type Description
url str Full URL of the page to scrape.
geo str, optional Country to send the request from, e.g. United States.
js_render bool, optional Open the page in a headless browser. Only needed for pages that load content with JavaScript.

Constructor options:

Option Default Description
api_key DECODO_API_KEY Decodo Web Scraping API key.
max_chars 45000 Markdown longer than this is truncated to keep the page within the agent's context.

DecodoSearchTool

Arguments the agent fills in:

Argument Type Description
query str Search query.
source "google" or "amazon", optional google (default) for web results, amazon for product listings.
geo str, optional Google: a country name, e.g. United States. Amazon: a US ZIP code, e.g. 10001, or a two-letter country code for delivery outside the US, e.g. DE.

DecodoEcommerceTool

Arguments the agent fills in. Pass either product_id or query:

Argument Type Description
store "amazon", "walmart" or "target" Store to look up.
product_id str, optional One product's details. Amazon: the ASIN, e.g. B09H74FXNW. Walmart or Target: the product ID from the product URL.
query str, optional Search the store's products instead.
zip_code str, optional US ZIP code for prices and availability at that delivery location, e.g. 10001.

DecodoSERPTool

Arguments the agent fills in:

Argument Type Description
query str Search query.
engine "google", "bing" or "google_ai_mode", optional google (default) or bing for a results page; google_ai_mode for Google's AI-written answer and the sources it cites.
page int, optional Results page to fetch, starting at 1. Ignored by google_ai_mode.
geo str, optional Country to search from, e.g. United States.

Bing results are rendered in a headless browser and can take over a minute.

Errors

When a request fails, for example because of an invalid API key, a rate limit, a page that returns 404 or a network error that keeps the request from reaching Decodo, the tools return a CrewAI ToolFailure instead of raising. The agent sees what went wrong and can retry or change course, and CrewAI records the failure according to the agent's tool_failure_policy.

License

MIT

Metadata

Release files for decodo-crewai 1.0.0

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

Source distribution (sdist)

Source distribution for decodo-crewai 1.0.0
File Size Uploaded Provenance Actions
decodo_crewai-1.0.0.tar.gz 14.9 kB With provenance Details for decodo_crewai-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for decodo-crewai 1.0.0
File Interpreter ABI Platform Actions
decodo_crewai-1.0.0-py3-none-any.whl Python 3 none any Details for decodo_crewai-1.0.0-py3-none-any.whl

Total release size: 26.2 kB

Release files / decodo_crewai-1.0.0.tar.gz

Download URL decodo_crewai-1.0.0.tar.gz
Size 14.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2f836e16f8730d1c888a65b70a72763ba62e0125b990c12894facc828c3f20fb
BLAKE2b-256 checksum
How to use checksums
5f3a81dd30ce51d7db07e331278d7ad153721da74ecbc346664617e6a0cfbadf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

Release files / decodo_crewai-1.0.0-py3-none-any.whl

Download URL decodo_crewai-1.0.0-py3-none-any.whl
Size 11.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cff02e434fa5a068e1b6fedf910e860def385aa752c926440cc079e1bffbf48d
BLAKE2b-256 checksum
How to use checksums
5a28541640152a77fd1abec0353660cf5c20bf51b6db07434f710f3d4c4cf984
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

Security for decodo-crewai 1.0.0

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for decodo_crewai-1.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

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

1.0.0 This release

2 release files Full 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