Get Suggestions API Route

The Get Suggestions API Route fetches the suggestions generated by the Artificial Intelligence Core with different useful keys. It can be used in the following endpoint.

/api/get_suggestions/<youtube_video_id>

Replace the <youtube_video_id> with the ID of an actual Youtube Video.

The keys received in the JSON format are listed and explained below.

{
    "name": ...
    "type": ...
    "salience": ...
    "wiki": ...
}
Name Type
name The name of the entity
type Type of the entity
salience The salience of entity based on other factors
wiki The wikipedia url for the entity

Example 1

Here is an example of a Youtube Video.

How internet works

Its url is https://www.youtube.com/watch?v=LVV_93mBfSU where the id is LVV_93mBfSU. After putting it in the url /api/get_suggestions/<youtube_video_id> we get the following result in json.

[
    {
    "name": "search engine",
    "type": "CONSUMER_GOOD",
    "salience": 0.5258312821388245,
    "wiki": "-",
    "mid": "-"
    },
    {
    "name": "internet",
    "type": "OTHER",
    "salience": 0.053129713982343674,
    "wiki": "-",
    "mid": "-"
    },
    {
    "name": "teams",
    "type": "ORGANIZATION",
    "salience": 0.03659219294786453,
    "wiki": "-",
    "mid": "-"
    },
    {
    "name": "Mars",
    "type": "LOCATION",
    "salience": 0.030541134998202324,
    "wiki": "https://en.wikipedia.org/wiki/Mars",
    "mid": "/m/09cws"
    },
    {
    "name": "name",
    "type": "OTHER",
    "salience": 0.02764585241675377,
    "wiki": "-",
    "mid": "-"
    },
...
]