Skip to main content
Every request to the CUFinder API returns a standard HTTP status code together with a JSON body that includes a status field. Check both to confirm whether a request succeeded and to handle failures programmatically.

Response shape

Successful and failed requests share a consistent envelope, so you can branch on status before reading data.
{
  "status": 1,
  "data": {
    "confidence_level": 97,
    "query": "cufinder.io",
    "emails": ["info@cufinder.io"],
    "credit_count": 9981
  }
}
status
integer
1 when the request succeeds, -1 when it fails. Always check status in addition to the HTTP status code.
message
string
Present only on errors. A human-readable explanation of what went wrong.

Quick reference

CodeNameMeaning
200OKThe request succeeded and data was returned.
400Bad RequestNot enough credits to complete the request.
401UnauthorizedThe API key is missing or invalid.
422Unprocessable EntityThe request is malformed or a required field is missing.
500Server ErrorSomething went wrong on our side.

200 — OK

The request was processed successfully.
The response data object contains your result, and credit_count reports your remaining balance. A 200 is only returned when status is 1.
Response
{
  "status": 1,
  "data": {
    "query": "cufinder.io",
    "credit_count": 9981
  }
}

400 — Not enough credits

Your account does not have enough credits to complete the request. How to resolve
  • Review your remaining balance from the dashboard.
  • Top up credits or upgrade your plan, then retry the request.
Response
{
  "status": -1,
  "message": "Not enough credits!"
}

401 — Unauthorized

The x-api-key header is missing, malformed, or invalid. How to resolve
  • Confirm you are sending the x-api-key header on every request.
  • Copy your key exactly from Account » API key in the dashboard — keys are case-sensitive and contain no spaces.
  • Make sure the key has not been rotated or revoked.
Response
{
  "status": -1,
  "message": "API key verification failed!"
}

422 — Unprocessable Entity

The request reached the API but could not be processed — usually a missing required field, a typo in a parameter name, or a value in the wrong format. How to resolve
  • Check the Attributes section of the endpoint for required parameters and accepted formats.
  • Send the body as application/x-www-form-urlencoded (or JSON) with the exact field names shown in the request sample.
Response
{
  "status": -1,
  "message": "Invalid or missing parameters."
}

500 — Server Error

Something went wrong on our side. These are rare. How to resolve
  • Retry the request after a short delay.
  • If the error persists, contact support with the request details so we can investigate.
Response
{
  "status": -1,
  "message": "Internal server error."
}
Before contacting support, double-check your request against the endpoint’s Attributes and the codes above — most errors are resolved by correcting the API key, credits, or parameters.