Skip to main content
API recipe API REST Developer integration

How do you find the decision-makers of a list of companies through the Rodz API?

Peter Cools · Updated on · 4 min read · View as Markdown

Short answer

Send POST /api/v1/enrichment/people-search with your companies, the job titles you want and a location. The response holds up to 25 profiles per page, each with a QUALIFIED or DISQUALIFIED verdict and its reason. Page with page while hasMore is true. If the search runs past 10 seconds, the API answers 202 and you read the result again with the requestId.

Key facts

  • A page holds at most 25 profiles; page runs from 1 to 100.
  • A search accepts at most 50 companies (companies) and 70 job titles (jobTitles).
  • Every profile carries a verdict qualificationStatus (QUALIFIED or DISQUALIFIED) and its reason in qualificationReason.
  • A synchronous search that runs past about 10 seconds answers 202 with a requestId; it is charged once, when it completes.
Cost : Charged once per completed search (price in the route reference) Setup time : 25 min

Before you start

  • A Rodz API key, created under Integrations → API in the dashboard (format USR_...), stored in the RODZ_API_KEY variable.
  • Credits on the account: with none left, the API answers 402 with the code NO_MORE_CREDITS.
  • A list of companies (name, LinkedIn company page URL or LinkedIn id) and the job titles you target.
  • Python 3.9+ with the requests library (pip install requests), or just curl.

