Travel destination with name, country, description, image, rating, and popularity status. Used for travel guides, destination discovery, and tourism platforms.
https://api.mockly.codes/destinations?page=1&limit=10&count=10Configure your request and click Send Request to see the response here.
/destinationsGet a collection of destinations
/travel/destinations/destinations/:idGet a single destination by ID
/travel/destinations/:id/destinations/metaGet resource metadata and schema
/travel/destinations/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/destinations?q=laptopGET https://api.mockly.codes/destinations?q=laptop&search_fields=name,descriptionsearch_fields, all text fields are searched// Get 10 destinations
fetch('https://api.mockly.codes/destinations?count=10')
.then(res => res.json())
.then(data => console.log(data));import requests
response = requests.get(
'https://api.mockly.codes/destinations?count=10'
)
data = response.json()curl "https://api.mockly.codes/destinations?count=10"fetch('https://api.mockly.codes/destinations?nocache=true')idintegerUnique identifier for the destination
random_intnamestringName of the travel destination (city, region, or landmark)
citycountrystringCountry where the destination is located
countrydescriptionstringDetailed description of the destination, attractions, and travel information
paragraphimagestringURL to a representative image of the destination
image_urluriratingnumberAverage traveler rating, typically on a scale of 1-5
floatpopularbooleanWhether this destination is popular or trending
booleancountintegerNumber of items to return (default: 10, max: 100)
seedintegerSeed for reproducible data generation
nocachebooleanBypass cache and generate fresh data on every request