Hoppa direkt till innehåll
api

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
This API does not require granted privileges, and is open to any user API key This API does not require granted privileges, and is open to any user API key
  • Method: getfile

  • This will give you the URL of a the file to download with the data relevant to you
  • Request Parameters
    1 hash string green abcd Your login hash from api_login()
    2 format string green tab tab/csv for file format
    Endpoint example:
    GET: https://www.stadsnatsportalen.se/admin/edit/mdb_buildings/plain/xspexport?method=getfile&hash=abcd&format=tab