Get started

The API provided by Dnet Systems features many different API's within the API. Some examples of these are; NOTAM, Train position and Weather.

To use this API, you need an API key. The API key is free but is there to stop abuse. Please contact us at [email protected] to get your own API key.


the request

To use the API you need to make a http GET request to the following url:
https://api.dnetsystems.se/api/{insert-api-here}?apikey={insert-apikey-here}
The response will be in json format, example response:
{ "response": "It works!" }

You can try it out with the following request:
https://api.dnetsystems.se/api/exampleapi?apikey=exampleapikey


QUERY PARAMETERS

Field Type Description
apikey String Your API key

Errors

There is no set error codes in this api, instead, in the json response, there is a dict called "error" which contains the error.


API/NOTAMSWEDEN

This API provides NOTAM messages from airports in sweden. As Luftfartsverket does not have an API, Dnet Systems is scraping their website and is sharing it as an API, this is the reason that archived notamdata requires special permission to use.


Get notam

https://api.dnetsystems.se/api/notamsweden/notam

QUERY PARAMETERS

Field Type Description
apikey String Your API key
airport String The airport for the notam request, can be either in airport letter combination (ESSG) or the full name with combination (ESSG/LUDVIKA)
date String The date for the request, only avalible if your apikey is allowed to access "notamsweden/archived". Should be written in this format "2024-11-03"

Example response:
{ "airport:": "ESSG/LUDVIKA", "notamdata": { "24h": [ "NIL" ], "all": [ "NIL" ] }, "updated": "2024-11-03 17:23:33" }



Get airports

This API is used to get all avalible airports in the notamsweden-api.
https://api.dnetsystems.se/api/notamsweden/getairports

QUERY PARAMETERS

Field Type Description
apikey String Your API key

Example response:
{ "airports": [ "ESSG/LUDVIKA", "ESSA/STOCKHOLM/ARLANDA" ], "count": 2 }



Get archived dates

This API is used to get all archive dates. This API REQURIES the NOTAMSWEDEN/ARCHIVED permission assigned to your apikey.
https://api.dnetsystems.se/api/notamsweden/get-archived-dates

QUERY PARAMETERS

Field Type Description
apikey String Your API key

Example response:
{ "archived-dates": [ "2024-11-02", "2024-11-03" ] }


API/TRV

This API is used to; Get a trains position, get timetables and many more things that will be added in the future.

Get trainposition

This API is used to get a trains position. Some trains have GPS and some not, if the train does not use GPS, the position will be retrived from the signalling system. NOTE: DICTS "to" AND "operator" WILL WORK IN THE FUTURE.
https://api.dnetsystems.se/api/trv/trainposition

QUERY PARAMETERS

Field Type Description
apikey String Your API key
trainid String The advertised train number

Example response:
{ "error": "none", "lastUpdated": "2024-11-06 07:43:21", "latitude": 60.3134630112623, "longitude": 15.3289288848285, "operator": "::OPERATOR::", "speed": 104, "to": "::DEST::" }