x402 protocol support
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Quiet
- Tech stack
- python
- Domain
- api, authentication, payments
Research direction
Start by reviewing the zyte_api[x402] dependency and the source entry point that selects https://api-x402.zyte.com; compare its authentication behavior with https://api.zyte.com. Done means establishing whether x402 is supported, whether the shown authentication is expected, and what configuration or documentation is required.
Written by the indexing model from the issue text.
Description
Hi,
Could you please clarify whether the Zyte API currently supports the x402 protocol?
I contacted support previously, but I didn't receive a clear answer about whether this functionality is currently available.
I tried sending the following request:
from zyte_api import ZyteAPI
client = ZyteAPI(eth_key="my eth private key in base network")
result = client.get({"url": "https://toscrape.com", "httpResponseBody": True})
print(result)
However, I receive the following error:
zyte_api._errors.RequestError: RequestError: 401, message=Unauthorized, headers=<CIMultiDictProxy('Date': 'Sun, 19 Jul 2026 15:12:04 GMT', 'Content-Type': 'application/problem+json', 'Content-Length': '202', 'Connection': 'close', 'WWW-Authenticate': 'Basic realm="Zyte API"', 'Request-Id': '01be2ad971ff6e6511893c4a810d49a6', 'Vary': 'Accept-Encoding', 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains; preload', 'Access-Control-Allow-Credentials': 'true', 'Access-Control-Expose-Headers': '*, X-Project-Key', 'Access-Control-Allow-Methods': 'GET, PUT, POST, DELETE, PATCH, OPTIONS', 'Access-Control-Allow-Headers': 'DNT, Keep-Alive, User-Agent, X-Requested-With, If-Modified-Since, Cache-Control, Content-Type, Range, Authorization, X-Project-Key', 'Access-Control-Max-Age': '1728000')>, body=b'{"type":"/auth/not-valid","title":"Authentication Info Invalid","status":401,"detail":"No valid authentication info found in the request. Check the documentation for the correct authentication schema."}', request_id=01be2ad971ff6e6511893c4a810d49a6
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x101776c90>
These are my project dependencies:
requires-python = ">=3.12"
dependencies = [
"zyte-api[x402]>=0.10.0",
]
While looking through the project source code, I found the endpoint https://api-x402.zyte.com. However, when I send requests to this endpoint, it also requires authentication in the same way as the main endpoint (api.zyte.com).
Is this the expected behavior, or is x402 support currently unavailable?
- Dominant language
- Python
- Stars
- 30
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from zytedata/python-zyte-api
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
zytedata/python-zyte-api#91 · 1 reaction ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
zytedata/python-zyte-api#57 · 5 comments ·
All issues in zytedata/python-zyte-api
Similar issues
-
documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
simonw/sqlite-utils#872 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100