GET
/
api
/
events_info
/
get_event_fields
curl --request GET \
  --url https://events.newscatcherapi.xyz/api/events_info/get_event_fields \
  --header 'x-api-token: <api-key>'
{
  "message": "Success",
  "count": 12,
  "fields": {
    "company_name": {
      "type": "String",
      "usage_example": {
        "company_name": "Tesla"
      }
    },
    "event_date": {
      "type": "Date",
      "usage_example": {
        "event_date": {
          "lte": "now",
          "gte": "now-30d"
        }
      }
    },
    "extraction_date": {
      "type": "Date",
      "usage_example": {
        "event_date": {
          "lte": "now",
          "gte": "now-30d"
        }
      }
    },
    "layoff.how_much_related": {
      "type": "String",
      "usage_example": {
        "company_name": "Tesla"
      }
    },
    "layoff.is_relevant_for_real_estate": "true",
    "layoff.layoff_reason": {
      "type": "String",
      "usage_example": {
        "company_name": "Tesla"
      }
    },
    "layoff.location": {
      "country": "<string>",
      "city": "<string>",
      "raw_location": "<string>",
      "county": "<string>",
      "state": "<string>"
    },
    "layoff.max_number_of_people_laid_off": {
      "type": "Number",
      "usage_example": {
        "number_of_people_laid_off": {
          "gte": 100,
          "lte": 1000
        }
      }
    },
    "layoff.min_number_of_people_laid_off": {
      "type": "Number",
      "usage_example": {
        "number_of_people_laid_off": {
          "gte": 100,
          "lte": 1000
        }
      }
    },
    "layoff.number_of_people_laid_off": {
      "type": "Number",
      "usage_example": {
        "number_of_people_laid_off": {
          "gte": 100,
          "lte": 1000
        }
      }
    },
    "layoff.percentage_of_people_laid_off": {
      "type": "Number",
      "usage_example": {
        "number_of_people_laid_off": {
          "gte": 100,
          "lte": 1000
        }
      }
    },
    "layoff.summary": {
      "type": "String",
      "usage_example": {
        "company_name": "Tesla"
      }
    }
  }
}

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.

Query Parameters

event_type
string
required

Type of event to get fields for

Response

200
application/json
Available fields for the specified event type
message
string
required

Status message indicating success or providing additional context

count
integer
required

Total number of available fields returned

fields
object
required

Map of field names to their type definitions and usage examples