Get event fields
Returns available fields for specified event type.
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
Query Parameters
Type of event to get fields for
Response
Status message indicating success or providing additional context
Total number of available fields returned
Map of field names to their type definitions and usage examples
Date when the layoff occurred.
Indicates this field accepts date values
Date
Shows how to use date ranges in search queries.
Supports both absolute (YYYY-MM-DD) and relative (now-30d
) date formats.
Date when the event was extracted from news sources.
Indicates this field accepts date values
Date
Shows how to use date ranges in search queries.
Supports both absolute (YYYY-MM-DD) and relative (now-30d
) date formats.
Relevance rating of the layoff event.
Indicates if the layoff impacts real estate market.
true
, false
Stated reason for the layoff.
Location where the layoff occurred.
The country where the event occurred.
The city where the event occurred.
The unparsed location string from the source.
The county where the event occurred.
The state where the event occurred.
Maximum number of employees affected in a range.
Indicates this field accepts numeric values
Number
Shows how to use numeric ranges in search queries
Minimum number of employees affected in a range.
Indicates this field accepts numeric values
Number
Shows how to use numeric ranges in search queries
Exact number of employees affected.
Indicates this field accepts numeric values
Number
Shows how to use numeric ranges in search queries
Percentage of workforce affected.
Indicates this field accepts numeric values
Number
Shows how to use numeric ranges in search queries
Was this page helpful?
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"
}
}
}
}