Tour package with destination, duration, pricing, rating, and description. Used for tour booking platforms, travel agencies, and tourism services.
https://api.mockly.codes/tours?page=1&limit=10&count=10Configure your request and click Send Request to see the response here.
/toursGet a collection of tours
/travel/tours/tours/:idGet a single tour by ID
/travel/tours/:id/tours/metaGet resource metadata and schema
/travel/tours/metaThe search feature allows you to filter results by searching for text across all or specific fields. Choose between ?q= or ?search= parameter names.
Search across all text fields:
GET https://api.mockly.codes/tours?q=laptopGET https://api.mockly.codes/tours?q=laptop&search_fields=name,descriptionsearch_fields, all text fields are searched// Get 10 tours
fetch('https://api.mockly.codes/tours?count=10')
.then(res => res.json())
.then(data => console.log(data));import requests
response = requests.get(
'https://api.mockly.codes/tours?count=10'
)
data = response.json()curl "https://api.mockly.codes/tours?count=10"fetch('https://api.mockly.codes/tours?nocache=true')idintegerUnique identifier for the tour
random_intnamestringTour name or title
sentencedestinationstringDestination city or location for the tour
citydurationintegerTour duration in days
random_intpricenumberTour price per person
priceratingnumberAverage customer rating, typically on a scale of 1-5
floatdescriptionstringDetailed description of the tour itinerary, activities, and inclusions
paragraphcountintegerNumber of items to return (default: 10, max: 100)
seedintegerSeed for reproducible data generation
nocachebooleanBypass cache and generate fresh data on every request