Hi,
Is it possible to do a bulk download of charging station data? Was going to do something similar using the API but the T&Cs very clearly say ‘don’t crawl’! I’m trying to some analysis around critical mass of L2 / DCFC charging infrastructure around EV ownership rates.
I’d love to be able to the data for European (in particular, UK, France, Germany, Italy, Spain) charging stations.
Kind regards,
Charles
Hi Charles,
You can absolutely download the data in bulk, as long as you don’t try to do that every 5 mins. Regarding crawling we mean repeatedly calling the API to try to gradually build your own data set - which is completely unnecessary, error-prone, a bit dumb, and just costs us CPU.
To download the global data set you need an API call like the following (for example using curl or another utility to save the results to a file, because the global data set will be very large and likely more than your web browser can cope with).
This example will return up to 50 results (globally):
https://api.openchargemap.io/v3/poi?maxresults=50
This next example will return up to 50 results (globally), with whitespace and nulls removed (compact=true
) and extended reference data properties removed (using verbose=false
, so things such as DataProvider where you’ll just get our ID for them instead):
https://api.openchargemap.io/v3/poi?maxresults=50&compact=true&verbose=false
So to download the entire data set, you’d set maxresults=200000
(for instance).
You can optionally get results as CSV file (with output=csv
) if you don’t want a JSON response.
Let me know if you have any more questions.
I’m not familiar with how to query using the api. I would like to query for USA Maine, Vermont, New Hampshire, Massachusetts, Connecticut an Rhode Island in CSV format with all the fields present. Is there any tool built so I can do that. I’d like to import to a Garmin GPS.
A post was split to a new topic: Download data for Ireland