# listSituations

**Identifier:** `gdelt_listSituations`

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

List ongoing news situations: multi-story developments tracked over days or weeks (crises, negotiations, conflicts), with span, story, article and event totals and the latest development. Use getSituationBrief for the analysis of one situation.

## Run it with the CLI

```bash
kirha tools run gdelt_listSituations \
  --input '{}'
```

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

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, location of linked events",
      "type": "string"
    },
    "days": {
      "description": "Active in the last N days",
      "maximum": 30,
      "minimum": 1,
      "type": "number"
    },
    "limit": {
      "default": 10,
      "maximum": 25,
      "minimum": 1,
      "type": "number"
    },
    "minStories": {
      "minimum": 1,
      "type": "number"
    },
    "offset": {
      "default": 0,
      "minimum": 0,
      "type": "number"
    },
    "query": {
      "description": "Keywords in situation or member story headlines",
      "type": "string"
    },
    "sort": {
      "default": "recent",
      "enum": [
        "recent",
        "relevance",
        "article_count",
        "story_count",
        "event_count",
        "rising",
        "created"
      ],
      "type": "string"
    }
  },
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "situationIds": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "situations": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "articleCount": {
            "type": "number"
          },
          "categories": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "eventCount": {
            "type": "number"
          },
          "latestDevelopment": {
            "type": "string"
          },
          "latestDevelopmentDate": {
            "type": "string"
          },
          "lifecycle": {
            "type": "string"
          },
          "situationId": {
            "type": "string"
          },
          "spanEnd": {
            "type": "string"
          },
          "spanStart": {
            "type": "string"
          },
          "storyCount": {
            "type": "number"
          },
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "situationId",
          "categories"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "total": {
      "type": "number"
    }
  },
  "required": [
    "context",
    "situations",
    "situationIds"
  ],
  "type": "object"
}
```

## Related tools

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

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

-----

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