Knowledge Panel
FacetName is the model that have list of values facet_tag are the list of values connecting to FacetName eg:- category/beer, here beer is the value
Query Parameters
Facet tag string for the items to search in the database eg:- category
etc.
value tag string for the items to search in the database eg:-en:beers
etc.
secondary facet tag string for the items to search in the database eg:-brand
etc.
secondary value tag string for the items to search in the database eg:-lidl
etc.
To return knowledge panels in native language, default lang: en
.
To return knowledge panels for specific country, ex: france
or fr
.
a list of panel names to include, it is incompatible with exclude
parameter. If neither include
or exclude
is provided, we display hunger_game
and wikidata
by default.
a list of panel names to exclude, it is incompatible with include
parameter
Response Body
curl -X GET "https://loading/knowledge_panel?facet_tag=string&value_tag=string&sec_facet_tag=string&sec_value_tag=string&lang_code=string&country=string&include=last_edits&exclude=last_edits"
{
"knowledge_panels": {
"HungerGames": {
"elements": [
{
"element_type": "string",
"text_element": {
"html": "string",
"source_text": "string",
"source_url": "string"
}
}
],
"title_element": {
"title": "string"
}
},
"Quality": {
"elements": [
{
"element_type": "string",
"text_element": {
"html": "string",
"source_text": "string",
"source_url": "string"
}
}
],
"title_element": {
"title": "string"
}
},
"LastEdits": {
"elements": [
{
"element_type": "string",
"text_element": {
"html": "string",
"source_text": "string",
"source_url": "string"
}
}
],
"title_element": {
"title": "string"
}
},
"WikiData": {
"elements": [
{
"element_type": "string",
"text_element": {
"html": "string",
"source_text": "string",
"source_url": "string"
}
}
],
"title_element": {
"title": "string"
}
}
}
}
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}