{"id":22468507,"url":"https://github.com/projectweekend/transit-stop-api","last_synced_at":"2025-03-27T15:44:33.353Z","repository":{"id":26060192,"uuid":"29503736","full_name":"projectweekend/Transit-Stop-API","owner":"projectweekend","description":"A JSON API for transit stop data maintained by Transit-Stop-Collector (https://github.com/projectweekend/Transit-Stop-Collector)","archived":false,"fork":false,"pushed_at":"2015-10-31T14:55:24.000Z","size":272,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T19:29:43.901Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/projectweekend.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-20T00:28:42.000Z","updated_at":"2015-04-18T20:54:13.000Z","dependencies_parsed_at":"2022-08-24T15:01:22.777Z","dependency_job_id":null,"html_url":"https://github.com/projectweekend/Transit-Stop-API","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/projectweekend%2FTransit-Stop-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectweekend%2FTransit-Stop-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectweekend%2FTransit-Stop-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectweekend%2FTransit-Stop-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/projectweekend","download_url":"https://codeload.github.com/projectweekend/Transit-Stop-API/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245874182,"owners_count":20686718,"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-12-06T11:17:00.335Z","updated_at":"2025-03-27T15:44:33.320Z","avatar_url":"https://github.com/projectweekend.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## API Key\n\nAll requests require an API key be included in the header: `API_KEY`.\n\n\n### Get a list of transit systems\n\n**GET:**\n```\n/\n```\n\n**Response:**\n```json\n[\n    {\n        \"_id\": \"54cda510d0fddfb4ff5dc94c\",\n        \"system\": \"chicago-cta\",\n        \"urls\": {\n            \"routes\": \"/chicago-cta\"\n        },\n        \"name\": \"Chicago Transit Authority\"\n    },\n    {\n        \"_id\": \"54cda451d0fddfb4e88241fc\",\n        \"system\": \"dc-wmata\",\n        \"urls\": {\n            \"routes\": \"/dc-wmata\"\n        },\n        \"name\": \"Washington Metropolitan Area Transit Authority\"\n    }\n]\n```\n\n**Query Parameters:**\n\n* `name`: Fuzzy search on `name`.\n\n**Note:**\nThe `urls` property contains the next logical API route that can be accessed using the information from this route. In the example above, the URL in `urls.routes` will return all transit routes available for that transit system.\n\n\n- - -\n\n\n### Get routes for a transit system\n\n**GET:**\n```\n/:system\n```\n\n**Response:**\n```json\n[\n    {\n        \"_id\": \"54cda512d0fddfb4ff5dc94d\",\n        \"name\": \"Bronzeville/Union Station\",\n        \"urls\": {\n            \"All Stops\": \"/chicago-cta/bus/1\",\n            \"North\": \"/chicago-cta/bus/1/north\",\n            \"South\": \"/chicago-cta/bus/1/south\"\n        },\n        \"type\": \"bus\",\n        \"id\": \"1\",\n        \"directions\": [\n            \"North\",\n            \"South\"\n        ]\n    },\n    {\n        \"_id\": \"54cda512d0fddfb4ff5dc94e\",\n        \"name\": \"Museum of S \u0026 I\",\n        \"urls\": {\n            \"All Stops\": \"/chicago-cta/bus/10\",\n            \"North\": \"/chicago-cta/bus/10/north\",\n            \"South\": \"/chicago-cta/bus/10/south\"\n        },\n        \"type\": \"bus\",\n        \"id\": \"10\",\n        \"directions\": [\n            \"North\",\n            \"South\"\n        ]\n    }\n]\n```\n\n**Query Parameters:**\n\n* `type`: Filter by `type`: **bus** or **train**.\n* `name`: Fuzzy search on `name`.\n\n\n**Note:**\nThe `urls` property contains the next logical API routes that can be accessed using the information from this route. In the example above, the URL in `urls[\"All Stops\"]` will return all stops for the route. The URL in `urls[\"South\"]` will return all southbound stops. The URL in `urls[\"North\"]` will return all northbound stops.\n\n\n- - -\n\n\n### Get train stops for a route\n\n**GET:**\n```\n/:system/train/:route_id\n```\n\n**Response:**\n```json\n[\n    {\n        \"_id\": \"54cda5cbd0fddfb4ff5e037e\",\n        \"name\": \"Addison-Blue\",\n        \"route_direction\": \"n/a\",\n        \"latitude\": 41.94738,\n        \"system\": \"chicago-cta\",\n        \"longitude\": -87.71906\n    },\n    {\n        \"_id\": \"54cda5cbd0fddfb4ff5e037f\",\n        \"name\": \"Austin-Blue\",\n        \"route_direction\": \"n/a\",\n        \"latitude\": 41.870851,\n        \"system\": \"chicago-cta\",\n        \"longitude\": -87.776812\n    }\n]\n```\n\n**Query Parameters:**\n\n* `name`: Fuzzy search on `name`.\n\n\n- - -\n\n\n### Get bus stops for a route\n\n**GET:**\n```\n/:system/bus/:route_id\n```\n\n**Response:**\n```json\n[\n    {\n        \"_id\": \"54cda5b9d0fddfb4ff5dc9d2\",\n        \"name\": \"1509 S Michigan\",\n        \"route_direction\": \"North\",\n        \"latitude\": 41.86183776,\n        \"system\": \"chicago-cta\",\n        \"longitude\": -87.62388488\n    },\n    {\n        \"_id\": \"54cda5b9d0fddfb4ff5dc9d3\",\n        \"name\": \"1510 S Michigan\",\n        \"route_direction\": \"South\",\n        \"latitude\": 41.861798,\n        \"system\": \"chicago-cta\",\n        \"longitude\": -87.624121\n    }\n]\n```\n\n**Query Parameters:**\n\n* `name`: Fuzzy search on `name`.\n\n\n- - -\n\n\n### Get bus stops for a direction of a route\n\n**GET:**\n```\n/:system/bus/:route_id/:direction\n```\n\n**Response:**\n```json\n[\n    {\n        \"_id\": \"54cda5b9d0fddfb4ff5dc9d2\",\n        \"name\": \"1509 S Michigan\",\n        \"route_direction\": \"North\",\n        \"latitude\": 41.86183776,\n        \"system\": \"chicago-cta\",\n        \"longitude\": -87.62388488\n    },\n    {\n        \"_id\": \"54cda5b9d0fddfb4ff5dc9d4\",\n        \"name\": \"3000 S Michigan\",\n        \"route_direction\": \"North\",\n        \"latitude\": 41.840602,\n        \"system\": \"chicago-cta\",\n        \"longitude\": -87.623115\n    }\n]\n```\n\n**Query Parameters:**\n\n* `name`: Fuzzy search on `name`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprojectweekend%2Ftransit-stop-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprojectweekend%2Ftransit-stop-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprojectweekend%2Ftransit-stop-api/lists"}