HuntAPI

Stats

Infrastructure health for an engine or endpoint over the last hour. Not scoped to your account or tenant.

The Stats endpoint returns a single infrastructure health snapshot for an API engine or a specific path. Metrics are aggregated across the whole platform over a one-hour window. They are not your account or tenant usage. There is no hourly time series. Use Usage for your account quota.

This endpoint is free. It never consumes any credits.

These are infrastructure stats for the platform, not stats for your account or tenant. Every authenticated caller sees the same health snapshot. For remaining credits and rate limits, use Usage.

Query parameters

Provide at least one of engine or path.

  • engine (string): API family to check, for example linkedin or google.
  • path (string): specific endpoint to check, for example /v1/linkedin/profile-info. If you also pass engine, use an endpoint from that API.

Request

curl "https://api.huntapi.com/v1/stats?engine=linkedin" \
  -H "x-api-key: YOUR_API_KEY"
curl "https://api.huntapi.com/v1/stats?path=/v1/linkedin/profile-info" \
  -H "x-api-key: YOUR_API_KEY"

Health values

  • operational: success rate at or above 99%.
  • degraded: success rate from 90% up to 99%.
  • down: success rate below 90%.

Response Fields

FieldTypeDescription
enginestringEngine slug derived from the catalog (for example linkedin)
pathstring | nullNormalized path filter, or null when you query by engine only
healthstringoperational, degraded, or down for the last hour
success_ratenumberSuccess rate over the last hour. Only HTTP 5xx counts as failure. Low-volume windows are smoothed.
avg_response_time_msintegerAverage response time in milliseconds. Durations above 60 seconds are excluded.
windowstringAggregation window. Always 1h.

The response does not include request volume, raw error counts, or any account-level or tenant-level data.

Example Response

{
  "engine": "linkedin",
  "path": "/v1/linkedin/profile-info",
  "health": "operational",
  "success_rate": 99.412,
  "avg_response_time_ms": 840,
  "window": "1h"
}

Errors

CodeDescription
400Missing engine and path, invalid value, or path that does not match engine
401Missing or invalid API key
404Unknown engine (not in the API catalog)
503Status data is temporarily unavailable

See also: Usage for your account quota (tenant-scoped), Status Codes for HTTP billing rules, and Error Handling for integration errors.

On this page