Skip to main content

crewai-call402

CrewAI tools for Call402, the pay-per-call API by SteadyScrape. It wraps the existing Call402 REST routes and x402 payment flow, with no extra logic.

Install

pip install crewai-call402
pip install "x402[evm]==2.29.0"                                # only if you want the tool to pay

Tested with Python 3.13, crewai==1.15.45, httpx==0.28.1, x402==2.29.0. Declared ranges: crewai>=1.0,<2, httpx>=0.27,<1, Python >=3.10,<3.14 (CrewAI's own limit).

How payment works

Call402 charges per successful call in USDC on Base (eip155:8453) using x402 v2, settled through the PayAI facilitator. An unpaid POST returns HTTP 402 with a PAYMENT-REQUIRED header (price, asset, pay-to address). If you pass a payment_signer, the tool hands it those requirements, sends the signed PAYMENT-SIGNATURE back once, and returns the result with the settlement in payment_response. This package holds no wallet and no keys: the signer is your code with your wallet. Without a signer, or if the signer returns None, the 402 is raised with the requirements attached and nothing is charged. Empty or invalid input returns 400 and is not charged. Failed, timed-out or empty results are never settled. Errors are raised, not hidden.

Worked example

# pip install "x402[evm]==2.29.0"   (tested; your wallet, your key, never ours)
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http import x402HTTPClientSync
from x402.mechanisms.evm.exact import register_exact_evm_client
from x402.mechanisms.evm.signers import EthAccountSigner
from x402.schemas import PaymentRequired

account = Account.from_key(os.environ["MY_BASE_WALLET_KEY"])  # a Base wallet holding a little USDC
x402_http = x402HTTPClientSync(register_exact_evm_client(x402ClientSync(), EthAccountSigner(account)))

def pay(payment_required: dict) -> str:
    """Sign the 402 requirements with your wallet; return the PAYMENT-SIGNATURE header."""
    payload = x402_http.create_payment_payload(PaymentRequired.model_validate(payment_required))
    return x402_http.encode_payment_signature_header(payload)["PAYMENT-SIGNATURE"]
from crewai import Agent, Crew, Task
from crewai_call402 import get_call402_tools

tools = get_call402_tools(payment_signer=pay, include=["hiring_summary", "company_profile"])

analyst = Agent(
    role="Company analyst",
    goal="Summarize a company from its website and its public hiring activity",
    backstory="You only report facts returned by your tools.",
    tools=tools,
)
task = Task(
    description="Profile stripe.com and summarize its hiring. Call each tool once.",
    expected_output="Five bullets: what the company does, size, open roles, trend, top functions.",
    agent=analyst,
)
print(Crew(agents=[analyst], tasks=[task]).kickoff())   # $0.01 + $0.02 if both return results

Each tool's args_schema is a Pydantic model built from the tool's live JSON inputSchema. tool.run(...) returns the JSON result as a string. Without a signer, run raises Call402PaymentRequired (.status == 402, .charged is False, .payment_required holds the requirements). Other non-2xx answers raise Call402Error.

The 19 tools

Read from https://api.call402.dev/v1/tools and /v1/pricing on 2026-11-29. The package ships this list as catalog.json; pass live_catalog=True to read it from the API at runtime instead.

Tool What it does Route Price per successful call
company_jobs Open jobs at a company POST /v1/jobs $0.01
company_profile Company profile from its website POST /v1/company-profile $0.01
hiring_summary Company hiring summary POST /v1/hiring-summary $0.02
uk_company UK company record (Companies House) POST /v1/uk-company $0.01
keyword_suggestions Keyword suggestions (autocomplete) POST /v1/keyword-suggestions $0.01
seo_audit Technical SEO audit of a page POST /v1/seo-audit $0.01
domain_expiry Domain expiry and registration (RDAP) POST /v1/domain-expiry $0.01
form_d_filings SEC Form D funding rounds POST /v1/form-d-filings $0.02
job_search Job search across career sites POST /v1/job-search $0.02
pdf_to_markdown PDF text to markdown POST /v1/pdf-to-markdown $0.01
patent_search Google Patents search and details POST /v1/patents $0.01
website_screenshot Website screenshot POST /v1/screenshot $0.01
product_price Product price and stock check POST /v1/product-price $0.01
str_profit_calculator STR Profit Calculator (STR Profit Tracker, KeyLedgerDesigns) POST /v1/str-profit-calculator $0.01
guest_message_script Guest Message Script (Guest Message Library, KeyLedgerDesigns) POST /v1/guest-message-script $0.01
content_calendar 90-Day Content Calendar (Realtor 90-Day Content System, KeyLedgerDesigns) POST /v1/content-calendar $0.02
welcome_book Welcome Book Sections — Cabin & Lake House edition (KeyLedgerDesigns) POST /v1/welcome-book $0.01
prediction_markets Polymarket prediction market odds POST /v1/prediction-markets $0.01
remote_jobs Remote jobs by title and worker location POST /v1/remote-jobs $0.03

Base URL https://api.call402.dev. Discovery: GET /v1/tools, GET /v1/pricing, GET /.well-known/x402, and MCP at /mcp.

Tests

pip install -e ".[test]" && pytest -q                     # mocked 402 / 200 / 400, no network
CALL402_LIVE=1 pytest -q -k live_unpaid                    # one unpaid production POST, expects 402, charged=false

Call402 is operated by SteadyScrape S.R.L. (Costa Rica). Terms: https://call402.dev/terms · Privacy: https://call402.dev/privacy · hello@call402.dev

Metadata

Release files for crewai-call402 0.1.1

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

Source distribution (sdist)

Source distribution for crewai-call402 0.1.1
File Size Uploaded Provenance Actions
crewai_call402-0.1.1.tar.gz 19.3 kB With provenance Details for crewai_call402-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for crewai-call402 0.1.1
File Interpreter ABI Platform Actions
crewai_call402-0.1.1-py3-none-any.whl Python 3 none any Details for crewai_call402-0.1.1-py3-none-any.whl

Total release size: 35.0 kB

Release files / crewai_call402-0.1.1.tar.gz

Download URL crewai_call402-0.1.1.tar.gz
Size 19.3 kB
Tags Source
SHA-256 checksum
How to use checksums
4fb1f871819a9063bcf8b834f024f5a96fa15a39bdae3429f17342ee41093f2f
BLAKE2b-256 checksum
How to use checksums
5e1aded36d07f5e860d7138fe21e434f59142dc0210f6a7d2cd8493e44b63d4d
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 Nov 29, 2026.

Transparency log

Release files / crewai_call402-0.1.1-py3-none-any.whl

Download URL crewai_call402-0.1.1-py3-none-any.whl
Size 15.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
513f698a94398f10e08a900b246994cb5e7aa2e23524a84b31236e5ad85e58d1
BLAKE2b-256 checksum
How to use checksums
53b8658e36f4d3eca0338e59fca97a6f4cf668e425ec7c1062573bfae8e11ee7
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 Nov 29, 2026.

Transparency log

Security for crewai-call402 0.1.1

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for crewai_call402-0.1.1.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 Nov 29, 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.

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