Role Lookup
Find a person at a specific company based on their job role (e.g., “CEO”, “VP of Sales”, “Head of Engineering”).
Endpoint
Request
The job role to search for (e.g., “CEO”, “VP of Sales”, “CTO”)
Company name to search within
If true, returns full profile data (adds 1 credit)
Example Request
curl -X POST https://api.gtmapis.com/v1/people/role \
-H "Content-Type: application/json" \
-H "X-API-Key: gtm_test_your_key_here" \
-d '{
"role": "VP of Sales",
"company_name": "Acme Inc",
"enrich_profile": true
}'
Response
The person’s LinkedIn profile URL
Whether a matching person was found
Overall confidence score (0-100)
Data provider that returned the result
Credits charged for this request
Whether result was served from cache
Request time in milliseconds
Success Response
{
"linkedin_url" : "https://linkedin.com/in/janedoe" ,
"profile" : {
"first_name" : "Jane" ,
"last_name" : "Doe" ,
"full_name" : "Jane Doe" ,
"title" : "VP of Sales" ,
"company" : "Acme Inc" ,
"company_domain" : "acme.com" ,
"linkedin_url" : "https://linkedin.com/in/janedoe" ,
"location" : "New York, NY" ,
"seniority" : "VP" ,
"department" : "Sales"
},
"found" : true ,
"confidence" : 88 ,
"source_provider" : "leadmagic" ,
"credits_charged" : 4 ,
"cache_hit" : false ,
"latency_ms" : 523
}
Not Found Response
{
"linkedin_url" : "" ,
"found" : false ,
"confidence" : 0 ,
"credits_charged" : 0 ,
"cache_hit" : false ,
"latency_ms" : 312 ,
"error" : "No matching person found for role"
}
Credit Pricing
Result Credits Charged Person found by role 3 credits Person found + profile enrichment 4 credits Not found 0 credits Error / failure 0 credits
Role lookup costs more than person lookup because it searches across the entire company, not just a specific person.
Common Roles
The API understands common job role variations:
Search Term Also Matches CEOChief Executive Officer, Founder & CEO VP of SalesVice President of Sales, VP Sales, Head of Sales CTOChief Technology Officer, VP Engineering CFOChief Financial Officer, VP Finance Head of MarketingVP Marketing, CMO, Marketing Director HR ManagerHuman Resources Manager, People Manager
Error Responses
400 Bad Request
{
"error" : "Bad Request" ,
"message" : "role is required"
}
401 Unauthorized
{
"error" : "Unauthorized" ,
"message" : "Invalid API key"
}
503 Service Unavailable
{
"error" : "Service Unavailable" ,
"message" : "role lookup not configured"
}
Use Cases
Find the right decision-maker at target accounts without knowing their name.
Build org charts by looking up key roles at a company.
Find multiple stakeholders (VP Sales, VP Engineering, CFO) for enterprise deals.
Track leadership changes by monitoring key roles at competitor companies.