LinkedIn Ads Read
User needs to find targeting URNs for LinkedIn campaigns
POST https://api.adspirer.ai/api/v1/tools/search_linkedin_targeting/execute
Authorization: Bearer sk_live_... — your Adspirer API key (required)Content-Type: application/json (required)Idempotency-Key: <uuid> — recommended for write operations to make retries safeAll tool arguments are wrapped in an arguments object.
| Field | Type | Description |
|---|---|---|
facet_type | string required | Type of LinkedIn targeting facet to search. **Must be one of these exact values** (LinkedIn does NOT have an 'organizations' facet — use 'companies' or 'employers' instead): • locations — countries, regions, cities, postal codes • industries — sectors like 'Software', 'Healthcare', 'Finance' • seniorities — Entry, Senior, Director, VP, CXO, Owner • job_titles — specific roles ('Software Engineer', 'CFO') • titles — alias for job_titles • company_sizes — '1-10', '11-50', '51-200', etc • staff_count_ranges — alias for company_sizes • skills — 'Python', 'SQL', 'Marketing' • job_functions — Sales, Engineering, HR, Marketing, Finance • functions — alias for job_functions • interests — member-declared interests • member_interests — alias for interests • degrees — Bachelor's, Master's, MBA, PhD • fields_of_study — 'Computer Science', 'Marketing', etc • employers — current/past company URNs (use for company targeting) • companies — alias for employers • groups — LinkedIn group URNs • member_groups — alias for groups |
query | string required | Search query |
limit | integer optional | Maximum results to return (default: 25) default: 25 |
account_id | string optional | LinkedIn Ad Account ID. Required for multi-account users. Get from list_connected_accounts. |
{
"arguments": {
"facet_type": "string",
"query": "string",
"limit": 25,
"account_id": "string"
}
}
{
"success": true,
"data": {
"text": "(tool-specific textual output for search_linkedin_targeting)",
"quota": {
"used": 42,
"limit": 150,
"tier": "plus",
"period_end": "2026-05-01"
}
},
"tool": "search_linkedin_targeting"
}
{
"success": false,
"error": "You have 25 meta_ads accounts connected. Please specify which account to use by passing the ad_account_id parameter:\n - Acme Holdings (ad_account_id=\"act_123456789\")\n - Acme EU (ad_account_id=\"act_987654321\")",
"is_error": true,
"tool": "search_linkedin_targeting"
}
{
"success": false,
"error": "\ud83d\udea8 Monthly limit reached (150/150 tool calls on Plus tier).\nUpgrade to Pro at https://adspirer.ai to keep building.",
"is_error": true,
"tool": "search_linkedin_targeting",
"quota": {
"used": 150,
"limit": 150,
"tier": "plus",
"period_end": "2026-05-01",
"upgrade_url": "https://adspirer.ai"
}
}
Interactive: Swagger UI
Machine-readable: OpenAPI 3.1 spec · llms-full.txt
More tools: LinkedIn Ads · All tools
Adspirer REST API — get an API key at adspirer.ai/keys · adspirer.ai