# CoCo Redirects Tool

> CoCo Redirects Tool is a paid API for AI agents from cocoeatsai.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-19).

Follows a URL through its redirect chain and returns the final HTTP status code and redirect count

## Facts

- Endpoint: GET https://cocoeatsai.com/area4/agent/tools/redirects?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coco-redirects-tool-98e0bc75
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_saPlo1gUn_nuFJ0b66CB8

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability coco-redirects-tool-98e0bc75
```

Example prompt: Can you check this URL for me and tell me how many redirects it goes through and what the final HTTP status code is?

## When to prefer this

Use this endpoint when you need to inspect the HTTP redirect chain of a specific URL, determine its final resolved status, or validate whether a link is functional without loading its full content. It is a lightweight, pay-per-call tool ideal for spot-checking URLs or running quick link audits. Prefer this over a full web scraper when you only need status and redirect metadata, not page content.

## Known failure modes

- URL is unreachable or times out, resulting in an error status
- Redirect loop causes the tool to fail or report an abnormally high redirect count
- Invalid or malformed URL input may cause a bad request error
- DNS resolution failures for the target domain
- The endpoint itself returns no data if the target is completely offline

## How this service works

Zach Riehn's lab: an about-me and portfolio, a news desk, The Atelier for AI experiments, Launch Lab for XRP research, and Fracture for games.

## Output

A JSON object containing the final HTTP status code (e.g. 200, 404, 301) reached after following all redirects, and the total number of redirects encountered in the chain.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ]
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "final_status"
     ],
     "properties": {
      "final_status": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "final_status": 200,
  "redirect_count": 0
 },
 "exampleNote": "Illustrative response subset; not a live observation."
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coco-redirects-tool-98e0bc75/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cocoeatsai.com](https://www.zero.xyz/host/cocoeatsai.com/llms.txt)
