Tourist attraction or point of interest with name, location, type, rating, and description. Used for travel guides, tourism platforms, and destination discovery applications.
https://api.mockly.codes/attractions?page=1&limit=10&count=10Configure your request and click Send Request to see the response here.
/attractionsGet a collection of attractions
/travel/attractions/attractions/:idGet a single attraction by ID
/travel/attractions/:id/attractions/metaGet resource metadata and schema
/travel/attractions/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/attractions?q=laptopGET https://api.mockly.codes/attractions?q=laptop&search_fields=name,descriptionsearch_fields, all text fields are searched// Get 10 attractions
fetch('https://api.mockly.codes/attractions?count=10')
.then(res => res.json())
.then(data => console.log(data));import requests
response = requests.get(
'https://api.mockly.codes/attractions?count=10'
)
data = response.json()curl "https://api.mockly.codes/attractions?count=10"fetch('https://api.mockly.codes/attractions?nocache=true')idintegerUnique identifier for the attraction
random_intnamestringName of the tourist attraction or point of interest
sentencecitystringCity where the attraction is located
citycountrystringCountry where the attraction is located
countrytypestringType of attraction (e.g., Museum, Park, Monument, Beach, Landmark)
wordratingnumberAverage visitor rating, typically on a scale of 1-5
floatdescriptionstringDetailed description of the attraction and what visitors can expect
paragraphcountintegerNumber of items to return (default: 10, max: 100)
seedintegerSeed for reproducible data generation
nocachebooleanBypass cache and generate fresh data on every request