ProfileHunt API Errors and Status Codes

Every HTTP status and error code the ProfileHunt API returns, what it means, whether it costs a credit and whether it is safe to retry.

Last updated

You pay only when a profile is returned. Every other outcome on this page is free, so retrying never costs twice. Errors have a JSON body with an error code:

{ "error": "rate_limited" }

Status codes

HTTPBodyMeaningCreditRetry?
200"status": "ok"Profile found and returned.1No need
200"status": "gone"No public profile at this URL.0No
200"status": "unavailable"LinkedIn didn't serve the profile just then.0Later
401unauthorizedAPI key missing, wrong or revoked.0No
402insufficient_creditsThe workspace is out of credits. Top up on the billing page.0After topping up
422invalid_urlNot a linkedin.com/in/ profile URL.0No
429rate_limitedOver 60 requests a minute on this key.0After Retry-After
500internalSomething failed on our side.0Yes
502upstream_failedWe couldn't reach LinkedIn.0Yes
503temporarily_unavailableBusy right now; requests are paused briefly.0After Retry-After
504timeoutThe lookup took too long.0Yes

Retrying

  • For 429 and 503, wait the number of seconds in the Retry-After header.
  • For 500, 502 and 504, wait a few seconds and try again, backing off if it keeps failing.
  • Retry unavailable later rather than straight away.

Getting help

Every request appears on the Usage page with its ID (req_…). If something looks wrong, email that ID and the profile URL to support@profilehunt.dev.