the indian history database provides api endpoints for accessing historical data programmatically. all endpoints return json format responses.
returns list of all empires in database
| field | type | description |
|---|---|---|
| id | integer | unique identifier |
| name | string | empire name |
| period | string | dates of reign |
| founder | string | founder name |
| capital | string | capital city |
returns single empire record with detailed information
returns list of all historical figures
| field | type | description |
|---|---|---|
| id | integer | unique identifier |
| name | string | figure name |
| period | string | time period |
| role | string | role or title |
| significance | string | historical significance |
returns list of all archaeological sites
search across all content types. query parameter required. minimum 2 characters.
| code | meaning |
|---|---|
| 200 | success - request completed |
| 400 | bad request - invalid parameters |
| 404 | not found - resource does not exist |
| 500 | server error - internal error |
api requests are limited to 100 requests per minute per ip address. exceeding this limit will result in 429 (too many requests) response.
currently, the api does not require authentication for read-only endpoints. write operations (post, put, delete) require api key.
cross-origin requests are allowed from specified domains. contact administrator for cors whitelist additions.