Quickstart & Examples
Base URL: https://api.useportpulse.com · Demo API Key: dev_demo_123 (header X-API-Key)
Try it
Pick a language tab below and copy the snippet.
# 1) Health (no auth)
curl -sS "https://api.useportpulse.com/v1/health" | jq .
# 2) USLAX last 7 days (JSON)
curl -sS -H "X-API-Key: dev_demo_123" "https://api.useportpulse.com/v1/ports/USLAX/trend?days=7" | jq .
# 3) USLAX CSV with ETag/304
ET=$(curl -fsS -D - -H "X-API-Key: dev_demo_123" "https://api.useportpulse.com/v1/ports/USLAX/trend?days=7&format=csv" -o /dev/null | awk 'BEGIN(IGNORECASE=1){/^etag:/{gsub(/
|"/,"");print $2}}')
curl -fsS -H "X-API-Key: dev_demo_123" -H "If-None-Match: "$ET"" "https://api.useportpulse.com/v1/ports/USLAX/trend?days=7&format=csv"Notes
- Use header
X-API-Key. ETag+If-None-Matchfor CSV caching.- Rate limits & caching guidance are in API Reference.