API alive
Agents copy endpoints from READMEs and from public-apis. Many are dead, rate-limited, or need keys the agent omitted. This skill makes every URL earn a live response.
When to use
- Agent is about to
fetch/axiosa third-party URL - User pastes a “free API” list
- User says: api alive, ping this, is this API dead, verify catalog
Rules
- A URL in a README is not evidence it works.
- CORS-in-the-browser is not the same as the API being up. Ping from the runtime you will actually use.
401/403with a JSON body can still mean alive, needs a key. That is not dead. Report it as AUTH.- Timeouts and NXDOMAIN are DEAD.
- Do not print API keys while retrying.
Procedure
- Extract every third-party HTTP(S) URL the agent plans to call.
- Run:
node skills/api-alive/scripts/ping.mjs <url>
node skills/api-alive/scripts/ping.mjs # bundled catalog- Status:
- ALIVE — 2xx / 3xx, or 401/403 with a body
- DEAD — timeout, DNS, 404/410/5xx, empty
- Do not write the client until the URL is ALIVE or AUTH.
- Report the status line and the status code. No vibes.
Do not
- Trust
public-apisrows without a ping - Invent a “typical” base URL (
api.weather.com/v3) without hitting it