City Pulse is a REST API for public transportation data

City Pulse offers a RESTful API for public transportation systems.

We provide both timetable and real-time data. Starting with New York, we plan to cover many cities very soon.

Get Started

API

Stations & stops

Returns the list of stations and stops. For the New York City subway, a sample response looks like this:


"result": [
	{
	  "name": 	"Grand Central",
	  "stop_id": 	"631",
	  "lat": 	40.751776,
	  "lng": 	-73.976848,
	},
	{
		...
	}]

Realtime data

Returns detailed real-time information about the vehicles (trains, buses, etc.) stopping at a given station.

Sample response for the NYC subway:


"result": {
	"id": 120
	"name": "96th St."
	"lat": 40.751776,
	"lng": -73.976848,
	"trains": [{
		"arrival_time": "2014-08-26T01:02:05-04:00",
		"departure_time": "2014-08-26T01:02:05-04:00",
		"stop_sequence": 1
		"line": 3
		"direction":
		"direction_id": 3
		"trip_id": "147650_1..N02X011"
		"train_id": "01 0036+ CHB/242"
		"start_date": "20140826"
	},
	{
		...
	}]
}

Timetable data

Returns detailed timetable information about the vehicles (trains, buses, etc.) stopping at the station specified.

Sample response for the NYC subway:


"result": {
		"id":  "S1",
		"name": "Grand Central",
		"lat": 40.751776,
		"lng": -73.979189,
		"trains": [ {
			"arrival_time": 10:30:00,
			"departure_time": 10:3:25,
			"line:" 1,
			"direction": "FLATBUSH AV - BROOKLYN COLLEGE",
			"direction_id": "3",
			"stop_sequence": 1,
			"trip_id": 	A20140608SAT_000250_2..S08R,
			"service_available" : {
				"start_date": 20140608,
				"end_date": 20151231,
				"days":["mon", "tue", "wed", "thu", "fri"]
			}
			"service_exceptions": {
				"date": 20101020,
				"type": "added"
			}
		},
		{
			...
		}]
}