---
title: "Sentence-level co-occurrence search across recent GDELT coverage"
method: GET
path: "/gdelt/context"
tags: ["GDELT"]
---

# Sentence-level co-occurrence search across recent GDELT coverage

`GET /gdelt/context`

## Request

- Base URL: `https://api.crawlora.net/api/v1`
- URL: `https://api.crawlora.net/api/v1/gdelt/context`
- Auth: API key in header `x-api-key`

Searches the last 72 hours of GDELT-monitored news for sentences where every term of the required `query` appears together. Returns up to `maxrecords` rows (default 75, max 200), each with the matching sentence, its surrounding context, title, URL, domain, language and an `is_quote` flag. Filter with `domain`, `language`, `is_quote`, `timespan` or `from` and `to`, and order with `sort`.

## Query parameters

- `query` string, required
- `domain` string
- `language` string
- `is_quote` boolean
- `timespan` string
- `from` string
- `to` string
- `sort` 'relevance' | 'datedesc' | 'dateasc'
- `maxrecords` integer

## Headers

- `x-api-key` string, required

## Response `200`

OK

- GdeltContextResponseDoc
  - `code` integer
  - `data` GdeltContextResponse
    - `articles` GdeltContextArticle[]
      - `context` string
      - `domain` string
      - `is_quote` boolean
      - `language` string
      - `seen_at` string
      - `sentence` string
      - `social_image_url` string
      - `title` string
      - `url` string
    - `count` integer
    - `fetched_at` string
    - `maxrecords` integer
    - `query` string
    - `sort` string
    - `source_url` string
  - `msg` string

## Other responses

- `400`: Bad Request
- `500`: Internal Server Error
- `503`: Service Unavailable

---

[API](https://skmtc.dev/crawlora/apis/crawlora-api.md) · [All operations](https://skmtc.dev/crawlora/apis/crawlora-api/llms.txt) · [OpenAPI document](https://skmtc.dev/crawlora/apis/crawlora-api/revisions/0497899e2016?raw)
