curl --location 'https://us-prod.notte.cc/functions/351983b8-ce5b-4614-9348-ecba5ee79e89/runs/start' \
--header 'x-notte-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
"function_id": "351983b8-ce5b-4614-9348-ecba5ee79e89",
"variables": {
"query": "Harry Potter",
"page": 1,
"sort": "relevance"
}
}'
{
"page": 0,
"sort": "<string>",
"query": "<string>",
"results": [
{
"title": "<string>",
"words": 0,
"genres": [
"<string>"
],
"rating": "<string>",
"status": "<string>",
"fandoms": [
"<string>"
],
"follows": 0,
"reviews": 0,
"chapters": 0,
"language": "<string>",
"story_id": 0,
"author_id": 0,
"favorites": 0,
"story_url": "<string>",
"characters": [
"<string>"
],
"updated_at": 0,
"author_name": "<string>",
"description": "<string>",
"is_complete": true,
"reviews_url": "<string>",
"is_crossover": true,
"published_at": 0,
"raw_metadata": "<string>",
"updated_date": "<string>",
"genres_display": "<string>",
"published_date": "<string>",
"author_profile_url": "<string>",
"cover_thumbnail_url": "<string>",
"characters_and_pairings": "<string>"
}
],
"per_page": 0,
"total_pages": 0,
"total_results": 0
}