{"id":21201762,"url":"https://github.com/oleander/9292-nl-api-spec","last_synced_at":"2026-01-02T00:46:53.246Z","repository":{"id":7811546,"uuid":"9182244","full_name":"oleander/9292-nl-api-spec","owner":"oleander","description":"Reverse engineered API specification for 9292.nl","archived":false,"fork":false,"pushed_at":"2013-04-02T22:57:38.000Z","size":104,"stargazers_count":19,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-21T14:47:48.143Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oleander.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-04-02T22:57:13.000Z","updated_at":"2020-07-27T11:38:45.000Z","dependencies_parsed_at":"2022-09-24T05:01:59.633Z","dependency_job_id":null,"html_url":"https://github.com/oleander/9292-nl-api-spec","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleander%2F9292-nl-api-spec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleander%2F9292-nl-api-spec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleander%2F9292-nl-api-spec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleander%2F9292-nl-api-spec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oleander","download_url":"https://codeload.github.com/oleander/9292-nl-api-spec/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243654417,"owners_count":20325898,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-20T20:10:54.027Z","updated_at":"2026-01-02T00:46:53.219Z","avatar_url":"https://github.com/oleander.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# API\n\nReverse engineered API specification for 9292.nl. Only to be used in educational purposes.\n\n## Host\n\n- https://api.9292.nl\n\n## Params\n\n- lat (Double) Latitude\n- long (Double) Longitude\n- station (String) An arbitrary station name\n- location (String) An location\n- station_id (String) Station id given by the location hash\n- date (String) In yyyy-MM-dd'T'HHmm\n- search_type (String) Should :date be the departure time (vertrek) or arrival (aankomst)?\n- by_train (Boolean)\n- by_ferry (Boolean)\n- by_tram (Boolean)\n- by_bus (Boolean)\n- by_subway (Boolean)\n- interchange_time (Integer) (1) Add 5 min extra (0) between each change?\n- sequence (Integer) (1) Unknown\n- before (Integer) (1) Unknown\n- after (Integer) (5) Unknown\n- via (String) See :station_id\n- from (String) See :station_id\n- to (String) See :station_id\n- lang\n  - nl-NL\n  - en-GB\n\n## Requests\n\n### Search stations by name\n\n```\nGET /0.1/locations?\n  lang=:lang\u0026\n  type=station,stop\u0026\n  q=:station\n```\n\n``` javascript\n{\n  \"locations\": [\n    {\n      \"id\": \"utrecht/bushalte-vasco-da-gamalaan-7-14\",\n      \"type\": \"stop\",\n      \"stopType\": \"Bus stop\",\n      \"name\": \"Vasco Da Gamalaan (7/14)\",\n      \"place\": {\n        \"name\": \"Utrecht\",\n        \"regionCode\": \"UT\",\n        \"regionName\": \"Utrecht\",\n        \"showRegion\": false,\n        \"countryCode\": \"NL\",\n        \"countryName\": \"The Netherlands\",\n        \"showCountry\": false\n      },\n      \"latLong\": {\n        \"lat\": 52.066465,\n        \"long\": 5.096992\n      },\n      \"urls\": {\n        \"nl-NL\": \"/utrecht/bushalte-vasco-da-gamalaan-7-14\",\n        \"en-GB\": \"/en/utrecht/bushalte-vasco-da-gamalaan-7-14\"\n      }\n    }\n  ]\n}\n```\n\n### Search locations by name\n\n```\nGET /0.1/locations?\n  lang=:lang\u0026\n  q=:location\n```\n\n``` javascript\n{\n  \"locations\": [\n    {\n      \"id\": \"utrecht/bushalte-azielaan\",\n      \"type\": \"stop\",\n      \"stopType\": \"Bus stop\",\n      \"name\": \"Azielaan\",\n      \"place\": {\n        \"name\": \"Utrecht\",\n        \"regionCode\": \"UT\",\n        \"regionName\": \"Utrecht\",\n        \"showRegion\": false,\n        \"countryCode\": \"NL\",\n        \"countryName\": \"The Netherlands\",\n        \"showCountry\": false\n      },\n      \"latLong\": {\n        \"lat\": 52.064313,\n        \"long\": 5.099047\n      },\n      \"urls\": {\n        \"nl-NL\": \"/utrecht/bushalte-azielaan\",\n        \"en-GB\": \"/en/utrecht/bushalte-azielaan\"\n      }\n    }\n  ]\n}\n```\n\n### Search stations by longitude and latitude\n\n```\nGET /0.1/locations?\n  lang=:lang\u0026\n  type=station,stop\u0026\n  latlong=:lat,:long\u0026\n  includestation=true\n```\n\n``` javascript\n{\n  \"locations\": [\n    {\n      \"id\": \"utrecht/bushalte-vasco-da-gamalaan-7-14\",\n      \"type\": \"stop\",\n      \"stopType\": \"Bus stop\",\n      \"name\": \"Vasco Da Gamalaan (7/14)\",\n      \"place\": {\n        \"name\": \"Utrecht\",\n        \"regionCode\": \"UT\",\n        \"regionName\": \"Utrecht\",\n        \"showRegion\": false,\n        \"countryCode\": \"NL\",\n        \"countryName\": \"The Netherlands\",\n        \"showCountry\": false\n      },\n      \"latLong\": {\n        \"lat\": 52.066465,\n        \"long\": 5.096992\n      },\n      \"urls\": {\n        \"nl-NL\": \"/utrecht/bushalte-vasco-da-gamalaan-7-14\",\n        \"en-GB\": \"/en/utrecht/bushalte-vasco-da-gamalaan-7-14\"\n      }\n    }\n  ]\n}\n```\n\n### List departure times for a station\n\n```\nGET /0.1/locations/:station_id/departure-times?\n  lang=:lang\n```\n\n``` javascript\n{\n  \"location\": {\n    \"id\": \"utrecht/bushalte-vasco-da-gamalaan-7-14\",\n    \"type\": \"stop\",\n    \"stopType\": \"Bus stop\",\n    \"name\": \"Vasco Da Gamalaan (7/14)\",\n    \"place\": {\n      \"name\": \"Utrecht\",\n      \"regionCode\": \"UT\",\n      \"regionName\": \"Utrecht\",\n      \"showRegion\": false,\n      \"countryCode\": \"NL\",\n      \"countryName\": \"The Netherlands\",\n      \"showCountry\": false\n    },\n    \"latLong\": {\n      \"lat\": 52.066465,\n      \"long\": 5.096992\n    },\n    \"urls\": {\n      \"nl-NL\": \"/utrecht/bushalte-vasco-da-gamalaan-7-14\",\n      \"en-GB\": \"/en/utrecht/bushalte-vasco-da-gamalaan-7-14\"\n    }\n  },\n  \"tabs\": [\n    {\n      \"id\": \"bus\",\n      \"name\": \"Bus\",\n      \"locations\": [\n        {\n          \"id\": \"utrecht/bushalte-vasco-da-gamalaan-7-14\",\n          \"type\": \"stop\",\n          \"stopType\": \"Bushalte\",\n          \"name\": \"Vasco Da Gamalaan (7/14)\",\n          \"place\": {\n            \"name\": \"Utrecht\",\n            \"regionCode\": \"UT\",\n            \"regionName\": \"Utrecht\",\n            \"showRegion\": false,\n            \"countryCode\": \"NL\",\n            \"countryName\": \"Nederland\",\n            \"showCountry\": false\n          },\n          \"latLong\": {\n            \"lat\": 52.066465,\n            \"long\": 5.096992\n          },\n          \"urls\": {\n            \"nl-NL\": \"/utrecht/bushalte-vasco-da-gamalaan-7-14\",\n            \"en-GB\": \"/en/utrecht/bushalte-vasco-da-gamalaan-7-14\"\n          }\n        }\n      ],\n      \"departures\": [\n        {\n          \"time\": \"15:58\",\n          \"destinationName\": \"Overvecht Noord\",\n          \"viaNames\": null,\n          \"mode\": {\n            \"type\": \"bus\",\n            \"name\": \"Citybus\"\n          },\n          \"operatorName\": \"GVU\",\n          \"service\": \"7\",\n          \"platform\": null,\n          \"platformChanged\": false,\n          \"remark\": null,\n          \"realtimeState\": \"ontime\",\n          \"realtimeText\": null\n        }\n      ]\n    }\n  ]\n}\n```\n\n### Get closest location\n\n```\nGET /0.1/locations?\n  lang=:lang\u0026\n  latlong=:lat,:long\u0026\n  type=address\u0026\n  rows=1\n```\n\n``` javascript\n{\n  \"locations\": [\n    {\n      \"id\": \"utrecht/columbuslaan-355\",\n      \"type\": \"address\",\n      \"name\": \"Columbuslaan\",\n      \"houseNr\": \"355\",\n      \"place\": {\n        \"name\": \"Utrecht\",\n        \"regionCode\": \"UT\",\n        \"regionName\": \"Utrecht\",\n        \"showRegion\": false,\n        \"countryCode\": \"NL\",\n        \"countryName\": \"The Netherlands\",\n        \"showCountry\": false\n      },\n      \"latLong\": {\n        \"lat\": 52.066483,\n        \"long\": 5.097021\n      }\n    }\n  ]\n}\n```\n\n### Get journeys\n\n```\nGET /0.1/journeys?\n  lang=:lang\u0026\n  dateTime=:date\u0026\n  to=:station_id\u0026\n  from=:station_id\u0026\n  searchType=:search_type\u0026\n  sequence=1\u0026\n  interchangeTime=:interchange_time\u0026\n  before=:before\u0026\n  after=:after\u0026\n  byTrain=:by_tram\u0026\n  byFerry=:by_ferry\u0026\n  byTram=:by_tram\u0026\n  byBus=:by_bus\u0026\n  bySubway=:by_subway\n```\n\n``` javascript\n{\n  \"journeys\": [\n    {\n      \"id\": \"fromRef=utrecht/tramhalte-tram-centraal-station\u0026toRef=utrecht/bushalte-vasco-da-gamalaan-7-14\u0026searchType=arrival\u0026dateTime=2013-03-30T17:52\u0026interchangeTime=extra\u0026sequence=1\u0026modes=train:false,bus:true,subway:false,tram:true,ferry:false\",\n      \"ludMessages\": [],\n      \"fasterJourneyId\": null,\n      \"departure\": \"2013-03-30T17:38\",\n      \"arrival\": \"2013-03-30T17:52\",\n      \"numberOfChanges\": 0,\n      \"legs\": [\n        {\n          \"type\": \"scheduled\",\n          \"mode\": {\n            \"type\": \"tram\",\n            \"name\": \"Sneltram\"\n          },\n          \"destination\": \"IJsselstein\",\n          \"operator\": {\n            \"type\": \"connexxion\",\n            \"name\": \"Connexxion\"\n          },\n          \"service\": \"ST\",\n          \"attributes\": [],\n          \"disturbancePlannerIds\": [],\n          \"serviceMessageIds\": [],\n          \"stops\": [\n            {\n              \"arrival\": null,\n              \"departure\": \"2013-03-30T17:38\",\n              \"platform\": null,\n              \"location\": {\n                \"id\": \"utrecht/tramhalte-tram-centraal-station\",\n                \"type\": \"stop\",\n                \"stopType\": \"Tram stop\",\n                \"name\": \"Tram Centraal Station\",\n                \"place\": {\n                  \"name\": \"Utrecht\",\n                  \"regionCode\": \"UT\",\n                  \"regionName\": \"Utrecht\",\n                  \"showRegion\": false,\n                  \"countryCode\": \"NL\",\n                  \"countryName\": \"The Netherlands\",\n                  \"showCountry\": false\n                },\n                \"latLong\": {\n                  \"lat\": 52.091727,\n                  \"long\": 5.110252\n                },\n                \"urls\": {\n                  \"nl-NL\": \"/utrecht/tramhalte-tram-centraal-station\",\n                  \"en-GB\": \"/en/utrecht/tramhalte-tram-centraal-station\"\n                }\n              },\n              \"fallbackName\": null\n            }\n          ]\n        },\n        {\n          \"type\": \"continuous\",\n          \"duration\": \"00:06\",\n          \"mode\": {\n            \"type\": \"walk\",\n            \"name\": \"Lopen van/naar bestemming\"\n          },\n          \"stops\": [\n            {\n              \"arrival\": null,\n              \"departure\": null,\n              \"platform\": null,\n              \"location\": {\n                \"id\": \"utrecht/bus-tramhalte-vasco-da-gamalaan-sneltram\",\n                \"type\": \"stop\",\n                \"stopType\": \"Tram stop\",\n                \"name\": \"Vasco Da Gamalaan (Sneltram)\",\n                \"place\": {\n                  \"name\": \"Utrecht\",\n                  \"regionCode\": \"UT\",\n                  \"regionName\": \"Utrecht\",\n                  \"showRegion\": false,\n                  \"countryCode\": \"NL\",\n                  \"countryName\": \"The Netherlands\",\n                  \"showCountry\": false\n                },\n                \"latLong\": {\n                  \"lat\": 52.068151,\n                  \"long\": 5.102494\n                },\n                \"urls\": {\n                  \"nl-NL\": \"/utrecht/bus-tramhalte-vasco-da-gamalaan-sneltram\",\n                  \"en-GB\": \"/en/utrecht/bus-tramhalte-vasco-da-gamalaan-sneltram\"\n                }\n              },\n              \"fallbackName\": null\n            }\n          ]\n        }\n      ],\n      \"fareInfo\": {\n        \"complete\": true,\n        \"fullPriceCents\": 132,\n        \"reducedPriceCents\": 132,\n        \"legs\": [\n          {\n            \"from\": {\n              \"id\": \"utrecht/tramhalte-tram-centraal-station\",\n              \"type\": \"stop\",\n              \"stopType\": \"Tram stop\",\n              \"name\": \"Tram Centraal Station\",\n              \"place\": {\n                \"name\": \"Utrecht\",\n                \"regionCode\": \"UT\",\n                \"regionName\": \"Utrecht\",\n                \"showRegion\": false,\n                \"countryCode\": \"NL\",\n                \"countryName\": \"The Netherlands\",\n                \"showCountry\": false\n              },\n              \"latLong\": {\n                \"lat\": 52.091727,\n                \"long\": 5.110252\n              },\n              \"urls\": {\n                \"nl-NL\": \"/utrecht/tramhalte-tram-centraal-station\",\n                \"en-GB\": \"/en/utrecht/tramhalte-tram-centraal-station\"\n              }\n            },\n            \"to\": {\n              \"id\": \"utrecht/bus-tramhalte-vasco-da-gamalaan-sneltram\",\n              \"type\": \"stop\",\n              \"stopType\": \"Tram stop\",\n              \"name\": \"Vasco Da Gamalaan (Sneltram)\",\n              \"place\": {\n                \"name\": \"Utrecht\",\n                \"regionCode\": \"UT\",\n                \"regionName\": \"Utrecht\",\n                \"showRegion\": false,\n                \"countryCode\": \"NL\",\n                \"countryName\": \"The Netherlands\",\n                \"showCountry\": false\n              },\n              \"latLong\": {\n                \"lat\": 52.068151,\n                \"long\": 5.102494\n              },\n              \"urls\": {\n                \"nl-NL\": \"/utrecht/bus-tramhalte-vasco-da-gamalaan-sneltram\",\n                \"en-GB\": \"/en/utrecht/bus-tramhalte-vasco-da-gamalaan-sneltram\"\n              }\n            },\n            \"locationsString\": \"Utrecht\",\n            \"modeTypeString\": \"Tram\",\n            \"operatorString\": \"Connexxion\",\n            \"fares\": [\n              {\n                \"class\": \"none\",\n                \"reduced\": false,\n                \"eurocents\": 132\n              },\n              {\n                \"class\": \"none\",\n                \"reduced\": true,\n                \"eurocents\": 87\n              }\n            ]\n          }\n        ]\n      }\n    }\n  ],\n  \"earlier\": \"/0.1/journeys?lang=en-GB\u0026from=utrecht%2Ftramhalte-tram-centraal-station\u0026to=utrecht%2Fbushalte-vasco-da-gamalaan-7-14\u0026searchType=arrival\u0026dateTime=2013-03-30T1752\u0026sequence=1\u0026byTrain=false\u0026byBus=true\u0026bySubway=false\u0026byTram=true\u0026byFerry=false\u0026interchangeTime=extra\u0026after=-1\",\n  \"later\": \"/0.1/journeys?lang=en-GB\u0026from=utrecht%2Ftramhalte-tram-centraal-station\u0026to=utrecht%2Fbushalte-vasco-da-gamalaan-7-14\u0026searchType=arrival\u0026dateTime=2013-03-30T1837\u0026sequence=1\u0026byTrain=false\u0026byBus=true\u0026bySubway=false\u0026byTram=true\u0026byFerry=false\u0026interchangeTime=extra\u0026before=-1\",\n  \"disturbances\": [],\n  \"serviceMessages\": [],\n  \"nearbyAddresses\": []\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foleander%2F9292-nl-api-spec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foleander%2F9292-nl-api-spec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foleander%2F9292-nl-api-spec/lists"}