curl --location 'https://us-prod.notte.cc/functions/46b7bcc6-0949-4152-8278-690c681521a7/runs/start' \
--header 'x-notte-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
"function_id": "46b7bcc6-0949-4152-8278-690c681521a7",
"variables": {
"query": "corruption",
"article_type": "",
"section": "",
"region": "",
"page": 0,
"page_size": 10
}
}'
{
"page": 0,
"index": "<string>",
"query": "<string>",
"articles": [
{
"uri": "<string>",
"date": "<string>",
"type": "<string>",
"image": "<string>",
"title": "<string>",
"locale": "<string>",
"people": [
"<string>"
],
"regions": [
"<string>"
],
"keywords": [
"<string>"
],
"objectID": "<string>",
"sections": [
"<string>"
],
"permalink": "<string>",
"description": "<string>",
"publish_year": 0,
"organizations": [
"<string>"
],
"date_timestamp": 0,
"article_content": "<string>",
"weight_collection_type": 0
}
],
"page_size": 0,
"ordered_by": "<string>",
"total_pages": 0,
"facet_counts": {
"type": {
"Project": 0
},
"regions": {},
"sections": {}
},
"total_results": 0,
"applied_filters": {
"article_type": "<string>"
}
}