{"id":34927838,"url":"https://github.com/ryan-lang/noaa-tidesandcurrents","last_synced_at":"2026-05-23T15:31:13.858Z","repository":{"id":210978039,"uuid":"727901223","full_name":"ryan-lang/noaa-tidesandcurrents","owner":"ryan-lang","description":"A go library and CLI that provides an unofficial, thin wrapper around the NOAA Tides and Currents APIs.","archived":false,"fork":false,"pushed_at":"2023-12-10T19:09:48.000Z","size":63,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-01-28T02:33:56.170Z","etag":null,"topics":["cli","go","library","noaa","noaa-api"],"latest_commit_sha":null,"homepage":"","language":"Go","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/ryan-lang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-12-05T20:09:38.000Z","updated_at":"2023-12-10T19:00:14.000Z","dependencies_parsed_at":"2023-12-08T22:23:54.061Z","dependency_job_id":"a6dbcd50-ee39-4c71-8410-3f0cefbdc580","html_url":"https://github.com/ryan-lang/noaa-tidesandcurrents","commit_stats":{"total_commits":14,"total_committers":2,"mean_commits":7.0,"dds":0.0714285714285714,"last_synced_commit":"7f2987b0526237208a68e3a52646db6791b4930b"},"previous_names":["ryan-lang/noaa-tidesandcurrents"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ryan-lang/noaa-tidesandcurrents","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryan-lang%2Fnoaa-tidesandcurrents","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryan-lang%2Fnoaa-tidesandcurrents/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryan-lang%2Fnoaa-tidesandcurrents/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryan-lang%2Fnoaa-tidesandcurrents/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryan-lang","download_url":"https://codeload.github.com/ryan-lang/noaa-tidesandcurrents/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryan-lang%2Fnoaa-tidesandcurrents/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33402163,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-23T04:15:53.637Z","status":"ssl_error","status_checked_at":"2026-05-23T04:15:53.242Z","response_time":53,"last_error":"SSL_read: 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":["cli","go","library","noaa","noaa-api"],"created_at":"2025-12-26T14:59:50.945Z","updated_at":"2026-05-23T15:31:13.851Z","avatar_url":"https://github.com/ryan-lang.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NOAA Tides and Currents\n\nA go library and CLI that provides an unofficial, thin wrapper around the NOAA Tides and Currents APIs.\n\nThe bulk of the code is generated from yaml files found in the `./spec` directory, making it quick and easy to keep up with changes to the NOAA APIs.\n\n## CLI\n\n```bash\ngo install github.com/ryan-lang/noaa-tidesandcurrents/cmd/noaatc@latest\n\nnoaatc getData predictions --station-id 9447130 --begin yesterday --hours 24 --interval 60 --units english\n\nnoaatc getMetadata harcon --station-id 9447130\n```\n\n## Library\n\n```go\n// data api\nimport \"github.com/ryan-lang/noaa-tidesandcurrents/client/dataApi\"\n\nclient := dataApi.NewClient(true, \"yourapplication\")\n\nreq := \u0026dataApi.TidePredictionsRequest{\n    StationID: \"9447130\",\n    Date: \u0026dataApi.DateParamBeginAndRange{\n        BeginDate:  time.Date(2023, 4, 10, 0, 0, 0, 0, time.UTC),\n        RangeHours: 1,\n    },\n    Interval: \"10\",\n    Units:    \"metric\",\n}\n\nres, err := client.TidePredictions(context.Background(), req)\nif err != nil {\n    log.Fatal(err)\n}\n\n```\n\n```go\n// metadata api\nimport \"github.com/ryan-lang/noaa-tidesandcurrents/client/metadataApi\"\n\nclient := metadataApi.NewClient(true, \"yourapplication\")\n\nreq := metadataApi.NewStationRequest(client, \"9447130\")\n\nres, err := req.HarmonicConstituents(context.Background(), \u0026metadataApi.HarmonicConstituentsRequest{\n    Units: \"metric\",\n})\nif err != nil {\n    log.Fatal(err)\n}\n\n```\n\n### Supported endpoints\n#### Data API\n\n| NOAA Product ID | Method Name | CLI Command\n| --- | --- | --- |\n| water_level | WaterLevel | water-level |\n| hourly_height | HourlyHeight | hourly-height |\n| high_low | HighLow | high-low |\n| daily_mean | DailyMean | daily-mean |\n| monthly_mean | MonthlyMean | monthly-mean |\n| one_minute_water_level | WaterLevelHiRes | water-level-hi-res |\n| predictions | TidePredictions | tide-predictions |\n| datums | Datums | datums |\n| air_gap | AirGap | air-gap |\n| air_temperature | AirTemperature | air-temperature |\n| water_temperature | WaterTemperature | water-temperature |\n| wind | Wind | wind |\n| air_pressure | AirPressure | air-pressure |\n| conductivity | Conductivity | conductivity |\n| visibility | Visibility | visibility |\n| humidity | Humidity | humidity |\n| salinity | Salinity | salinity |\n| currents | Currents | currents |\n| currents_predictions | CurrentsPredictions | currents-predictions |\n\n\n#### Metadata API\n\n| Resource ID | Method Name |\n| --- | --- |\n| harcon | HarmonicConstituents |\n| tidepredoffsets | TidePredictionOffsets |\n\n\n## Contributing\n\n```bash\ngit clone git@github.com:ryan-lang/noaa-tidesandcurrents.git\ncd noaa-tidesandcurrents\ngo run ./cmd/gen/main.go\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryan-lang%2Fnoaa-tidesandcurrents","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryan-lang%2Fnoaa-tidesandcurrents","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryan-lang%2Fnoaa-tidesandcurrents/lists"}