Powerful API for Developers
Yatrah API provides access to comprehensive information about sacred places across India. Our RESTful API is designed to be simple, fast, and reliable.
All API requests require an API key. Contact the administrator to get your API key.
X-API-Key: your_api_key_here
Single comprehensive API endpoint to get all sacred places with optional filtering.
Get all places:
curl -X GET "https://yatrah.com/api/v1/places" \
-H "X-API-Key: your_api_key_here"
Search for temples:
curl -X GET "https://yatrah.com/api/v1/places?search=temple" \
-H "X-API-Key: your_api_key_here"
Get places in Gujarat:
curl -X GET "https://yatrah.com/api/v1/places?state=Gujarat" \
-H "X-API-Key: your_api_key_here"
Get places in Ahmedabad, Gujarat:
curl -X GET "https://yatrah.com/api/v1/places?state=Gujarat&city=Ahmedabad" \
-H "X-API-Key: your_api_key_here"
Search with pagination:
curl -X GET "https://yatrah.com/api/v1/places?search=temple&page=2&per_page=50" \
-H "X-API-Key: your_api_key_here"
{
"success": true,
"data": [
{
"id": 1,
"tour_name": "Adalaj Stepwell",
"description": "Five‑storey intricately carved stepwell (Vav).",
"category": "Historical",
"state": "Gujarat",
"city": "Adalaj",
"images": ["image_url"],
"latitude": "23.1645",
"longitude": "72.5714"
}
],
"meta": {
"current_page": 1,
"total": 154
}
}