Skip to main content

API Reference

Authorization

All requests to the REST API need to have an X-API-Key header.

Functions

The Media API V2 offers several types of endpoints:

The table below summarizes individual endpoints for each category.

EndpointDescription
Request200 Response
NLP: Semantic analysis of articles
POST /v2/nlp/analyze

Semantic analysis of an article returning tags, entities, sentiment, etc.

NlpRequest

Analysis (same as G3 response)

POST /v2/nlp/analyze/feedbackFeedback on a particular analysis
AnalyzeFeedback

Knowledge base: Endpoints returning real-world information about tags and entities

POST /v2/knowledgebase/detailsInformation about tags and entities

GkbItemsInfoRequest

Map[string, Details]
POST /v2/knowledgebase/infoboxes

Information about tags and entities optimized for UI display

GkbItemsInfoRequest

Map[string, LangValueInfoBox]

POST /v2/knowledgebase/redirects

Replacements for deprecated knowledge base entities

GkbItemsRedirectsRequest

List[Redirects]
POST /v2/knowledgebase/searchSearching knowledge base for entities

GkbItemsSearchRequest

List[SearchResults]
POST /v2/knowledgebase/stdforms

Standard forms of tags and entities in a particular language

GkbItemsStdFormRequest

Map[string, LangValueString]

Editorial Tags: Configuration of customer-specific topic tags

POST /v2/customize/editorial_tag/createCreating a new editorial tag
EditorialTagEditorialTag
GET /v2/customize/editorial_tag/listList of all existing editorial tags

EditorialTagListResponse

GET /v2/customize/editorial_tag/search

Searching for editorial tags by their name or ID

EditorialTagSearchResponse

GET /v2/customize/editorial_tag/{gkbId}

Get, update or delete a particular editorial tag

EditorialTag
PUT /v2/customize/editorial_tag/{gkbId}

Get, update or delete a particular editorial tag

EditorialTagEditorialTag
DELETE /v2/customize/editorial_tag/{gkbId}

Get, update or delete a particular editorial tag

Article Recommender: Endpoints recommending related articles for articles

GET /v2/articlesAvailable article datasets
List[string]

GET /v2/articles/{dataset}/{art_id}

Adding, getting, or deleting an article to/from an index

Article

PUT /v2/articles/{dataset}/{art_id}

Adding, getting, or deleting an article to/from an index

ArticleMessage

DELETE /v2/articles/{dataset}/{art_id}

Adding, getting, or deleting an article to/from an index

Message
POST /v2/articles/{dataset}/recommendRecommend articles for an article
RecommendArticlesArticlesResponse

POST /v2/articles/{dataset}/recommend/feedback

Feedback on a particular recommendation

RecommendArticlesFeedback

Message

Photo Recommender: Endpoints recommending photos for articles

GET /v2/photosSupported photo banks
List[string]
POST /v2/photos/{dataset}/recommendRecommend photos for an article
PhotosRequest

PhotosRecommendation

POST /v2/photos/{dataset}/recommend/feedbackFeedback on a particular recommendation
RecommendFeedback

See Swagger documentation for more technical info.