Skip to content

How do I check API health?

Use GET /api/v1/health to check the API and its source health.

Terminal window
curl https://api.squeeze.plus/api/v1/health

The reply has ok, ts, methodologyVersion, pools, ethUsd, and sources. Pool counts cover total, active, hot, v3, v4, meme, and canonical.

Use GET /api/v1/status for age rules and source rows.

Policy fieldValue
quoteMaxAgeSeconds45
poolMaxAgeSeconds30
reserveMaxAgeSeconds120
confirmations20 blocks
Terminal window
curl https://api.squeeze.plus/api/v1/status

Each source row names quotes, pools, swaps, or dexscreener. It has last try and last win times, last error, state, and age. Times are Unix seconds. A time or age can be null.

A healthy API does not mean each source is new. Use dataStatus on stock and pool rows too.

The health call can work while one stock quote is old. Check both the source row and the stock row.

Read the source-age guide or fix a lost stream.