> ## Documentation Index
> Fetch the complete documentation index at: https://docs.encrata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Knowledge

> Resolve a person, company, or topic into a single entity card from Google, Wikipedia, Wikidata, and DuckDuckGo.

## Authentication

Requires an API key in the `Authorization` header.

```bash theme={"dark"}
Authorization: Bearer YOUR_API_KEY
```

## Request

<ParamField body="query" type="string" required>
  The person, company, or topic to look up.
</ParamField>

## Response

Returns the standard Google lookup shape with the knowledge sections populated: `knowledge_graph`, `answer_box`, and an `enrichment` object carrying Wikipedia, Wikidata, and DuckDuckGo entities.

<ResponseField name="knowledge_graph" type="object">Google knowledge panel (title, type, description, website, imageUrl, attributes).</ResponseField>
<ResponseField name="answer_box" type="object">Google answer box (title, answer, snippet, link).</ResponseField>

<ResponseField name="enrichment" type="object">
  <Expandable title="enrichment">
    <ResponseField name="wikipedia" type="object">Wikipedia entity summary (title, extract, url, thumbnail\_url).</ResponseField>
    <ResponseField name="wikidata" type="object">Wikidata entity match (id, label, description, url).</ResponseField>
    <ResponseField name="duckduckgo" type="object">DuckDuckGo Instant Answer (heading, abstract, answer, definition).</ResponseField>
  </Expandable>
</ResponseField>

<ResponseExample>
  ```json theme={"dark"}
  {
    "query": "Ada Lovelace",
    "type": "search",
    "credits": 1,
    "knowledge_graph": {
      "title": "Ada Lovelace",
      "type": "Mathematician",
      "description": "English mathematician, writer"
    },
    "enrichment": {
      "wikipedia": {
        "title": "Ada Lovelace",
        "extract": "Augusta Ada King, Countess of Lovelace, was an English mathematician...",
        "url": "https://en.wikipedia.org/wiki/Ada_Lovelace"
      },
      "wikidata": { "id": "Q7259", "label": "Ada Lovelace", "description": "English mathematician" }
    }
  }
  ```
</ResponseExample>

## Credits

1 credit per lookup.
