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/temples

Query Parameters

ParameterTypeDescription
searchstringFilter by temple name, bio, or district (e.g. search=Kandariya)
slugstringFetch complete details for a single temple by slug
statestringFilter by state ID (e.g. state=rajasthan)
architecture_stylestringFilter by style (e.g. vesara, nagara, solanki)
limitnumberMax 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);
  });