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.1.0.tar.gz (6.1 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.1.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agent_ready_client-0.1.0.tar.gz
  • Upload date:
  • Size: 6.1 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.1.0.tar.gz
Algorithm Hash digest
SHA256 5b6fc5739bec32c165acad4cdd465e49a44636600e6847d2d53f3f7d98cc4e39
MD5 bb60fe8c0086a4fe9c58294fcba88f8f
BLAKE2b-256 8d462c22f99dfa8b93e1568aa5bd7c156fc81f0b7e8de00b7d544559088d213e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agent_ready_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 015eefa73b89f01043148323e9992c51570437e624c66ba2e8ac0d2a012639a6
MD5 f7b8e2e9b0cffc3f70245ea24702bafa
BLAKE2b-256 caf9d04bb1953ad84e35302c221b02ad00ffd28b7e45701e4f4980eb18219e16

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