Skip to main content

Official Python client SDK for the Agent Ready API — scan any URL for AI agent-readability (Vercel Agent Readability Spec, llmstxt.org, agent-protocol manifests).

Project description

agent-ready-client (Python SDK)

Official Python client SDK for the Agent Ready API — scan any public URL for AI agent-readability against the Vercel Agent Readability Spec, the llmstxt.org standard, and agent-protocol manifests (MCP server cards, A2A, agents.json, agent-permissions.json, UCP, x402, NLWeb).

Zero runtime dependencies — pure standard library (urllib). Python 3.8+.

Prefer the terminal? Use the agent-ready-scanner CLI. Working in JS/TS? See agent-ready-client on npm. This package is for calling the API from your own Python code.

Install

pip install agent-ready-client

Quick start

import os
from agent_ready import AgentReady

ar = AgentReady(api_key=os.environ["AGENT_READY_API_KEY"])

scan = ar.scan("https://example.com")          # start + poll to completion
print(scan["vercelScore"], scan["vercelRating"])  # 96 "excellent"

for check in scan["siteChecks"]:
    if check["status"] == "fail":
        print(check["checkId"], check["name"], "->", check["howToFix"])

Authentication

scan, start_scan, get_scan, and list_scans require a Pro API key (issue one at https://agent-ready.dev/dashboard/api-keys). Pass it explicitly or set AGENT_READY_API_KEY in the environment:

ar = AgentReady()                       # reads AGENT_READY_API_KEY
ar = AgentReady(api_key="ar_live_...")  # or pass it in

ask is public and needs no key.

API

AgentReady(api_key=None, base_url="https://agent-ready.dev", timeout=30.0)
Method Returns Notes
scan(url, page_limit=None, poll_interval=2.0, timeout=120.0) Scan Start and poll to completion.
start_scan(url, page_limit=None) StartScanResponse Queue only; returns the id.
get_scan(id) Scan Fetch a scan (running or finished).
list_scans(limit=None, cursor=None) ScanListResponse Your scans, newest first.
ask(query, item_type=None, mode=None) dict NLWeb doc search. No key required.

Fire-and-forget + poll later

started = ar.start_scan("https://example.com", page_limit=25)
# ...later...
scan = ar.get_scan(started["id"])
if scan["status"] == "completed":
    print(scan["vercelScore"])

Errors

Every failure raises ApiError with a stable code and (when from a response) an HTTP status:

from agent_ready import ApiError

try:
    ar.scan("https://example.com")
except ApiError as err:
    if err.code == "rate_limited":
        ...  # back off and retry

Common codes: missing_api_key, unauthorized, subscription_required, rate_limited, invalid_request, timeout, network_error.

Links

License

MIT © Agent Ready

Project details


Download files

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

Source Distribution

agent_ready_client-0.2.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

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

agent_ready_client-0.2.0-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file agent_ready_client-0.2.0.tar.gz.

File metadata

  • Download URL: agent_ready_client-0.2.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for agent_ready_client-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0d8d1e63b57d154a902718363edbceb9ea6e5e206c704fb243f8338827713de7
MD5 6498585c9ab80183dd729d1b7f694fe5
BLAKE2b-256 044a44bcb430c51de163371a4b83c3fdc23c46c510677bca47a90fc567c97885

See more details on using hashes here.

File details

Details for the file agent_ready_client-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for agent_ready_client-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 67d195d2bcdb95595fb096936f538e13e784218e4d16946979921279d7a94bbe
MD5 8781f68f2541abae845fa7016d3487bb
BLAKE2b-256 e018f1b6034dcb1f337797750dc82a1167b38dad0851c8f91aa41d83444cfc80

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page