How can AI agents check whether a web page exists?

Send a HEAD request, fall back to GET if the server doesn't support HEAD, follow a small number of redirects, and treat a 2xx final status as existing.

Why this matters

Some servers reject HEAD, some redirect endlessly, and some hang — a naive check gives wrong answers or stalls the agent.

How to do it

  1. HEAD the URL with a short timeout.
  2. On 405/501, retry with GET.
  3. Follow at most a couple of redirects.
  4. Report status and final URL.

ZUT tools that help

  • Existence Verifier — Check GitHub repositories, npm and PyPI packages (with their creation date), Hugging Face models and datasets, Docker Hub images, and website links on approved hosts — up to 10 items per call, with an Agent token.

Related questions

Can ZUT check private or local addresses?
No. Only public HTTPS targets are contacted.

Read next

All AI agent questions