Steps

  1. Step 1. Describe the people you are looking for

    POST /api/v1/enrichment/people-search takes filters, all optional, that you can combine:

    • companies: names, LinkedIn company page URLs or ids, mixed freely (50 at most);
    • jobTitles and excludeJobTitles: the titles to keep and to drop (70 at most each);
    • seniorityLevels: Entry, Strategic, Senior, VP, CXO, Director, Manager, Partner or Owner;
    • locations: where the person lives (for example France, Lyon, France);
    • companyHeadquarterLocations: where their company is headquartered, not to be confused with locations;
    • companySize: for example 51-200 or 1001-5000.

    For a precise location filter, first resolve a name to an id with GET /api/v1/enrichment/linkedin-geo-id, then pass it in geoIds.

    Search VPs of sales at two companies

    curl -X POST "https://api.rodz.io/api/v1/enrichment/people-search" \
      -H "Authorization: Bearer $RODZ_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "companies": ["Lemlist", "https://www.linkedin.com/company/acme/"],
        "jobTitles": ["VP of Sales", "Head of Marketing"],
        "locations": ["France"],
        "page": 1
      }'
  2. Step 2. Read each profile's verdict

    Each profile in data.results gives linkedinUrl, firstName, lastName, location, currentPositions (company, title, start date) and two qualification fields: qualificationStatus and qualificationReason, which explains the verdict, for example "the title is not in jobTitles".

    To keep only the matching profiles, send "qualifiedOnly": true: DISQUALIFIED profiles disappear from the response, and count shrinks accordingly. If aiValidationStatus is unavailable, the check could not run and every profile is returned as QUALIFIED: the response stays usable, but read it again before writing to your CRM.

  3. Step 3. Page through all the results

    The response gives count (profiles on this page), page, totalPages, total and hasMore. While hasMore is true, send the same request with page increased by 1, up to 100.

    The script below walks every page of a search and prints the qualified profiles.

    search_people.py

    import os
    import sys
    
    import requests
    
    URL = "https://api.rodz.io/api/v1/enrichment/people-search"
    HEADERS = {"Authorization": f"Bearer {os.environ['RODZ_API_KEY']}"}
    SEARCH = {
        "companies": ["Lemlist", "https://www.linkedin.com/company/acme/"],
        "jobTitles": ["VP of Sales", "Head of Marketing"],
        "locations": ["France"],
        "qualifiedOnly": True,
    }
    
    page = 1
    while True:
        response = requests.post(URL, headers=HEADERS, json={**SEARCH, "page": page}, timeout=60)
        response.raise_for_status()
        if response.status_code == 202:  # over 10 seconds: see the next step
            sys.exit(f"Search still running, requestId={response.json()['requestId']}")
        data = response.json()["data"]
        for profile in data["results"]:
            position = profile["currentPositions"][0] if profile["currentPositions"] else {}
            print(profile["linkedinUrl"], position.get("companyName"), position.get("title"))
        if not data["hasMore"] or page >= 100:
            break
        page += 1
  4. Step 4. Pick up a search that runs past 10 seconds

    A synchronous search still running after about 10 seconds answers 202 Accepted with requestId, status: "pending" and a Location header. Read that address, GET /api/v1/enrichment/people-search/{requestId}, until status is completed or failed. The result is the same page, charged once when the search completes.

    To avoid waiting, add webhookUrl to the request: the API answers 202 right away and sends the result to your address. deliveryMode sets the shape of the delivery: batch (default) sends all results at once, per_result sends one message per profile. If your receiver was unavailable, the same read route gives you the result again, with webhookDeliveredCount and webhookFailedCount.

    Read a running search again

    curl "https://api.rodz.io/api/v1/enrichment/people-search/$REQUEST_ID" \
      -H "Authorization: Bearer $RODZ_API_KEY"
  5. Step 5. Complete the selected profiles, and handle refusals

    For each selected profile, GET /api/v1/enrichment/contact with url= (the profile's linkedinUrl) returns the full background, and the email search takes the name and company: see the guide "Enrich a contact through the API".

    On errors: 402 (NO_MORE_CREDITS) when the balance is empty (with webhookUrl, the search ends failed instead of answering 402), 422 when a filter is invalid, 429 when you go over 9,000 requests in the minute (RATE_LIMIT_EXCEEDED, wait the seconds of the Retry-After header).

Example payload

Response of POST /api/v1/enrichment/people-search (two profiles, one qualified and one dropped)

{
  "data": {
    "results": [
      {
        "linkedinUrl": "https://www.linkedin.com/in/jane-doe-vp-sales/",
        "firstName": "Jane",
        "lastName": "Doe",
        "location": "Paris, Île-de-France, France",
        "openProfile": false,
        "premium": true,
        "currentPositions": [
          {
            "companyName": "Lemlist",
            "title": "VP of Sales",
            "companyLinkedinUrl": "https://www.linkedin.com/company/lemlist/",
            "startedOnYear": 2024,
            "startedOnMonth": 3
          }
        ],
        "qualificationStatus": "QUALIFIED",
        "qualificationReason": "title 'VP of Sales' matches jobTitles"
      },
      {
        "linkedinUrl": "https://www.linkedin.com/in/john-smith-marketing/",
        "firstName": "John",
        "lastName": "Smith",
        "location": "Brussels, Belgium",
        "openProfile": true,
        "premium": false,
        "currentPositions": [
          {
            "companyName": "Lemlist",
            "title": "Marketing Director",
            "companyLinkedinUrl": "https://www.linkedin.com/company/lemlist/",
            "startedOnYear": 2023,
            "startedOnMonth": 9
          }
        ],
        "qualificationStatus": "DISQUALIFIED",
        "qualificationReason": "title 'Marketing Director' not in jobTitles (VP of Sales, Head of Marketing)"
      }
    ],
    "count": 2,
    "page": 1,
    "totalPages": 4,
    "total": 87,
    "hasMore": true,
    "aiValidationStatus": "ok"
  },
  "requestId": "1f3c2a7e-9b5d-4d2a-8f4b-9a0e7c1d3b22"
}

People search starts from a list of companies and job titles, and returns profiles to contact. To be told when someone takes a new job, a Job Changes signal fits better: it runs continuously and delivers its leads without you starting a search again.

Frequently asked questions

How many profiles can a search return in total?

25 per page, over 100 pages at most. The total field of the response gives the number of matching profiles. To see more, tighten the filters rather than going to the last page.

How do I target a precise city?

Pass a place name in locations, for example Lyon, France. For an exact filter, first resolve the name with GET /api/v1/enrichment/linkedin-geo-id and pass the id you get in geoIds.

What does DISQUALIFIED mean?

The person meets the search filters, but the check of their profile concludes that they do not match what you are looking for. qualificationReason gives the reason, for example a title missing from jobTitles. With qualifiedOnly: true, these profiles are not returned.

What is the `metadata` field for?

To find your way back. Whatever you put there is returned as is in the response, and never filters the search. It is useful to tie a response received by webhook to the row of your database that asked for it.

Sources

Try it on your own market

Find the signals that fit your company and the tool that includes them.