API Reference

Responses & Errors

The RocketReach API allows you to programmatically search and retrieve contact information for professionals and companies. This guide will help you understand API responses, error codes, rate limits, and troubleshooting steps.

Key Takeaways

  • RocketReach API responses contain status codes and structured data for processing.
  • Error handling is essential for managing unsuccessful API requests.
  • Rate limits apply—exceeding them triggers a 429 Too Many Requests error.
  • Webhooks help automate workflows and reduce unnecessary polling.
  • Troubleshooting tools like API logs and error messages can help diagnose issues.
  • Track API usage in the RocketReach API Settings dashboard.

Understanding RocketReach API Responses

Each API request returns a response with a status code and structured data. Understanding these responses helps you determine the success or failure of a request.


Common API Response Codes

Status CodeMeaningDescription
200 OKSuccessRequest was successful, and data is returned.
400Bad RequestThe request is malformed or missing required parameters.
401UnauthorizedAPI Key is missing or invalid.
403ForbiddenAPI Key lacks permission to perform this action.
404Not FoundThe requested resource (e.g., profile) does not exist.
429Too Many RequestsAPI request limit reached—slow down requests.
500Internal Server ErrorUnexpected error on RocketReach’s servers. Try again later.

Tip: Always check the response body for additional error details.


Example API Responses

Success Example

{
  "id": 5244,
  "status": "complete",
  "name": "John Doe",
  "current_employer": "Google",
  "current_title": "Software Engineer",
  "emails": [
    {
      "email": "[email protected]",
      "type": "professional",
      "valid": "true"
    }
  ]
}

Error Example

{
  "status": 401,
  "message": "Invalid API Key"
}

Troubleshooting Common API Issues

Errors can occur due to authentication failures, invalid parameters, or rate limit violations.

Authentication Errors (401 Unauthorized)

IssuePossible CausesSolution
Invalid API Key (401)API Key missing or invalidVerify API Key is included correctly in request headers.

Bad Requests (400)

IssuePossible CausesSolution
Bad RequestMissing/invalid parametersReview the API docs and ensure parameters are well-formed.

Rate Limit Errors (429)

IssueCauseSolution
Too Many RequestsRequest limit exceededSlow down or upgrade your plan. See example below.

Resource Not Found (404)

IssueCauseSolution
Not Found (404)Profile or company doesn’t existCheck your search parameters.

Server Errors (500)

IssueCauseSolution
Internal Server ErrorTemporary backend issueRetry the request after some time.

Checking API Error Logs

To view recent errors and usage:

  1. Go to RocketReach Account Settings →API Usage & Settings
  2. Check the API Recent Error section
  3. Use the data to adjust your API calls and parameters accordingly

Handling Rate Limit Errors

If you get a 429 Too Many Requests response:

  • Check the Retry-After header to know how long to wait
  • Implement request throttling/delays in your code
  • Use webhooks to reduce the need for polling
  • Upgrade to a higher API plan — contact [email protected]

Example: Handling Rate Limits in Python

import time
import requests

api_key = "YOUR_API_KEY"
url = "https://api.rocketreach.co/api/v2/person/lookup"
headers = {"Api-Key": api_key}
params = {"name": "John Doe"}

response = requests.get(url, headers=headers, params=params)

if response.status_code == 429:
    retry_after = int(response.headers.get("Retry-After", 5))
    print(f"Rate limit exceeded. Retrying in {retry_after} seconds...")
    time.sleep(retry_after)
    response = requests.get(url, headers=headers, params=params)