Atlas API
API Endpoint: XSP Export
Export API for Service providers. The exported data contains coId codes that can be found here where you can also get a CSV readout to parse in your scripts.
Note that the API for import is open for KO between midnight and 7 am, and an aggregation script is run at 7:10 to create the files for downloads for XSP, so if you want as fresh data as possible, you should fetch via this API at around 8 am. Endpoint URL https://www.stadsnatsportalen.se/admin/edit/mdb_buildings/plain/xspexport
Note that the API for import is open for KO between midnight and 7 am, and an aggregation script is run at 7:10 to create the files for downloads for XSP, so if you want as fresh data as possible, you should fetch via this API at around 8 am. Endpoint URL https://www.stadsnatsportalen.se/admin/edit/mdb_buildings/plain/xspexport
- This will give you the URL of a the file to download with the data relevant to you
- Request Parameters
1 hash string abcd Your login hash from api_login() 2 format string tab tab/csv for file format
GET: https://www.stadsnatsportalen.se/admin/edit/mdb_buildings/plain/xspexport?method=getfile&hash=abcd&format=tab <xspexport> <@attributes> <generator>Atlas AXA</generator> <version>1.5</version> </@attributes> <getfile> <response> <location>http://www.stadsnatsfabriken.se/admin/edit/mdb_buildings/plain/download.php?filename=mdb2_36931.txt</location> </response> <status>success</status> </getfile> </xspexport>