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?
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:
However, I receive the following error:
These are my project dependencies:
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?