The “Get all gigs” API allows users to retrieve a list of available gigs based on various parameters. Users can specify their location, search for specific keywords, filter by gig type and product type, and more.
Endpoint #
The Voomerr Get All Gigs endpoint is POST https://admin.voomerr.com/api/get_all_gigs_2.php
Request Parameters #
Parameter | Type | Required | Description |
---|---|---|---|
user_id | integer | Yes | The ID of the user making the request. |
currency | string | Yes | The currency in which the gigs should be displayed. |
latitude | decimal | Yes | The latitude of the user’s location. |
longitude | decimal | Yes | The longitude of the user’s location. |
km | integer | No | The distance in kilometers within which to search for gigs. |
type | string | No | The type of gig to search for (e.g. “Food Delivery”, “Handyman”). |
keyword | string | No | A keyword to search for in the gig name or description. |
product_type | string | No | The type of product to search for (e.g. “Pizza”, “Groceries”). |
Response Parameters #
Parameter | Type | Description |
---|---|---|
success | boolean | Indicates whether the request was successful or not. |
message | string | A message providing more information about the request. |
gigs | array | An array containing information about the available gigs. |
Example Request #
json
{
"user_id": 12345,
"currency": "USD",
"latitude": 37.7749,
"longitude": -122.4194,
"km": 10,
"type": "Food Delivery",
"keyword": "pizza",
"product_type": "Pizza"
}
Example Response #
json
{
"success": true,
"message": "Gigs retrieved successfully.",
"gigs": [
{
"gig_id": "123456",
"gig_name": "Pizza delivery",
"gig_image": "https://example.com/pizza.jpg",
"description": "Delicious pizza delivered to your door.",
"price": 10.99,
"currency": "USD",
"product_type": "Pizza",
"type": "Food Delivery",
"distance": 1.5
},
{
"gig_id": "789012",
"gig_name": "Grocery delivery",
"gig_image": "https://example.com/groceries.jpg",
"description": "Get your groceries delivered to your doorstep.",
"price": 20.99,
"currency": "USD",
"product_type": "Groceries",
"type": "Grocery Delivery",
"distance": 3.2
}
]
}