Get Similar Gig

The “get_similar_gigs” API endpoint allows the user to retrieve a list of similar gigs based on the provided gig ID. The returned list will contain gigs that have similar characteristics or are related in some way to the specified gig.

Endpoint #

The Voomerr Get Similar Gigs endpoint is POST https://admin.voomerr.com/api/get_similar_gigs.php

Request Parameters #

Parameter Required Description
gig_id Yes The ID of the gig for which similar gigs are to be retrieved.
currency Yes The currency in which prices should be displayed.

Response #

Field Description
success A boolean indicating whether the request was successful.
message A message indicating the outcome of the request.
gigs An array of similar gigs, where each element is an object containing the following fields: <ul><li>gig_id – The ID of the gig.</li><li>gig_name – The name of the gig.</li><li>gig_image – The URL of the gig image.</li><li>price – The price of the gig.</li><li>duration – The duration of the gig.</li><li>seller_name – The name of the seller of the gig.</li><li>seller_rating – The rating of the seller of the gig.</li><li>seller_id – The ID of the seller of the gig.</li><li>favourite – A boolean indicating whether the gig is a favourite of the user making the request.</li><li>location – The location of the gig.</li><li>distance – The distance of the gig from the user making the request.</li></ul>

Example Response #

json
{
"success": true,
"message": "Similar gigs retrieved successfully.",
"gigs": [
{
"gig_id": "123456",
"gig_name": "Pizza delivery",
"gig_image": "https://example.com/images/pizza.jpg",
"price": "10.00",
"duration": "30 minutes",
"seller_name": "John Doe",
"seller_rating": "4.5",
"seller_id": "789",
"favourite": false,
"location": "123 Main St, Anytown, USA",
"distance": "2.5 km"
},
{
"gig_id": "789012",
"gig_name": "Burger delivery",
"gig_image": "https://example.com/images/burger.jpg",
"price": "8.00",
"duration": "20 minutes",
"seller_name": "Jane Smith",
"seller_rating": "4.0",
"seller_id": "456",
"favourite": true,
"location": "456 Elm St, Anytown, USA",
"distance": "3.2 km"
}
]
}

Powered by BetterDocs