# getEntity

**Identifier:** `gdelt_getEntity`

**Provider:** [GDELT](https://kirha.com/providers/gdelt.md)

Get a news profile of a person, organization or place: coverage volume and daily timeline, public offices, recent events and stories, and the entities most often reported alongside it.

## Run it with the CLI

```bash
kirha tools run gdelt_getEntity \
  --input '{
    "entityId": "<entityId>"
  }'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "gdelt_getEntity",
  "input": {
    "entityId": "<entityId>"
  }
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "dateEnd": {
      "description": "YYYY-MM-DD, max 30 days after dateStart",
      "type": "string"
    },
    "dateStart": {
      "description": "YYYY-MM-DD, data from 2026-03-01",
      "type": "string"
    },
    "entityId": {
      "description": "From resolveEntity",
      "type": "string"
    },
    "limit": {
      "default": 10,
      "description": "Recent events and stories",
      "maximum": 20,
      "minimum": 1,
      "type": "number"
    }
  },
  "required": [
    "entityId"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "articleCount": {
      "type": "number"
    },
    "coOccurringEntities": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "storyCount": {
            "type": "number"
          },
          "type": {
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "context": {
      "type": "string"
    },
    "currentOffices": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "dailyArticles": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "articleCount": {
            "type": "number"
          },
          "date": {
            "type": "string"
          }
        },
        "required": [
          "date",
          "articleCount"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "description": {
      "type": "string"
    },
    "entityId": {
      "type": "string"
    },
    "eventCount": {
      "type": "number"
    },
    "eventIds": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "name": {
      "type": "string"
    },
    "recentEvents": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "category": {
            "type": "string"
          },
          "eventDate": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "recentStories": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "articleCount": {
            "type": "number"
          },
          "id": {
            "type": "string"
          },
          "storyDate": {
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "storyCount": {
      "type": "number"
    },
    "storyIds": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "type": {
      "type": "string"
    },
    "wikipediaUrl": {
      "type": "string"
    }
  },
  "required": [
    "context",
    "entityId",
    "name",
    "currentOffices",
    "dailyArticles",
    "recentEvents",
    "recentStories",
    "coOccurringEntities",
    "eventIds",
    "storyIds"
  ],
  "type": "object"
}
```

## Related tools

Other GDELT tools that this tool refers to, or that refer to it.

- [`resolveEntity`](https://kirha.com/providers/gdelt/resolveEntity.md)

-----

[All GDELT tools](https://kirha.com/providers/gdelt.md) · [< Back to tools list](https://kirha.com/tools.md)