curl --location 'https://us-prod.notte.cc/functions/d23d4b4f-8b04-4b4e-944b-d578a18762b9/runs/start' \
--header 'x-notte-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
"function_id": "d23d4b4f-8b04-4b4e-944b-d578a18762b9",
"variables": {
"query": "Jeffreys Bay"
}
}'
{
"count": 0,
"query": "<string>",
"spots": [
{
"name": "<string>",
"surface": "<string>",
"latitude": 0,
"longitude": 0,
"identifier": "<string>",
"properties": {
"id": 0,
"tags": {
"name": "<string>",
"source": "<string>",
"natural": "<string>",
"surface": "<string>"
},
"type": "<string>",
"address": {
"city": "<string>",
"beach": "<string>",
"state": "<string>",
"county": "<string>",
"country": "<string>",
"village": "<string>",
"postcode": "<string>",
"country_code": "<string>",
"ISO3166-2-lvl4": "<string>",
"ISO3166-2-lvl6": "<string>"
},
"orientation": 0,
"coastDistance": 0
},
"creationDate": "<string>"
}
]
}