Get started
NOTICE: THE API IS GETTING AN UPGRADE, SOME SERVICES MAY BE UNAVALIBLE AT THIS TIME
The API provided by Dnet Systems features many different API's within the API. Some examples of these are; NOTAM and Train position.
The API is free to use and does not need an API-key (as it previously did). Use the API wisely and do not spam requests.
the request
The api is based on get requests on the following base domain:
https://api.dnetsystems.se/
The response will be in json format, example response:
{
"data": "It works!"
}
You can try it out with the following request:
https://api.dnetsystems.se/exampleapi
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.
We are implementing fixed error codes but it is a work in progress and there is no ETA when they will start to be used. They will also be individual for each seperate api.
Global error codes valid for all paths
Error | Description |
---|---|
http_error_code | An http error code that is not 200 was returned, the status code itself it sent with the response and is also present in "http_code" in the response |
API/NOTAMSWEDEN
This API provides NOTAM messages for airports in sweden.
Get notam
https://api.dnetsystems.se/notam/sweden/notam
QUERY PARAMETERS
Field | Type | Description |
---|---|---|
airport | String | The airport for the notam request, should be the airport four letter code, example: ESSG |
type | String | Can be either, "active", "all" or "24hrs", defaults to "all". "active" returns all actives notams at the selected airport, "all" returns all notams, active and inactive and "24hrs" returns all notams that are active within the next 24 hours. |
Example response:
[
{
"active": false,
"from": "2025-06-16 08:00",
"isPermanent": false,
"text": "RWY 01/19 CLSD DUE OTHER ACT",
"to": "2025-06-16 11:00",
"updated": "2025-06-15 23:00"
},
{
"active": false,
"from": "2025-06-26 05:00",
"isPermanent": false,
"text": "RWY 01/19 CLSD DUE OTHER ACT",
"to": "2025-06-26 11:00",
"updated": "2025-06-15 23:00"
}
]
Errors
Error | Description |
---|---|
invalid_airport_code | You have submited an invalid airport location code, it should be four letters and exist in sweden; ex. "ESSG" |
invalid_type | You have submited an invalid type, should be either, "active", "all" or "24hrs", defaults to "all" |
Get airports
This API is used to get all avalible airports within the notamsweden-api.
https://api.dnetsystems.se/notam/sweden/airports
QUERY PARAMETERS
Field | Type | Description |
---|---|---|
limit | Int | The limit of airports returned in the response |
Example response:
[{"code":"EKRN","name":"EKRN/BORNHOLM/ROENNE"},{"code":"ESCF","name":"ESCF/LINKOEPING/MALMEN"}]
Get archived dates [ARCHIVED]
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::"
}