{"id":37149869,"url":"https://github.com/rafaelespinoza/bart-go","last_synced_at":"2026-01-14T17:42:32.076Z","repository":{"id":57542546,"uuid":"149038498","full_name":"rafaelespinoza/bart-go","owner":"rafaelespinoza","description":"BART API client, JSON","archived":false,"fork":false,"pushed_at":"2022-02-13T01:01:26.000Z","size":62,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T12:41:13.663Z","etag":null,"topics":["bart"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/rafaelespinoza/bart-go","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rafaelespinoza.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":"2018-09-16T21:45:20.000Z","updated_at":"2024-06-20T12:41:13.664Z","dependencies_parsed_at":"2022-09-26T18:31:14.991Z","dependency_job_id":null,"html_url":"https://github.com/rafaelespinoza/bart-go","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rafaelespinoza/bart-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaelespinoza%2Fbart-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaelespinoza%2Fbart-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaelespinoza%2Fbart-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaelespinoza%2Fbart-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rafaelespinoza","download_url":"https://codeload.github.com/rafaelespinoza/bart-go/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaelespinoza%2Fbart-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28428917,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T16:38:47.836Z","status":"ssl_error","status_checked_at":"2026-01-14T16:34:59.695Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["bart"],"created_at":"2026-01-14T17:42:31.284Z","updated_at":"2026-01-14T17:42:32.065Z","avatar_url":"https://github.com/rafaelespinoza.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bart\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/rafaelespinoza/bart-go.svg)](https://pkg.go.dev/github.com/rafaelespinoza/bart-go)\n\nBART API client in golang.\nSupports Advisories, Real-Time Estimates, Routes, Schedules, Stations APIs.\nOutputs JSON.\n\n-   [Official BART API docs](https://api.bart.gov/docs/overview/index.aspx)\n-   [Package docs](https://pkg.go.dev/github.com/rafaelespinoza/bart-go)\n\nSee the examples file for general usage.\n\n---\n\nThe response schema from the BART API is a little irregular and this package makes every attempt to\nmake field names more consistent across APIs. For example, a response from `/stn.aspx?cmd=stns\u0026json=y` gives you:\n\n```json\n{\n    \"root\": {\n        \"stations\": {\n            \"station\": [ { } ]\n        }\n    }\n}\n```\n\nWhile the resulting go struct will be in the shape:\n\n```go\n    Root struct {\n        Data struct {\n            List []struct { }\n        }\n    }\n```\n\n#### station names\n\nThere are several methods that require an orig or dest value to be the name of the station. Valid\nvalues for orig, dest inputs are 4-letter abbreviations for the station name. [Here is a full list\nof station abbreviations](https://api.bart.gov/docs/overview/abbrev.aspx). The methods in this\npackage will accept those values as upper, lower or mixed case. If passed an invalid value, an error\nis returned instead of performing the request.\n\n#### available schedules, schedule numbers\n\nThe BART API does let you query for results based on past or future schedules, but this package\nelects to use the current schedule only.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafaelespinoza%2Fbart-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frafaelespinoza%2Fbart-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafaelespinoza%2Fbart-go/lists"}