POST
/
api
/
events_search
curl --request POST \
  --url https://events.newscatcherapi.xyz/api/events_search \
  --header 'Content-Type: application/json' \
  --header 'x-api-token: <api-key>' \
  --data '{
  "event_type": "layoff",
  "attach_articles_data": false,
  "additional_filters": {
    "company_name": "<string>",
    "event_date": {
      "gte": "<string>",
      "lte": "<string>"
    },
    "extraction_date": {
      "gte": "<string>",
      "lte": "<string>"
    },
    "layoff.how_much_related": "Completely Irrelevant",
    "layoff.is_relevant_for_real_estate": "true",
    "layoff.layoff_reason": "<string>",
    "layoff.location": {
      "country": "<string>",
      "city": "<string>",
      "raw_location": "<string>",
      "county": "<string>",
      "state": "<string>"
    },
    "layoff.max_number_of_people_laid_off": {
      "gte": 123,
      "lte": 123
    },
    "layoff.min_number_of_people_laid_off": {
      "gte": 123,
      "lte": 123
    },
    "layoff.number_of_people_laid_off": {
      "gte": 123,
      "lte": 123
    },
    "layoff.percentage_of_people_laid_off": {
      "gte": 123,
      "lte": 123
    },
    "layoff.summary": "<string>"
  },
  "additional_article_fields": [
    "description",
    "published_date",
    "nlp.summary"
  ]
}'
{
  "message": "Success",
  "count": 25,
  "events": [
    {
      "id": "n1jk-pQBvyT_ytpRpzBn",
      "event_type": "layoff",
      "global_event_type": "Layoff",
      "associated_article_ids": [
        "<string>"
      ],
      "extraction_date": "2023-11-07T05:31:56Z",
      "event_date": "2023-11-07T05:31:56Z",
      "articles": [
        {
          "id": "<string>",
          "title": "<string>",
          "link": "<string>",
          "media": "<string>"
        }
      ],
      "company_name": "<string>",
      "layoff": {
        "summary": "<string>",
        "layoff_reason": "<string>",
        "max_number_of_people_laid_off": 123,
        "min_number_of_people_laid_off": 123,
        "number_of_people_laid_off": 123,
        "percentage_of_people_laid_off": 123,
        "how_much_related": "Completely Irrelevant",
        "is_relevant_for_real_estate": true,
        "location": [
          {
            "country": "<string>",
            "city": "<string>",
            "raw_location": "<string>",
            "county": "<string>",
            "state": "<string>"
          }
        ]
      }
    }
  ]
}

Authorizations

x-api-token
string
header
required

API Key to authenticate requests.

To access the API, include your API key in the x-api-token header. To obtain your API key, complete the form or contact us directly.

Body

application/json
Parameters for searching events.
event_type
enum<string>
required

The type of events to retrieve from the database.

Available options:
layoff,
data_breach,
fundraising
attach_articles_data
boolean
default:
false

If true, includes source article data in the response. If false, returns only event data.

additional_filters
object

The event-specific filtering parameters. Required structure depends on the event_type value.

additional_article_fields
enum<string>[]

Additional article fields to include in the response. Only applicable when attach_articles_data is true.

Available options:
description,
content,
published_date,
published_date_precision,
author,
authors,
journalists,
domain_url,
full_domain_url,
name_source,
extraction_data.parent_url,
is_headline,
paid_content,
rights,
rank,
is_opinion,
language,
word_count,
twitter_account,
all_links,
all_domain_links,
nlp.theme,
nlp.summary,
nlp.sentiment,
nlp.ner_PER,
nlp.ner_ORG,
nlp.ner_MISC,
nlp.ner_LOC

Response

200
application/json
Search results containing matched events.
message
string
required

The status message of the search operation.

count
integer
required

The total number of events returned.

events
object[]
required

The list of matched events.