> For the complete documentation index, see [llms.txt](https://knowledgebase.fabricdata.com/insights/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://knowledgebase.fabricdata.com/insights/api/origin-insights-new-generation/genre-analysis.md).

# Genre Analysis

Genre counts, combinations, and evolution over time

## Get genre analysis genre count

> Count primary genres and individual genres (unwound from comma-separated genres column) across all unique UIDs in content\_presence joined with content\_metadata. Supports the Current / Historical filter (presence, present\_from, present\_to; OIP-1434).

```json
{"openapi":"3.0.3","info":{"title":"Insights API","version":"1.0.0"},"tags":[{"name":"Genre Analysis","description":"Genre counts, combinations, and evolution over time"}],"servers":[{"url":"https://{apiId}.execute-api.{region}.amazonaws.com","description":"AWS API Gateway (HTTP API, no stage prefix)","variables":{"apiId":{"default":"wodj3u0w11","description":"API Gateway ID (dev: wodj3u0w11)"},"region":{"default":"us-east-2","description":"AWS Region"}}}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Auth0 access token with audience https://api.origin-insights-new.fabric.com. See the Authentication section."}},"parameters":{"CacheBypass":{"name":"X-Cache-Bypass","in":"header","description":"Set to \"true\" to bypass cache and fetch fresh data","required":false,"schema":{"type":"string","enum":["true"]}},"Presence":{"name":"presence","in":"query","required":false,"description":"Current / Historical filter. `current` (default) counts titles on catalog now (content_presence_current). `historical` counts titles present at any time in the [present_from, present_to) window (content_presence_historical_filtered); with no window it means \"ever present\". Any other value → 400.","schema":{"type":"string","enum":["current","historical"],"default":"current"}},"PresentFrom":{"name":"present_from","in":"query","required":false,"description":"Filter to content that was present on or after this date (inclusive). Format YYYY-MM-DD. Uses interval overlap logic — content whose out_on is NULL or after this date. Only applies to historic catalog queries (historic overview endpoints, catalog with historical=true, and endpoints called with presence=historical, where a malformed date or present_from after present_to returns 400); ignored otherwise.","schema":{"type":"string","format":"date"}},"PresentTo":{"name":"present_to","in":"query","required":false,"description":"Filter to content that entered before this date (exclusive). Format YYYY-MM-DD. Uses interval overlap logic — content whose enter_on is before this date. Only applies to historic catalog queries (historic overview endpoints, catalog with historical=true, and endpoints called with presence=historical, where a malformed date or present_from after present_to returns 400); ignored otherwise.","schema":{"type":"string","format":"date"}},"IsOriginal":{"name":"is_original","in":"query","required":false,"description":"Filter by original content flag. Set to \"true\" to include only originals, \"false\" to exclude originals. Omit to return all content regardless of original status.","schema":{"type":"string","enum":["true","false"]}},"MetaPrimaryCompany":{"name":"primary_company","in":"query","required":false,"description":"Filter by primary producer company name(s), comma-separated","schema":{"type":"string"}},"MetaProductionCompanies":{"name":"production_companies","in":"query","required":false,"description":"Filter by production company name(s), comma-separated. Matches titles where any listed company appears in the production_companies field","schema":{"type":"string"}},"MetaParentCompany":{"name":"parent_company","in":"query","required":false,"description":"Filter by parent company group, semicolon-separated for multiple values (as returned by /insights/content_pulse/meta/parent_companies). Semicolon is used instead of comma because parent company names may contain commas (e.g., \"Netflix, Inc.\"). Joins new_cp_companies_group by uid where the ;-separated \"group\" column contains any of these values (type='Production').","schema":{"type":"string"}},"MetaYearMin":{"name":"year_min","in":"query","required":false,"description":"Filter by minimum release year (inclusive, range 1800–2100)","schema":{"type":"integer","minimum":1800,"maximum":2100}},"MetaYearMax":{"name":"year_max","in":"query","required":false,"description":"Filter by maximum release year (inclusive, range 1800–2100)","schema":{"type":"integer","minimum":1800,"maximum":2100}},"MetaPrimaryCountryIso":{"name":"primary_country_iso","in":"query","required":false,"description":"Filter by primary production country ISO code(s), comma-separated","schema":{"type":"string"}},"MetaCountriesIso":{"name":"countries_iso","in":"query","required":false,"description":"Filter by production location ISO code(s), comma-separated. Matches titles where any listed country appears in the countries_iso field","schema":{"type":"string"}},"MetaCast":{"name":"cast","in":"query","required":false,"description":"Filter by cast member name (partial match, case-sensitive). Comma-separated list matches any (OR).","schema":{"type":"string"}},"MetaKeywords":{"name":"keywords","in":"query","required":false,"description":"Filter by keyword(s), comma-separated. Matches titles where any listed keyword appears in the keywords field","schema":{"type":"string"}},"MetaPrimaryGenre":{"name":"primary_genre","in":"query","required":false,"description":"Filter by primary genre(s), comma-separated","schema":{"type":"string"}},"MetaGenres":{"name":"genres","in":"query","required":false,"description":"Filter by genre(s), comma-separated. Matches titles where any listed genre appears in the genres field","schema":{"type":"string"}},"MetaType":{"name":"type","in":"query","required":false,"description":"Filter by content type, comma-separated","schema":{"type":"string","enum":["Movie","Series"]}},"MetaScripted":{"name":"scripted","in":"query","required":false,"description":"Filter by scripted status. Accepts \"true\" (Scripted) or \"false\" (Unscripted); comma-separated for multi-value (e.g. \"true,false\").","schema":{"type":"string","enum":["true","false"]}}},"schemas":{"GenreCountResponse":{"type":"object","properties":{"message":{"type":"string"},"data":{"type":"object","properties":{"primary_genres":{"type":"array","items":{"type":"object","properties":{"genre":{"type":"string"},"title_count":{"type":"integer"}}}},"genres":{"type":"array","items":{"type":"object","properties":{"genre":{"type":"string"},"title_count":{"type":"integer"}}}}}},"userId":{"type":"string","nullable":true},"cached":{"type":"boolean"},"timestamp":{"type":"string","format":"date-time"}}},"ErrorResponse":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"}}}},"responses":{"Unauthorized":{"description":"Unauthorized - missing or invalid API key","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}},"Forbidden":{"description":"Request outside the token's authorization claims","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"dimension":{"type":"string","enum":["countries","platforms","products","role"]},"requested":{"type":"array","items":{"type":"string"}},"allowed":{"type":"array","items":{"type":"string"}}}}}}},"InternalError":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"paths":{"/insights/content_pulse/genre_analysis/genre_count":{"get":{"summary":"Get genre analysis genre count","description":"Count primary genres and individual genres (unwound from comma-separated genres column) across all unique UIDs in content_presence joined with content_metadata. Supports the Current / Historical filter (presence, present_from, present_to; OIP-1434).","operationId":"getGenreAnalysisGenreCount","tags":["Genre Analysis"],"parameters":[{"$ref":"#/components/parameters/CacheBypass"},{"$ref":"#/components/parameters/Presence"},{"$ref":"#/components/parameters/PresentFrom"},{"$ref":"#/components/parameters/PresentTo"},{"name":"country","in":"query","required":false,"description":"Filter by platform country code(s), comma-separated (e.g. AR,US)","schema":{"type":"string"}},{"name":"platform","in":"query","required":false,"description":"Filter by platform ID(s), comma-separated (e.g. 651,123)","schema":{"type":"string"}},{"name":"package_type","in":"query","required":false,"description":"Filter by package/business model type(s), comma-separated","schema":{"type":"string","enum":["subscription-vod","transaction-vod","free-vod","tv-everywhere","subscription-vod-ads"]}},{"$ref":"#/components/parameters/IsOriginal"},{"$ref":"#/components/parameters/MetaPrimaryCompany"},{"$ref":"#/components/parameters/MetaProductionCompanies"},{"$ref":"#/components/parameters/MetaParentCompany"},{"$ref":"#/components/parameters/MetaYearMin"},{"$ref":"#/components/parameters/MetaYearMax"},{"$ref":"#/components/parameters/MetaPrimaryCountryIso"},{"$ref":"#/components/parameters/MetaCountriesIso"},{"$ref":"#/components/parameters/MetaCast"},{"$ref":"#/components/parameters/MetaKeywords"},{"$ref":"#/components/parameters/MetaPrimaryGenre"},{"$ref":"#/components/parameters/MetaGenres"},{"$ref":"#/components/parameters/MetaType"},{"$ref":"#/components/parameters/MetaScripted"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenreCountResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalError"}}}}}}
```

## Get genre analysis genre combination

> Returns the percentage of titles in each primary genre that also belong to secondary genres, highlighting common genre combinations

```json
{"openapi":"3.0.3","info":{"title":"Insights API","version":"1.0.0"},"tags":[{"name":"Genre Analysis","description":"Genre counts, combinations, and evolution over time"}],"servers":[{"url":"https://{apiId}.execute-api.{region}.amazonaws.com","description":"AWS API Gateway (HTTP API, no stage prefix)","variables":{"apiId":{"default":"wodj3u0w11","description":"API Gateway ID (dev: wodj3u0w11)"},"region":{"default":"us-east-2","description":"AWS Region"}}}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Auth0 access token with audience https://api.origin-insights-new.fabric.com. See the Authentication section."}},"parameters":{"CacheBypass":{"name":"X-Cache-Bypass","in":"header","description":"Set to \"true\" to bypass cache and fetch fresh data","required":false,"schema":{"type":"string","enum":["true"]}},"IsOriginal":{"name":"is_original","in":"query","required":false,"description":"Filter by original content flag. Set to \"true\" to include only originals, \"false\" to exclude originals. Omit to return all content regardless of original status.","schema":{"type":"string","enum":["true","false"]}},"MetaPrimaryCompany":{"name":"primary_company","in":"query","required":false,"description":"Filter by primary producer company name(s), comma-separated","schema":{"type":"string"}},"MetaProductionCompanies":{"name":"production_companies","in":"query","required":false,"description":"Filter by production company name(s), comma-separated. Matches titles where any listed company appears in the production_companies field","schema":{"type":"string"}},"MetaParentCompany":{"name":"parent_company","in":"query","required":false,"description":"Filter by parent company group, semicolon-separated for multiple values (as returned by /insights/content_pulse/meta/parent_companies). Semicolon is used instead of comma because parent company names may contain commas (e.g., \"Netflix, Inc.\"). Joins new_cp_companies_group by uid where the ;-separated \"group\" column contains any of these values (type='Production').","schema":{"type":"string"}},"MetaYearMin":{"name":"year_min","in":"query","required":false,"description":"Filter by minimum release year (inclusive, range 1800–2100)","schema":{"type":"integer","minimum":1800,"maximum":2100}},"MetaYearMax":{"name":"year_max","in":"query","required":false,"description":"Filter by maximum release year (inclusive, range 1800–2100)","schema":{"type":"integer","minimum":1800,"maximum":2100}},"MetaPrimaryCountryIso":{"name":"primary_country_iso","in":"query","required":false,"description":"Filter by primary production country ISO code(s), comma-separated","schema":{"type":"string"}},"MetaCountriesIso":{"name":"countries_iso","in":"query","required":false,"description":"Filter by production location ISO code(s), comma-separated. Matches titles where any listed country appears in the countries_iso field","schema":{"type":"string"}},"MetaCast":{"name":"cast","in":"query","required":false,"description":"Filter by cast member name (partial match, case-sensitive). Comma-separated list matches any (OR).","schema":{"type":"string"}},"MetaKeywords":{"name":"keywords","in":"query","required":false,"description":"Filter by keyword(s), comma-separated. Matches titles where any listed keyword appears in the keywords field","schema":{"type":"string"}},"MetaPrimaryGenre":{"name":"primary_genre","in":"query","required":false,"description":"Filter by primary genre(s), comma-separated","schema":{"type":"string"}},"MetaGenres":{"name":"genres","in":"query","required":false,"description":"Filter by genre(s), comma-separated. Matches titles where any listed genre appears in the genres field","schema":{"type":"string"}},"MetaType":{"name":"type","in":"query","required":false,"description":"Filter by content type, comma-separated","schema":{"type":"string","enum":["Movie","Series"]}},"MetaScripted":{"name":"scripted","in":"query","required":false,"description":"Filter by scripted status. Accepts \"true\" (Scripted) or \"false\" (Unscripted); comma-separated for multi-value (e.g. \"true,false\").","schema":{"type":"string","enum":["true","false"]}}},"schemas":{"GenreCombinationResponse":{"type":"object","properties":{"message":{"type":"string"},"data":{"type":"object","properties":{"combinations":{"type":"array","items":{"type":"object","properties":{"primary_genre":{"type":"string"},"genre":{"type":"string"},"title_count":{"type":"integer"},"percentage":{"type":"number","format":"double"}}}}}},"userId":{"type":"string","nullable":true},"cached":{"type":"boolean"},"timestamp":{"type":"string","format":"date-time"}}},"ErrorResponse":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"}}}},"responses":{"Unauthorized":{"description":"Unauthorized - missing or invalid API key","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}},"Forbidden":{"description":"Request outside the token's authorization claims","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"dimension":{"type":"string","enum":["countries","platforms","products","role"]},"requested":{"type":"array","items":{"type":"string"}},"allowed":{"type":"array","items":{"type":"string"}}}}}}},"InternalError":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"paths":{"/insights/content_pulse/genre_analysis/genre_combination":{"get":{"summary":"Get genre analysis genre combination","description":"Returns the percentage of titles in each primary genre that also belong to secondary genres, highlighting common genre combinations","operationId":"getGenreAnalysisGenreCombination","tags":["Genre Analysis"],"parameters":[{"$ref":"#/components/parameters/CacheBypass"},{"name":"country","in":"query","required":false,"description":"Filter by platform country code(s), comma-separated (e.g. AR,US)","schema":{"type":"string"}},{"name":"platform","in":"query","required":false,"description":"Filter by platform ID(s), comma-separated (e.g. 651,123)","schema":{"type":"string"}},{"name":"package_type","in":"query","required":false,"description":"Filter by package/business model type(s), comma-separated","schema":{"type":"string","enum":["subscription-vod","transaction-vod","free-vod","tv-everywhere","subscription-vod-ads"]}},{"$ref":"#/components/parameters/IsOriginal"},{"$ref":"#/components/parameters/MetaPrimaryCompany"},{"$ref":"#/components/parameters/MetaProductionCompanies"},{"$ref":"#/components/parameters/MetaParentCompany"},{"$ref":"#/components/parameters/MetaYearMin"},{"$ref":"#/components/parameters/MetaYearMax"},{"$ref":"#/components/parameters/MetaPrimaryCountryIso"},{"$ref":"#/components/parameters/MetaCountriesIso"},{"$ref":"#/components/parameters/MetaCast"},{"$ref":"#/components/parameters/MetaKeywords"},{"$ref":"#/components/parameters/MetaPrimaryGenre"},{"$ref":"#/components/parameters/MetaGenres"},{"$ref":"#/components/parameters/MetaType"},{"$ref":"#/components/parameters/MetaScripted"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenreCombinationResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalError"}}}}}}
```

## Get genre analysis genre evolution

> Returns the count of titles per primary genre over time (month-over-month), using monthly availability snapshots. When \`is\_original\` is set, filters to UIDs that appear in \`content\_presence\_current\` with the matching is\_original flag.

```json
{"openapi":"3.0.3","info":{"title":"Insights API","version":"1.0.0"},"tags":[{"name":"Genre Analysis","description":"Genre counts, combinations, and evolution over time"}],"servers":[{"url":"https://{apiId}.execute-api.{region}.amazonaws.com","description":"AWS API Gateway (HTTP API, no stage prefix)","variables":{"apiId":{"default":"wodj3u0w11","description":"API Gateway ID (dev: wodj3u0w11)"},"region":{"default":"us-east-2","description":"AWS Region"}}}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Auth0 access token with audience https://api.origin-insights-new.fabric.com. See the Authentication section."}},"parameters":{"CacheBypass":{"name":"X-Cache-Bypass","in":"header","description":"Set to \"true\" to bypass cache and fetch fresh data","required":false,"schema":{"type":"string","enum":["true"]}},"IsOriginal":{"name":"is_original","in":"query","required":false,"description":"Filter by original content flag. Set to \"true\" to include only originals, \"false\" to exclude originals. Omit to return all content regardless of original status.","schema":{"type":"string","enum":["true","false"]}},"MetaPrimaryCompany":{"name":"primary_company","in":"query","required":false,"description":"Filter by primary producer company name(s), comma-separated","schema":{"type":"string"}},"MetaProductionCompanies":{"name":"production_companies","in":"query","required":false,"description":"Filter by production company name(s), comma-separated. Matches titles where any listed company appears in the production_companies field","schema":{"type":"string"}},"MetaParentCompany":{"name":"parent_company","in":"query","required":false,"description":"Filter by parent company group, semicolon-separated for multiple values (as returned by /insights/content_pulse/meta/parent_companies). Semicolon is used instead of comma because parent company names may contain commas (e.g., \"Netflix, Inc.\"). Joins new_cp_companies_group by uid where the ;-separated \"group\" column contains any of these values (type='Production').","schema":{"type":"string"}},"MetaYearMin":{"name":"year_min","in":"query","required":false,"description":"Filter by minimum release year (inclusive, range 1800–2100)","schema":{"type":"integer","minimum":1800,"maximum":2100}},"MetaYearMax":{"name":"year_max","in":"query","required":false,"description":"Filter by maximum release year (inclusive, range 1800–2100)","schema":{"type":"integer","minimum":1800,"maximum":2100}},"MetaPrimaryCountryIso":{"name":"primary_country_iso","in":"query","required":false,"description":"Filter by primary production country ISO code(s), comma-separated","schema":{"type":"string"}},"MetaCountriesIso":{"name":"countries_iso","in":"query","required":false,"description":"Filter by production location ISO code(s), comma-separated. Matches titles where any listed country appears in the countries_iso field","schema":{"type":"string"}},"MetaCast":{"name":"cast","in":"query","required":false,"description":"Filter by cast member name (partial match, case-sensitive). Comma-separated list matches any (OR).","schema":{"type":"string"}},"MetaKeywords":{"name":"keywords","in":"query","required":false,"description":"Filter by keyword(s), comma-separated. Matches titles where any listed keyword appears in the keywords field","schema":{"type":"string"}},"MetaPrimaryGenre":{"name":"primary_genre","in":"query","required":false,"description":"Filter by primary genre(s), comma-separated","schema":{"type":"string"}},"MetaGenres":{"name":"genres","in":"query","required":false,"description":"Filter by genre(s), comma-separated. Matches titles where any listed genre appears in the genres field","schema":{"type":"string"}},"MetaType":{"name":"type","in":"query","required":false,"description":"Filter by content type, comma-separated","schema":{"type":"string","enum":["Movie","Series"]}},"MetaScripted":{"name":"scripted","in":"query","required":false,"description":"Filter by scripted status. Accepts \"true\" (Scripted) or \"false\" (Unscripted); comma-separated for multi-value (e.g. \"true,false\").","schema":{"type":"string","enum":["true","false"]}}},"schemas":{"GenreEvolutionResponse":{"type":"object","properties":{"message":{"type":"string"},"data":{"type":"object","properties":{"evolution":{"type":"array","items":{"type":"object","properties":{"primary_genre":{"type":"string"},"year":{"type":"integer"},"month":{"type":"integer"},"title_count":{"type":"integer"}}}}}},"userId":{"type":"string","nullable":true},"cached":{"type":"boolean"},"timestamp":{"type":"string","format":"date-time"}}},"ErrorResponse":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"}}}},"responses":{"Unauthorized":{"description":"Unauthorized - missing or invalid API key","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}},"Forbidden":{"description":"Request outside the token's authorization claims","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"dimension":{"type":"string","enum":["countries","platforms","products","role"]},"requested":{"type":"array","items":{"type":"string"}},"allowed":{"type":"array","items":{"type":"string"}}}}}}},"InternalError":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"paths":{"/insights/content_pulse/genre_analysis/genre_evolution":{"get":{"summary":"Get genre analysis genre evolution","description":"Returns the count of titles per primary genre over time (month-over-month), using monthly availability snapshots. When `is_original` is set, filters to UIDs that appear in `content_presence_current` with the matching is_original flag.","operationId":"getGenreAnalysisGenreEvolution","tags":["Genre Analysis"],"parameters":[{"$ref":"#/components/parameters/CacheBypass"},{"name":"country","in":"query","required":false,"description":"Filter by country code(s) (iso_alpha2), comma-separated (e.g. AR,US)","schema":{"type":"string"}},{"name":"platform","in":"query","required":false,"description":"Filter by platform ID(s) (global_id), comma-separated (e.g. 651,123)","schema":{"type":"string"}},{"$ref":"#/components/parameters/IsOriginal"},{"$ref":"#/components/parameters/MetaPrimaryCompany"},{"$ref":"#/components/parameters/MetaProductionCompanies"},{"$ref":"#/components/parameters/MetaParentCompany"},{"$ref":"#/components/parameters/MetaYearMin"},{"$ref":"#/components/parameters/MetaYearMax"},{"$ref":"#/components/parameters/MetaPrimaryCountryIso"},{"$ref":"#/components/parameters/MetaCountriesIso"},{"$ref":"#/components/parameters/MetaCast"},{"$ref":"#/components/parameters/MetaKeywords"},{"$ref":"#/components/parameters/MetaPrimaryGenre"},{"$ref":"#/components/parameters/MetaGenres"},{"$ref":"#/components/parameters/MetaType"},{"$ref":"#/components/parameters/MetaScripted"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenreEvolutionResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalError"}}}}}}
```

## Get historic genre analysis genre count

> Count primary genres and individual genres across all unique UIDs in content\_presence\_historical joined with content\_metadata

```json
{"openapi":"3.0.3","info":{"title":"Insights API","version":"1.0.0"},"tags":[{"name":"Genre Analysis","description":"Genre counts, combinations, and evolution over time"}],"servers":[{"url":"https://{apiId}.execute-api.{region}.amazonaws.com","description":"AWS API Gateway (HTTP API, no stage prefix)","variables":{"apiId":{"default":"wodj3u0w11","description":"API Gateway ID (dev: wodj3u0w11)"},"region":{"default":"us-east-2","description":"AWS Region"}}}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Auth0 access token with audience https://api.origin-insights-new.fabric.com. See the Authentication section."}},"parameters":{"PresentFrom":{"name":"present_from","in":"query","required":false,"description":"Filter to content that was present on or after this date (inclusive). Format YYYY-MM-DD. Uses interval overlap logic — content whose out_on is NULL or after this date. Only applies to historic catalog queries (historic overview endpoints, catalog with historical=true, and endpoints called with presence=historical, where a malformed date or present_from after present_to returns 400); ignored otherwise.","schema":{"type":"string","format":"date"}},"PresentTo":{"name":"present_to","in":"query","required":false,"description":"Filter to content that entered before this date (exclusive). Format YYYY-MM-DD. Uses interval overlap logic — content whose enter_on is before this date. Only applies to historic catalog queries (historic overview endpoints, catalog with historical=true, and endpoints called with presence=historical, where a malformed date or present_from after present_to returns 400); ignored otherwise.","schema":{"type":"string","format":"date"}},"CacheBypass":{"name":"X-Cache-Bypass","in":"header","description":"Set to \"true\" to bypass cache and fetch fresh data","required":false,"schema":{"type":"string","enum":["true"]}},"IsOriginal":{"name":"is_original","in":"query","required":false,"description":"Filter by original content flag. Set to \"true\" to include only originals, \"false\" to exclude originals. Omit to return all content regardless of original status.","schema":{"type":"string","enum":["true","false"]}},"MetaPrimaryCompany":{"name":"primary_company","in":"query","required":false,"description":"Filter by primary producer company name(s), comma-separated","schema":{"type":"string"}},"MetaProductionCompanies":{"name":"production_companies","in":"query","required":false,"description":"Filter by production company name(s), comma-separated. Matches titles where any listed company appears in the production_companies field","schema":{"type":"string"}},"MetaParentCompany":{"name":"parent_company","in":"query","required":false,"description":"Filter by parent company group, semicolon-separated for multiple values (as returned by /insights/content_pulse/meta/parent_companies). Semicolon is used instead of comma because parent company names may contain commas (e.g., \"Netflix, Inc.\"). Joins new_cp_companies_group by uid where the ;-separated \"group\" column contains any of these values (type='Production').","schema":{"type":"string"}},"MetaYearMin":{"name":"year_min","in":"query","required":false,"description":"Filter by minimum release year (inclusive, range 1800–2100)","schema":{"type":"integer","minimum":1800,"maximum":2100}},"MetaYearMax":{"name":"year_max","in":"query","required":false,"description":"Filter by maximum release year (inclusive, range 1800–2100)","schema":{"type":"integer","minimum":1800,"maximum":2100}},"MetaPrimaryCountryIso":{"name":"primary_country_iso","in":"query","required":false,"description":"Filter by primary production country ISO code(s), comma-separated","schema":{"type":"string"}},"MetaCountriesIso":{"name":"countries_iso","in":"query","required":false,"description":"Filter by production location ISO code(s), comma-separated. Matches titles where any listed country appears in the countries_iso field","schema":{"type":"string"}},"MetaCast":{"name":"cast","in":"query","required":false,"description":"Filter by cast member name (partial match, case-sensitive). Comma-separated list matches any (OR).","schema":{"type":"string"}},"MetaKeywords":{"name":"keywords","in":"query","required":false,"description":"Filter by keyword(s), comma-separated. Matches titles where any listed keyword appears in the keywords field","schema":{"type":"string"}},"MetaPrimaryGenre":{"name":"primary_genre","in":"query","required":false,"description":"Filter by primary genre(s), comma-separated","schema":{"type":"string"}},"MetaGenres":{"name":"genres","in":"query","required":false,"description":"Filter by genre(s), comma-separated. Matches titles where any listed genre appears in the genres field","schema":{"type":"string"}},"MetaType":{"name":"type","in":"query","required":false,"description":"Filter by content type, comma-separated","schema":{"type":"string","enum":["Movie","Series"]}},"MetaScripted":{"name":"scripted","in":"query","required":false,"description":"Filter by scripted status. Accepts \"true\" (Scripted) or \"false\" (Unscripted); comma-separated for multi-value (e.g. \"true,false\").","schema":{"type":"string","enum":["true","false"]}}},"schemas":{"GenreCountResponse":{"type":"object","properties":{"message":{"type":"string"},"data":{"type":"object","properties":{"primary_genres":{"type":"array","items":{"type":"object","properties":{"genre":{"type":"string"},"title_count":{"type":"integer"}}}},"genres":{"type":"array","items":{"type":"object","properties":{"genre":{"type":"string"},"title_count":{"type":"integer"}}}}}},"userId":{"type":"string","nullable":true},"cached":{"type":"boolean"},"timestamp":{"type":"string","format":"date-time"}}},"ErrorResponse":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"}}}},"responses":{"Unauthorized":{"description":"Unauthorized - missing or invalid API key","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}},"Forbidden":{"description":"Request outside the token's authorization claims","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"dimension":{"type":"string","enum":["countries","platforms","products","role"]},"requested":{"type":"array","items":{"type":"string"}},"allowed":{"type":"array","items":{"type":"string"}}}}}}},"InternalError":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"paths":{"/insights/content_pulse/genre_analysis/historic/genre_count":{"get":{"summary":"Get historic genre analysis genre count","description":"Count primary genres and individual genres across all unique UIDs in content_presence_historical joined with content_metadata","operationId":"getHistoricGenreAnalysisGenreCount","tags":["Genre Analysis"],"parameters":[{"$ref":"#/components/parameters/PresentFrom"},{"$ref":"#/components/parameters/PresentTo"},{"$ref":"#/components/parameters/CacheBypass"},{"name":"country","in":"query","required":false,"description":"Filter by platform country code(s), comma-separated (e.g. AR,US)","schema":{"type":"string"}},{"name":"platform","in":"query","required":false,"description":"Filter by platform ID(s), comma-separated (e.g. 651,123)","schema":{"type":"string"}},{"name":"package_type","in":"query","required":false,"description":"Filter by package/business model type(s), comma-separated","schema":{"type":"string","enum":["subscription-vod","transaction-vod","free-vod","tv-everywhere","subscription-vod-ads"]}},{"$ref":"#/components/parameters/IsOriginal"},{"$ref":"#/components/parameters/MetaPrimaryCompany"},{"$ref":"#/components/parameters/MetaProductionCompanies"},{"$ref":"#/components/parameters/MetaParentCompany"},{"$ref":"#/components/parameters/MetaYearMin"},{"$ref":"#/components/parameters/MetaYearMax"},{"$ref":"#/components/parameters/MetaPrimaryCountryIso"},{"$ref":"#/components/parameters/MetaCountriesIso"},{"$ref":"#/components/parameters/MetaCast"},{"$ref":"#/components/parameters/MetaKeywords"},{"$ref":"#/components/parameters/MetaPrimaryGenre"},{"$ref":"#/components/parameters/MetaGenres"},{"$ref":"#/components/parameters/MetaType"},{"$ref":"#/components/parameters/MetaScripted"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenreCountResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalError"}}}}}}
```

## Get historic genre analysis genre combination

> Returns the percentage of titles in each primary genre that also belong to secondary genres using historic availability data

```json
{"openapi":"3.0.3","info":{"title":"Insights API","version":"1.0.0"},"tags":[{"name":"Genre Analysis","description":"Genre counts, combinations, and evolution over time"}],"servers":[{"url":"https://{apiId}.execute-api.{region}.amazonaws.com","description":"AWS API Gateway (HTTP API, no stage prefix)","variables":{"apiId":{"default":"wodj3u0w11","description":"API Gateway ID (dev: wodj3u0w11)"},"region":{"default":"us-east-2","description":"AWS Region"}}}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Auth0 access token with audience https://api.origin-insights-new.fabric.com. See the Authentication section."}},"parameters":{"PresentFrom":{"name":"present_from","in":"query","required":false,"description":"Filter to content that was present on or after this date (inclusive). Format YYYY-MM-DD. Uses interval overlap logic — content whose out_on is NULL or after this date. Only applies to historic catalog queries (historic overview endpoints, catalog with historical=true, and endpoints called with presence=historical, where a malformed date or present_from after present_to returns 400); ignored otherwise.","schema":{"type":"string","format":"date"}},"PresentTo":{"name":"present_to","in":"query","required":false,"description":"Filter to content that entered before this date (exclusive). Format YYYY-MM-DD. Uses interval overlap logic — content whose enter_on is before this date. Only applies to historic catalog queries (historic overview endpoints, catalog with historical=true, and endpoints called with presence=historical, where a malformed date or present_from after present_to returns 400); ignored otherwise.","schema":{"type":"string","format":"date"}},"CacheBypass":{"name":"X-Cache-Bypass","in":"header","description":"Set to \"true\" to bypass cache and fetch fresh data","required":false,"schema":{"type":"string","enum":["true"]}},"IsOriginal":{"name":"is_original","in":"query","required":false,"description":"Filter by original content flag. Set to \"true\" to include only originals, \"false\" to exclude originals. Omit to return all content regardless of original status.","schema":{"type":"string","enum":["true","false"]}},"MetaPrimaryCompany":{"name":"primary_company","in":"query","required":false,"description":"Filter by primary producer company name(s), comma-separated","schema":{"type":"string"}},"MetaProductionCompanies":{"name":"production_companies","in":"query","required":false,"description":"Filter by production company name(s), comma-separated. Matches titles where any listed company appears in the production_companies field","schema":{"type":"string"}},"MetaParentCompany":{"name":"parent_company","in":"query","required":false,"description":"Filter by parent company group, semicolon-separated for multiple values (as returned by /insights/content_pulse/meta/parent_companies). Semicolon is used instead of comma because parent company names may contain commas (e.g., \"Netflix, Inc.\"). Joins new_cp_companies_group by uid where the ;-separated \"group\" column contains any of these values (type='Production').","schema":{"type":"string"}},"MetaYearMin":{"name":"year_min","in":"query","required":false,"description":"Filter by minimum release year (inclusive, range 1800–2100)","schema":{"type":"integer","minimum":1800,"maximum":2100}},"MetaYearMax":{"name":"year_max","in":"query","required":false,"description":"Filter by maximum release year (inclusive, range 1800–2100)","schema":{"type":"integer","minimum":1800,"maximum":2100}},"MetaPrimaryCountryIso":{"name":"primary_country_iso","in":"query","required":false,"description":"Filter by primary production country ISO code(s), comma-separated","schema":{"type":"string"}},"MetaCountriesIso":{"name":"countries_iso","in":"query","required":false,"description":"Filter by production location ISO code(s), comma-separated. Matches titles where any listed country appears in the countries_iso field","schema":{"type":"string"}},"MetaCast":{"name":"cast","in":"query","required":false,"description":"Filter by cast member name (partial match, case-sensitive). Comma-separated list matches any (OR).","schema":{"type":"string"}},"MetaKeywords":{"name":"keywords","in":"query","required":false,"description":"Filter by keyword(s), comma-separated. Matches titles where any listed keyword appears in the keywords field","schema":{"type":"string"}},"MetaPrimaryGenre":{"name":"primary_genre","in":"query","required":false,"description":"Filter by primary genre(s), comma-separated","schema":{"type":"string"}},"MetaGenres":{"name":"genres","in":"query","required":false,"description":"Filter by genre(s), comma-separated. Matches titles where any listed genre appears in the genres field","schema":{"type":"string"}},"MetaType":{"name":"type","in":"query","required":false,"description":"Filter by content type, comma-separated","schema":{"type":"string","enum":["Movie","Series"]}},"MetaScripted":{"name":"scripted","in":"query","required":false,"description":"Filter by scripted status. Accepts \"true\" (Scripted) or \"false\" (Unscripted); comma-separated for multi-value (e.g. \"true,false\").","schema":{"type":"string","enum":["true","false"]}}},"schemas":{"GenreCombinationResponse":{"type":"object","properties":{"message":{"type":"string"},"data":{"type":"object","properties":{"combinations":{"type":"array","items":{"type":"object","properties":{"primary_genre":{"type":"string"},"genre":{"type":"string"},"title_count":{"type":"integer"},"percentage":{"type":"number","format":"double"}}}}}},"userId":{"type":"string","nullable":true},"cached":{"type":"boolean"},"timestamp":{"type":"string","format":"date-time"}}},"ErrorResponse":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"}}}},"responses":{"Unauthorized":{"description":"Unauthorized - missing or invalid API key","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}},"Forbidden":{"description":"Request outside the token's authorization claims","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"dimension":{"type":"string","enum":["countries","platforms","products","role"]},"requested":{"type":"array","items":{"type":"string"}},"allowed":{"type":"array","items":{"type":"string"}}}}}}},"InternalError":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"paths":{"/insights/content_pulse/genre_analysis/historic/genre_combination":{"get":{"summary":"Get historic genre analysis genre combination","description":"Returns the percentage of titles in each primary genre that also belong to secondary genres using historic availability data","operationId":"getHistoricGenreAnalysisGenreCombination","tags":["Genre Analysis"],"parameters":[{"$ref":"#/components/parameters/PresentFrom"},{"$ref":"#/components/parameters/PresentTo"},{"$ref":"#/components/parameters/CacheBypass"},{"name":"country","in":"query","required":false,"description":"Filter by platform country code(s), comma-separated (e.g. AR,US)","schema":{"type":"string"}},{"name":"platform","in":"query","required":false,"description":"Filter by platform ID(s), comma-separated (e.g. 651,123)","schema":{"type":"string"}},{"name":"package_type","in":"query","required":false,"description":"Filter by package/business model type(s), comma-separated","schema":{"type":"string","enum":["subscription-vod","transaction-vod","free-vod","tv-everywhere","subscription-vod-ads"]}},{"$ref":"#/components/parameters/IsOriginal"},{"$ref":"#/components/parameters/MetaPrimaryCompany"},{"$ref":"#/components/parameters/MetaProductionCompanies"},{"$ref":"#/components/parameters/MetaParentCompany"},{"$ref":"#/components/parameters/MetaYearMin"},{"$ref":"#/components/parameters/MetaYearMax"},{"$ref":"#/components/parameters/MetaPrimaryCountryIso"},{"$ref":"#/components/parameters/MetaCountriesIso"},{"$ref":"#/components/parameters/MetaCast"},{"$ref":"#/components/parameters/MetaKeywords"},{"$ref":"#/components/parameters/MetaPrimaryGenre"},{"$ref":"#/components/parameters/MetaGenres"},{"$ref":"#/components/parameters/MetaType"},{"$ref":"#/components/parameters/MetaScripted"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenreCombinationResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalError"}}}}}}
```
