# resolveEntity

**Identifier:** `gdelt_resolveEntity`

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

Resolve a person, organization or place name to GDELT Cloud entity IDs with 30-day news coverage and public offices. Call first to get the entityId that the event, story and entity tools filter on.

## Run it with the CLI

```bash
kirha tools run gdelt_resolveEntity \
  --input '{
    "name": "<name>"
  }'
```

`--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_resolveEntity",
  "input": {
    "name": "<name>"
  }
}'
```

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": {
    "country": {
      "description": "ISO-3, comma-separated",
      "type": "string"
    },
    "limit": {
      "default": 5,
      "maximum": 10,
      "minimum": 1,
      "type": "number"
    },
    "name": {
      "description": "Name, alias or acronym, Latin script",
      "type": "string"
    },
    "type": {
      "enum": [
        "person",
        "organization",
        "place"
      ],
      "type": "string"
    }
  },
  "required": [
    "name"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "entities": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "articles30d": {
            "type": "number"
          },
          "countries": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "currentOffices": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "entityId": {
            "type": "string"
          },
          "matchType": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "wikipediaUrl": {
            "type": "string"
          }
        },
        "required": [
          "entityId",
          "name",
          "countries",
          "currentOffices"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "entityIds": {
      "items": {
        "type": "string"
      },
      "type": "array"
    }
  },
  "required": [
    "context",
    "entities",
    "entityIds"
  ],
  "type": "object"
}
```

## Related tools

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

- [`searchEvents`](https://kirha.com/providers/gdelt/searchEvents.md)
- [`summarizeEvents`](https://kirha.com/providers/gdelt/summarizeEvents.md)
- [`searchStories`](https://kirha.com/providers/gdelt/searchStories.md)
- [`searchFacilities`](https://kirha.com/providers/gdelt/searchFacilities.md)
- [`getEntityInteractions`](https://kirha.com/providers/gdelt/getEntityInteractions.md)
- [`getEntity`](https://kirha.com/providers/gdelt/getEntity.md)

-----

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