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.
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
  • Parameters
    1 hash string green abcd Your login hash from api_login()
    2 format string green tab tab/csv for file format
    Endpoint example:
    https://www.stadsnatsportalen.se/admin/edit/mdb_buildings/plain/xspexport?method=getfile&hash=abcd&format=tab
  • success response


       <getfile>
          <@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>
       </getfile>