> ## Documentation Index
> Fetch the complete documentation index at: https://docs.adside.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Demographic Insights

> Get professional demographic analytics for LinkedIn ads. Break down performance by member company, industry, seniority, job title, job function, or location. Uses q=analytics with MEMBER_* pivots. Note: demographic data has 12-24h delay and 2-year retention.



## OpenAPI

````yaml /api-reference/openapi.yaml post /linkedin/mcp#get_demographic_insights
openapi: 3.1.0
info:
  title: Multi-Source Ads API
  version: 1.0.0
  description: >-
    Unified API for managing ad campaigns across Meta, LinkedIn, and Google. MCP
    tools are accessed via JSON-RPC 2.0 over HTTP (`POST /{source}/mcp`). Google
    Sheets/Drive endpoints use standard REST.
servers:
  - url: https://api.adside.ai
    description: Production
  - url: http://localhost:3100
    description: Local development
security:
  - bearerAuth: []
tags:
  - name: Accounts
    description: ''
  - name: Ads
    description: ''
  - name: Analytics
    description: ''
  - name: Asset Groups
    description: ''
  - name: Assets
    description: ''
  - name: Audiences
    description: ''
  - name: Campaign Groups
    description: ''
  - name: Campaigns
    description: ''
  - name: Conversions
    description: ''
  - name: Creatives
    description: ''
  - name: Drive
    description: ''
  - name: Google
    description: ''
  - name: Google Ads
    description: ''
  - name: Google Tag Manager
    description: ''
  - name: Keywords
    description: ''
  - name: Linkedin
    description: ''
  - name: Meta
    description: ''
  - name: Meta Reporting
    description: ''
  - name: OAuth
    description: ''
  - name: Other
    description: ''
  - name: Reports
    description: ''
  - name: Sheets
    description: ''
  - name: Targeting
    description: ''
  - name: Tiktok
    description: ''
  - name: Workspace
    description: ''
paths:
  /linkedin/mcp#get_demographic_insights:
    post:
      tags:
        - Linkedin
        - Analytics
      summary: Get Demographic Insights
      description: >-
        Get professional demographic analytics for LinkedIn ads. Break down
        performance by member company, industry, seniority, job title, job
        function, or location. Uses q=analytics with MEMBER_* pivots. Note:
        demographic data has 12-24h delay and 2-year retention.
      operationId: linkedin_get_demographic_insights
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - jsonrpc
                - method
                - params
              properties:
                jsonrpc:
                  type: string
                  const: '2.0'
                id:
                  type: string
                  example: '1'
                method:
                  type: string
                  const: tools/call
                params:
                  type: object
                  required:
                    - name
                    - arguments
                  properties:
                    name:
                      type: string
                      const: get_demographic_insights
                    arguments:
                      $ref: >-
                        #/components/schemas/linkedin_get_demographic_insights_input
      responses:
        '200':
          description: JSON-RPC response with tool result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/McpToolResponse'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Channel not connected or access denied
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    linkedin_get_demographic_insights_input:
      type: object
      properties:
        account_id:
          description: >-
            LinkedIn Ad Account ID. Omit it: it defaults to the account this
            client is connected to, and any other account is refused.
          type: string
        pivot:
          type: string
          enum:
            - MEMBER_COMPANY
            - MEMBER_COMPANY_SIZE
            - MEMBER_INDUSTRY
            - MEMBER_SENIORITY
            - MEMBER_JOB_TITLE
            - MEMBER_JOB_FUNCTION
            - MEMBER_COUNTRY_V2
            - MEMBER_REGION_V2
            - MEMBER_COUNTY
          description: Professional demographic dimension to group results by
        time_granularity:
          default: ALL
          description: Time granularity for results
          type: string
          enum:
            - DAILY
            - MONTHLY
            - ALL
        date_range_start:
          type: object
          properties:
            year:
              type: number
              description: Year (e.g. 2026)
            month:
              type: number
              minimum: 1
              maximum: 12
              description: Month (1-12)
            day:
              type: number
              minimum: 1
              maximum: 31
              description: Day (1-31)
          required:
            - year
            - month
            - day
          description: Start date (inclusive)
        date_range_end:
          description: End date (inclusive)
          type: object
          properties:
            year:
              type: number
              description: Year (e.g. 2026)
            month:
              type: number
              minimum: 1
              maximum: 12
              description: Month (1-12)
            day:
              type: number
              minimum: 1
              maximum: 31
              description: Day (1-31)
          required:
            - year
            - month
            - day
        campaign_ids:
          description: Filter by campaign IDs
          type: array
          items:
            type: string
        fields:
          description: >-
            Specific metrics to return (max 20). Note: some metrics not
            available with demographic pivots.
          type: array
          items:
            type: string
      required:
        - pivot
        - date_range_start
      $schema: http://json-schema.org/draft-07/schema#
    McpToolResponse:
      type: object
      properties:
        jsonrpc:
          type: string
          const: '2.0'
        id:
          type: string
        result:
          type: object
          properties:
            content:
              type: array
              items:
                type: object
                properties:
                  type:
                    type: string
                    const: text
                  text:
                    type: string
                    description: JSON-stringified tool result
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Error message
        code:
          type: string
          enum:
            - UNAUTHORIZED
            - FORBIDDEN
            - NOT_FOUND
            - RATE_LIMITED
            - INTERNAL_ERROR
          description: Error code
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key (sk_live_*) — SHA256 hashed, looked up in Redis. Generate via
        the web app's workspace settings.

````