OC Transpo API: Making Requests

Skip to first unread message

Jason B

Nov 10, 2015, 10:47:50 PM11/10/15
to Open Data Ottawa
Just wondering, is it possible to make requests using this form: 


instead of this form: 
curl -d "appID={appID}&apiKey={apiKey}&table=stops&column=stop_id&value=AA010&order_by=stop_code&direction=desc&limit=10&format=json" https://api.octranspo1.com/v1.2/Gtfs ?

Any help will be appreciated. Thanks in advance.

Cyrus Kafai Wu

Nov 11, 2015, 7:33:43 PM11/11/15
to Open Data Ottawa
Yes, and no!

I have used this before and programmed for this. It works fine but the data is out of date. As in the schedule is set to 2009 when I worked with this back in 2014.

So, it's not really the best idea.

But you can access the same information but up to the latest date via this link:

No problem!
Reply all
Reply to author
0 new messages