Developer Portal
Open REST API Access
Free, public JSON endpoints for researchers, historians, app developers, and heritage projects.
Base Endpoint
GET https://www.thetemplesofindia.com/api/v1/templesQuery Parameters
| Parameter | Type | Description |
|---|---|---|
search | string | Filter by temple name, bio, or district (e.g. search=Kandariya) |
slug | string | Fetch complete details for a single temple by slug |
state | string | Filter by state ID (e.g. state=rajasthan) |
architecture_style | string | Filter by style (e.g. vesara, nagara, solanki) |
limit | number | Max items to return (default 24, max 100) |
Example Code
// JavaScript / Fetch Example
fetch('https://www.thetemplesofindia.com/api/v1/temples?limit=10&search=sun')
.then(res => res.json())
.then(json => {
console.log('Total Temples Found:', json.total);
console.log('Results:', json.data);
});