get_linkedin_audience_insights

LinkedIn Ads Read

User asks about B2B audience demographics, which professional segments perform best, targeting optimization, or wants to understand their LinkedIn audience breakdown

Endpoint

POST https://api.adspirer.ai/api/v1/tools/get_linkedin_audience_insights/execute

Headers

Description

User asks about B2B audience demographics, which professional segments perform best, targeting optimization, or wants to understand their LinkedIn audience breakdown. THIS IS LINKEDIN'S KILLER FEATURE - Professional demographic analysis: Returns B2B audience performance breakdown by: - Seniority (Entry, Senior, Manager, Director, VP, C-Suite) - Industry (Technology, Finance, Healthcare, etc.) - Company Size (1-10, 11-50, 51-200, 201-500, 501-1000, 1000+) - Job Function (Marketing, Sales, IT, Engineering, HR, etc.) Each segment includes: - Impressions, clicks, spend, conversions - CTR, CPL, ROAS, engagement rate - Category: SCALE, MAINTAIN, REDUCE, or EXCLUDE Identifies: - Best performing segments (to scale) - Underperforming segments (to reduce/exclude) - Wasted spend on B2B segments - Targeting optimization recommendations Parameters: - lookback_days: Number of days to analyze (7-120). Default: 30 - start_date: Optional start date (YYYY-MM-DD). Overrides lookback_days when used with end_date. - end_date: Optional end date (YYYY-MM-DD). Overrides lookback_days when used with start_date. ⚠️ DATE CLARIFICATION: If the user's date request is vague or ambiguous (e.g., "March to June" without a year, "last quarter", "recently", "a few months ago"), ask the user to specify exact dates before calling this tool. Do not assume or guess dates. - breakdown_types: Optional list of specific breakdowns. Default: all types - target_roas: Override target ROAS for categorization - ad_account_id: Required for multi-account users. Get from list_connected_accounts Example Prompts: - "Which seniority levels convert best on LinkedIn?" - "Show me LinkedIn audience breakdown by industry" - "What company sizes are we reaching on LinkedIn?" - "Am I reaching decision-makers on LinkedIn?" - "Which B2B segments should I exclude?" Execution time: 4-6 seconds

Request body

All tool arguments are wrapped in an arguments object.

FieldTypeDescription
start_datestring optionalStart date (YYYY-MM-DD). If provided with end_date, overrides lookback_days for custom date range queries.
end_datestring optionalEnd date (YYYY-MM-DD). If provided with start_date, overrides lookback_days for custom date range queries.
date_rangestring optionalDate range preset: 'last_7_days', 'last_14_days', 'last_30_days', 'last_60_days', 'last_90_days'. Overrides lookback_days. Ignored if start_date/end_date are provided.
raw_databoolean optionalIf true, return ONLY raw metrics as a JSON code block (spend, clicks, impressions, conversions, CPA, CPC, CTR, CVR, ROAS by campaign/ad/date). Strips severity labels, suggested bids/budgets, industry benchmarks, and optimization recommendations. Use when you run your own attribution model or want to minimize token usage. default: false
lookback_daysinteger optionalNumber of days to analyze (7-120). Default: 30. default: 30
breakdown_typesarray optionalList of breakdown types to include: 'seniority', 'industry', 'company_size', 'job_function'. Default: all types.
target_roasnumber optionalOverride target ROAS for categorization. If not provided, uses historical average or 2.0x default.
ad_account_idstring optionalLinkedIn Ad Account ID. Required for multi-account users. Get from list_connected_accounts.

Example request

{
  "arguments": {
    "start_date": "string",
    "end_date": "string",
    "date_range": "string",
    "raw_data": false,
    "lookback_days": 30,
    "breakdown_types": [
      "string"
    ]
  }
}

Example responses

200 — Success

{
  "success": true,
  "data": {
    "text": "(tool-specific textual output for get_linkedin_audience_insights)",
    "quota": {
      "used": 42,
      "limit": 150,
      "tier": "plus",
      "period_end": "2026-05-01"
    }
  },
  "tool": "get_linkedin_audience_insights"
}

400 — Tool-level error (bad arguments / multi-account selection)

{
  "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": "get_linkedin_audience_insights"
}

402 — Quota exhausted

{
  "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": "get_linkedin_audience_insights",
  "quota": {
    "used": 150,
    "limit": 150,
    "tier": "plus",
    "period_end": "2026-05-01",
    "upgrade_url": "https://adspirer.ai"
  }
}

Try it live


Adspirer REST API — get an API key at adspirer.ai/keys · adspirer.ai