How Can We Help?
API Get
One of the distribution types you always have available for every channel in coded content, is API Get. You will be provided an API Key alongside every channel that will allow you into the appropriate endpoints below.
- Content
- Content Types
Content | |||
Content for your channel. This returns all content for the league & query parameters selected. | |||
GET | https://app.codedcontent.ai/api/content/<league>/ | ||
Query String Parameters | |||
Name | Type | Required | Value |
key | string | true | 0d79ddc7c6e243bc937c1d0b49bba645 |
content_type | string | false | nba-game-preview |
date_start | date | false | YYYY-MM-DD (2025-01-15) |
date_end | date | false | YYYY-MM-DD (2025-01-15) |
URL Template Parameters | |||
Parameter | Type | Required | Value |
league | string | true | Valid Entries:allnbanflmlbnhlcbbcfb |
Data Dictionary | |||
Name | Type | Description | |
content_id | int | CC unique identifier for this specific piece of content. We always send this. | |
channel_name | str | The name of the ‘Channel’ the content was generated for | |
league | str | The league associated with the content. | |
type | str | The CC content type split up into type+sub_type | |
sub_type | str | The CC content type split up into type+sub_type | |
content_type | str | CC type of content generated (e.g., NFL Player News – Transaction, NBA Player News – Injury, etc). | |
date_generated | date | The date and time when the content was generated. | |
content | obj | By default it contains an “article” element with the main body of the content in <html> form. See below for Article Object Splitting if you want to customize this. Can also contain: “title”, “seo_title”, “meta_description”, “primary_keyword”, “excerpt”, “tags” | |
game_id | int | SDIO Team identifier for the specific game. | |
game_away_team_id | int | SDIO Team identifier for the away team. | |
game_away_team_name | str | City + Team of the away team | |
game_home_team_id | int | SDIO Team identifier for the home team. | |
game_home_team_name | str | City + Team of the home team | |
player_team_id | int | SDIO Team identifier for the player involved | |
player_team_name | str | Team Name of the player | |
player_name | str | Full Name of the Player | |
player_first_name | str | First Name of the Player | |
player_last_name | str | Last Name of the Player | |
player_id | int | SDIO Player identifier for a specific player. | |
player_id_fanduel_dfs | int | Fanduel DFS Player Identifier for a specific player. | |
author_id | int | What is the value of the author needed if you want an author_id | |
featured_image_url | str | If you have a featured image concept, this will contain the url we are using. We can define a “standard” image per type, or with IMAGN integration can send a relevant image. | |
featured_image_caption | str | The caption coming in with the image. | |
categories | obj | On object of categories to be assigned. |
Content Types | |||
Content Types dictionary so you can get the correct value into the content parameter. All content types that are active are returned. | |||
GET | https://app.codedcontent.ai/api/content-types/ | ||
Query String Parameters | |||
Name | Type | Required | Value |
key | string | true | 0d79ddc7c6e243bc937c1d0b49bba645 |
URL Template Parameters | |||
Parameter | Type | Required | Value |
Data Dictionary | |||
Name | Type | Description | |
name | str | Visual name of the Content Type | |
league | str | The league the content type is valid for | |
content_type | str | The high level content type | |
sub_type | str | The sub level of content type if there is one | |
api_name | str | The value you will use in your “Content” filter for content_type |