Your browser has javascript disabled. Please enable it before running Convergence.

Indian Railways Time Table for trains available for reservation as on 03.08.2015

API

Requests can be sent over HTTP. Data can be returned as JSON, XML, or JSONP.

Datastore API URL

Datastores can be queried at: https://api.data.gov.in/resource/b46200c1-ca9a-4bbe-92f8-b5039cc25a12?format=json&api-key=YOURKEY

The default return format is JSON. XML can be retrieved with '.xml' at the end: https://api.data.gov.in/resource/b46200c1-ca9a-4bbe-92f8-b5039cc25a12?format=xml&api-key=YOURKEY

Request Parameters

Parameters:
  • filters (mixed) – array or string of matching conditions to select
  • offset (int) – offset this number of rows
  • limit (int) – maximum number of rows to return (default: 100)
  • fields (array or comma separated string) – fields to return (default: all fields in original order)
  • sort (array) – comma separated field names with ordering

Return Values

Return is in XML or JSON .

Return type:

A dictionary with the following keys

Parameters:
  • fields (list of fields) – fields/columns and metadata
  • success (int) – if the datafetch is suscess or not
  • count (int) – number of total matching records
  • records (list of dictionaries) – list of matching results

Examples

https://api.data.gov.in/resource/b46200c1-ca9a-4bbe-92f8-b5039cc25a12?format=json&api-key=YOURKEY&filters[field1]=field1_value&fields=field1,field2,field3&sort[field1]=asc
Returns the "field1", "field2", and "field3" fields for "field1_value" from specified resource sorting by the "field1" in ascending order.