Knowledge panel

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

GET
/knowledge_panel

Query Parameters

facet_tagFacet tag string

Facet tag string for the items to search in the database eg:- category etc.

value_tag?Value tag string

value tag string for the items to search in the database eg:-en:beers etc.

sec_facet_tag?secondary facet tag string

secondary facet tag string for the items to search in the database eg:-brand etc.

sec_value_tag?secondary value tag string

secondary value tag string for the items to search in the database eg:-lidl etc.

lang_code?language code string

To return knowledge panels in native language, default lang: en.

country?Country tag string

To return knowledge panels for specific country, ex: france or fr.

include?Panel name exclude list

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.

exclude?Panel name exclude list

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"
    }
  ]
}