How to use api

117 views
Skip to first unread message

James Hodgson

unread,
Mar 14, 2022, 9:25:49 AM3/14/22
to 511sfbaydevel...@googlegroups.com

Hello,

 

I’m currently using the data and api for a university project and I am unsure how to get access to the end data, I have the api key and am able to see the file in the web browser but how do I go about downloading it automatically, is there another program I should be using or?

 

Thanks

James

 

 

 

Kapeel Daryani

unread,
Mar 14, 2022, 11:50:40 AM3/14/22
to 511sfbaydevel...@googlegroups.com

Hi James,

 

Can you please provide more details about the API endpoints and data you are trying to access?

 

Regards,

Kapeel Daryani.

 

From: 511sfbaydevel...@googlegroups.com <511sfbaydevel...@googlegroups.com> On Behalf Of James Hodgson
Sent: Monday, March 14, 2022 6:26 AM
To: 511sfbaydevel...@googlegroups.com
Subject: [511SFBayDeveloperResources] How to use api

 

*External Email*

 

--
You received this message because you are subscribed to the Google Groups "511SFBayDeveloperResources" group.
To unsubscribe from this group and stop receiving emails from it, send an email to 511sfbaydeveloperre...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/511sfbaydeveloperresources/AM7P194MB07553FDB63957D8581938A32F80F9%40AM7P194MB0755.EURP194.PROD.OUTLOOK.COM.

James Noscoper

unread,
Apr 3, 2022, 7:00:47 PM4/3/22
to 511SFBayDeveloperResources
Sorry for the delay, I never got the email.


I'm wanting access to the events as an xml file e.g.  https://api.511.org/traffic/events/?api_key=here.xml for example, is that possible?

also when I request the link it shows a few (15ish) events, are there meant to be more or when does the page get updated etc?

Thanks

Kapeel Daryani

unread,
Apr 5, 2022, 6:09:04 PM4/5/22
to 511sfbaydevel...@googlegroups.com

Hi James,

 

All 511 SF Bay Open Data APIs support a filter ‘format’ that can provide you data in XML or JSON formats. Following are samples for using format filter in traffic events API endpoint.

 

JSON Format: https://api.511.org/traffic/events/?api_key=here&format=json

XML Format: https://api.511.org/traffic/events/?api_key=here&format=xml

 

Secondly, the events API is updated in real time. You will only see events that are active.   

 

Regards,

Kapeel Daryani.

Jennifer Tran

unread,
Mar 11, 2023, 11:55:24 PMMar 11
to 511SFBayDeveloperResources
How do u see events from the past?
Reply all
Reply to author
Forward
0 new messages