Recipe prompt
What you’ll build
A sourcing search for a recruiting tool. A recruiter types a title, a skill and a place. Your server turns the skill and place into IDs, runs the search, and returns a page of candidates to review.Steps
1
Resolve skills and locations
Search filters take IDs. Call Person skills lookup and Locations lookup with
q. Each returns results with an id and text. Show the text values so the recruiter can choose.2
Search by role, skill and location
Send a
POST to Person role search with the chosen IDs. role_title supports a boolean text query, such as "backend engineer" OR "software engineer". To count matches before you fetch them, send the same body to Person role search totals.3
Show the candidates
Each
person has id, full_name, headline, skills and location. Its linkedin_info carries public_profile_url and public_identifier. Show these and keep the id for the next step. Use person_headline or person_description to narrow the search by text, and role_years_on_position_start and role_years_on_position_end to filter by time in role.4
Get contact details for shortlisted people
Only for the people a recruiter shortlists, follow the candidate contact recipe.
Handle the edge cases
- Not found. An empty
search_resultsmeans no match. Offer to drop the location or a skill. If autocomplete returns no results for a name, try a shorter term. - 403. The key is missing or invalid. Fix the credentials; do not retry.
- 429. Autocomplete allows 10 requests per second per account, so cache IDs and debounce typeahead. See errors and rate limits.
- Paging. Use
pageto request more results. - Credits. A role search costs 1 credit per request, and so does a role search totals call. Autocomplete is free. See credit pricing.
Related
Search people by role
Every role search filter.
Find filter values
Which autocomplete feeds which filter.
Person skills lookup
Autocomplete reference.