# Content Analysis on Onekey > 9 endpoints for Content Analysis (1 stable, 8 beta), 1 to 74 credits each. Category: News & publishing. One key, one JSON shape. Base URL: https://api.onekey.dev Auth: header `x-api-key: `. Call shape: `GET /v1/{platform}/{endpoint}?{params}`. Every response is `{success, data, metadata, error}`; check `success` first. Cost is in `metadata.credits_charged`. Free when served from cache (0.2 credit for a cached response over 100 KB). Failed and not-found calls are refunded. Status: stable = verified against the live source; beta = not yet verified, fields may be missing. Access: 8 of 9 endpoints are marked "needs a pack" or "may need a pack": free-grant credits reach only the open fetch path; a verified email and a purchased pack unlock the rest. Page: https://onekey.dev/platforms/content_analysis Reference (Markdown): https://onekey.dev/docs/api/content_analysis.md All docs: https://onekey.dev/llms.txt ## Canonical fields returned Unified-schema fields (same names on every platform), with how many of the 9 mapped Content Analysis endpoints return each: - `entity.name` (string): 4 - `entity.id` (string): 3 - `content.createdAt` (ISO 8601 date): 2 - `entity.country` (string): 1 - `entity.type` (string): 1 - plus 15 platform-specific fields under `ext.` ## Endpoints ### content_analysis.categories Product and service category taxonomy used by the web-mention analytics endpoints. - Price: 2 credits per fresh call. Status: beta. Access: needs a pack. Returns: a list. - Request: `GET https://api.onekey.dev/v1/content_analysis/categories` with header `x-api-key: YOUR_API_KEY` - Parameters: none - Fields returned: `entity.id`, `entity.name`, `ext.parentCode` - Reference: https://onekey.dev/docs/api/content_analysis/categories.md ### content_analysis.category_trends Monthly mention volume and sentiment of a product or service category since a start date. - Price: 74 credits per fresh call. Status: beta. Access: needs a pack. Returns: a list. - Request: `GET https://api.onekey.dev/v1/content_analysis/category_trends?category_code=10021&date_from=2025-01-01` with header `x-api-key: YOUR_API_KEY` - Parameters: - `category_code` (string, required): Numeric category code from content_analysis.categories (10021 = Apparel) - `date_from` (string, required): Start of the date range, yyyy-mm-dd (data exists from 2022-10-31) - Fields returned: `content.createdAt`, `ext.totalCount`, `ext.rank`, `ext.sentimentConnotations`, `ext.connotationTypes` - Reference: https://onekey.dev/docs/api/content_analysis/category_trends.md ### content_analysis.filters Filterable fields of the web-mention analytics endpoints, by endpoint. - Price: 2 credits per fresh call. Status: beta. Access: needs a pack. Returns: a list. - Request: `GET https://api.onekey.dev/v1/content_analysis/filters` with header `x-api-key: YOUR_API_KEY` - Parameters: none - Fields returned: `entity.name`, `ext.filters` - Reference: https://onekey.dev/docs/api/content_analysis/filters.md ### content_analysis.languages Languages supported by the web-mention analytics endpoints (code and name). - Price: 2 credits per fresh call. Status: beta. Access: needs a pack. Returns: a list. - Request: `GET https://api.onekey.dev/v1/content_analysis/languages` with header `x-api-key: YOUR_API_KEY` - Parameters: none - Fields returned: `entity.id`, `entity.name` - Reference: https://onekey.dev/docs/api/content_analysis/languages.md ### content_analysis.locations Countries supported by the web-mention analytics endpoints (code, name, ISO country). - Price: 2 credits per fresh call. Status: beta. Access: needs a pack. Returns: a list. - Request: `GET https://api.onekey.dev/v1/content_analysis/locations` with header `x-api-key: YOUR_API_KEY` - Parameters: none - Fields returned: `entity.id`, `entity.name`, `entity.country`, `entity.type` - Reference: https://onekey.dev/docs/api/content_analysis/locations.md ### content_analysis.phrase_trends Monthly volume and sentiment of web mentions of a keyword since a start date. - Price: 74 credits per fresh call. Status: beta. Access: needs a pack. Returns: a list. - Request: `GET https://api.onekey.dev/v1/content_analysis/phrase_trends?keyword=logitech%20mouse&date_from=2025-01-01` with header `x-api-key: YOUR_API_KEY` - Parameters: - `keyword` (string, required): Brand or term to trend - `date_from` (string, required): Start of the date range, yyyy-mm-dd (data exists from 2022-10-31) - Fields returned: `content.createdAt`, `ext.totalCount`, `ext.rank`, `ext.sentimentConnotations`, `ext.connotationTypes` - Reference: https://onekey.dev/docs/api/content_analysis/phrase_trends.md ### content_analysis.rating_distribution Rating histogram of web mentions of a product or term (count per rating bin). - Price: 70 credits per fresh call. Status: beta. Access: needs a pack. Returns: a list. - Request: `GET https://api.onekey.dev/v1/content_analysis/rating_distribution?keyword=logitech%20mouse` with header `x-api-key: YOUR_API_KEY` - Parameters: - `keyword` (string, required): Product or term to build the rating histogram for - Fields returned: `ext.ratingMin`, `ext.ratingMax`, `ext.totalCount`, `ext.rank` - Reference: https://onekey.dev/docs/api/content_analysis/rating_distribution.md ### content_analysis.sentiment Tone histogram of recent news coverage of a keyword (mention counts per tone bin, negative to positive). - Price: 1 credit per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/content_analysis/sentiment?keyword=climate` with header `x-api-key: YOUR_API_KEY` - Parameters: - `keyword` (string, required): Keyword or phrase (supports quotes and operators) - Fields returned: `ext.toneBin`, `ext.mentionCount` - Reference: https://onekey.dev/docs/api/content_analysis/sentiment.md ### content_analysis.summary Aggregate web mentions of a keyword: volume, rank, top domains, sentiment, page types, countries, languages. - Price: 70 credits per fresh call. Status: beta. Access: needs a pack. Returns: one record. - Request: `GET https://api.onekey.dev/v1/content_analysis/summary?keyword=logitech%20mouse` with header `x-api-key: YOUR_API_KEY` - Parameters: - `keyword` (string, required): Brand or term; wrap in escaped double quotes for an exact phrase - Fields returned: `ext.totalCount`, `ext.rank`, `ext.topDomains`, `ext.sentimentConnotations`, `ext.connotationTypes`, `ext.textCategories`, `ext.pageTypes`, `ext.countries`, `ext.languages` - Reference: https://onekey.dev/docs/api/content_analysis/summary.md ## Sample request ```bash curl "https://api.onekey.dev/v1/content_analysis/sentiment?keyword=climate" \ -H "x-api-key: YOUR_API_KEY" ```