Access our comprehensive places database with a simple, secure API. Get started in minutes with authentication, rich data, and reliable endpoints.
GET https://places.codeswithchandan.com/api/places
Response format: JSON. Example fields include id, title, imagePath, bookingLink, city.
Authorization: Bearer <YOUR_API_KEY>
curl -s -H "Authorization: Bearer <YOUR_API_KEY>" \
"https://places.codeswithchandan.com/api/places"
fetch('https://places.codeswithchandan.com/api/places', {
method: 'GET',
headers: {
'Authorization': 'Bearer <YOUR_API_KEY>',
'Accept': 'application/json'
}
})
.then(r => r.json())
.then(data => console.log(data))
.catch(err => console.error(err));
import axios from 'axios';
axios.get('https://places.codeswithchandan.com/api/places', {
headers: { Authorization: 'Bearer <YOUR_API_KEY>' }
})
.then(res => console.log(res.data))
.catch(err => console.error(err));
Authorization = Bearer <YOUR_API_KEY>{
"status": "success",
"data": [
{
"id": "9",
"title": "Tughlaqabad Fort",
"imagePath": "places/tughlaqabad-fort.jpg",
"bookingLink": "https://asi.payumoney.com/quick/tqf",
"city": "Delhi"
}
],
"meta": {
"total": 150,
"page": 1,
"per_page": 20
}
}
Get your dedicated API key for production use. We offer different tiers based on your needs.
Include your name, application details, and expected usage volume.