curl --location 'https://us-prod.notte.cc/functions/252f6cc8-80e3-43e1-b4fe-3ccee006b9c1/runs/start' \
--header 'x-notte-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
"function_id": "252f6cc8-80e3-43e1-b4fe-3ccee006b9c1",
"variables": {
"query": "music",
"limit": 10,
"upload_period": "all",
"region": "US",
"candidate_pages": 3
}
}'
{
"query": "<string>",
"region": "<string>",
"videos": [
{
"rank": 0,
"title": "<string>",
"channel": {
"url": "<string>",
"name": "<string>",
"channel_id": "<string>"
},
"duration": "<string>",
"video_id": "<string>",
"video_url": "<string>",
"thumbnails": [
{
"url": "<string>",
"width": 0,
"height": 0
}
],
"view_count": 0,
"thumbnail_url": "<string>",
"published_label": "<string>",
"duration_seconds": 0,
"view_count_label": "<string>",
"description_snippet": "<string>"
}
],
"warnings": [
"<string>"
],
"fetched_at": "<string>",
"search_url": "<string>",
"pages_fetched": 0,
"ranking_scope": "<string>",
"upload_period": "<string>",
"returned_count": 0,
"requested_limit": 0,
"eligible_video_count": 0,
"examined_video_count": 0,
"excluded_video_count": 0,
"more_candidates_available": true
}