{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/linkedin/json-schema/linkedin-audience-insights-response-schema.json",
  "title": "AudienceInsightsResponse",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/linkedin-audience-insights-api-openapi.yml#/components/schemas/AudienceInsightsResponse",
  "type": "object",
  "properties": {
    "value": {
      "type": "object",
      "properties": {
        "audienceInsight": {
          "$ref": "#/$defs/AudienceInsight"
        },
        "totalAudienceCount": {
          "type": "integer",
          "description": "Total count of the target audience"
        }
      }
    }
  },
  "$defs": {
    "AudienceInsight": {
      "type": "object",
      "properties": {
        "segmentations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/InsightSegmentation"
          }
        },
        "groupedBy": {
          "type": "string",
          "description": "Facet URN the insights are grouped by"
        }
      }
    },
    "InsightSegmentation": {
      "type": "object",
      "properties": {
        "entityCount": {
          "type": "integer",
          "description": "Number of members matching this segment"
        },
        "entityPercentage": {
          "type": "integer",
          "description": "Percentage of audience matching this segment"
        },
        "value": {
          "type": "string",
          "description": "URN of the segment value"
        }
      }
    }
  }
}