curl --location 'https://us-prod.notte.cc/functions/d9a34458-8946-47c3-9f5f-772bbe41ed6c/runs/start' \
--header 'x-notte-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
"function_id": "d9a34458-8946-47c3-9f5f-772bbe41ed6c",
"variables": {
"query": "MSI płyta główna",
"category_path": "elektronika/komputery/podzespoly-i-czesci/plyty-glowne",
"location": "Warszawa",
"radius_km": 5,
"min_price": 100,
"max_price": 600,
"condition": "used",
"seller_type": "private",
"delivery_available": true,
"photos_only": true,
"sort_by": "filter_float_price:asc",
"max_results": 40
}
}'
{
"query": "<string>",
"listings": [
{
"id": 0,
"map": {
"lat": 0,
"lon": 0,
"zoom": 0,
"radius": 0,
"show_detailed": true
},
"url": "<string>",
"user": {},
"title": "<string>",
"params": [
{
"key": "<string>",
"name": "<string>",
"type": "<string>",
"value": {
"key": "<string>",
"type": "<string>",
"label": "<string>",
"value": 0,
"budget": true,
"arranged": true,
"currency": "<string>",
"negotiable": true
}
}
],
"photos": [
{
"id": 0,
"link": "<string>",
"width": 0,
"height": 0,
"filename": "<string>",
"rotation": 0
}
],
"status": "<string>",
"contact": {
"chat": true,
"name": "<string>",
"phone": true,
"courier": true,
"negotiation": true
},
"business": true,
"category": {
"id": 0,
"type": "<string>"
},
"delivery": {
"rock": {
"mode": "<string>",
"active": true,
"offer_id": "<string>"
}
},
"location": {
"city": {
"id": 0,
"name": "<string>",
"normalized_name": "<string>"
},
"region": {
"id": 0,
"name": "<string>",
"normalized_name": "<string>"
},
"district": {
"id": 0,
"name": "<string>"
}
},
"safedeal": {
"status": "<string>",
"weight": 0,
"weight_grams": 0,
"safedeal_blocked": true
},
"promotion": {
"top_ad": true,
"urgent": true,
"b2c_ad_page": true,
"highlighted": true,
"premium_ad_page": true
},
"offer_type": "<string>",
"description": "<string>",
"created_time": "<string>",
"protect_phone": true,
"valid_to_time": "<string>",
"isGpsrAvailable": true,
"last_refresh_time": "<string>"
}
],
"location": "<string>",
"page_size": 0,
"radius_km": 0,
"category_path": "<string>",
"pages_fetched": 0,
"returned_count": 0,
"total_available": 0,
"resolved_location": {
"city": {
"id": 0,
"lat": 0,
"lon": 0,
"name": "<string>",
"normalized_name": "<string>"
},
"county": {
"name": "<string>"
},
"region": {
"id": 0,
"name": "<string>",
"normalized_name": "<string>"
},
"municipality": {
"name": "<string>"
}
},
"resolved_category_id": 0
}