{"id":20334907,"url":"https://github.com/mdb/seaweed","last_synced_at":"2025-08-23T17:50:36.391Z","repository":{"id":57586999,"uuid":"43493392","full_name":"mdb/seaweed","owner":"mdb","description":"A thin, Go Magic Seaweed API client for fetching surf forecast data.","archived":false,"fork":false,"pushed_at":"2023-04-05T14:26:40.000Z","size":83,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-17T16:55:31.291Z","etag":null,"topics":["go","golang","magic-seaweed"],"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/mdb.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-10-01T11:46:05.000Z","updated_at":"2023-05-19T15:10:32.000Z","dependencies_parsed_at":"2024-06-20T13:07:16.010Z","dependency_job_id":"8e5d4049-4f30-4521-8e56-ac28356a1f88","html_url":"https://github.com/mdb/seaweed","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/mdb/seaweed","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdb%2Fseaweed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdb%2Fseaweed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdb%2Fseaweed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdb%2Fseaweed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mdb","download_url":"https://codeload.github.com/mdb/seaweed/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdb%2Fseaweed/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271760483,"owners_count":24816427,"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","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["go","golang","magic-seaweed"],"created_at":"2024-11-14T20:38:34.014Z","updated_at":"2025-08-23T17:50:36.354Z","avatar_url":"https://github.com/mdb.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![CI](https://github.com/mdb/seaweed/actions/workflows/ci.yaml/badge.svg?branch=main)](https://github.com/mdb/seaweed/actions/workflows/ci.yaml) [![PkgGoDev](https://pkg.go.dev/badge/github.com/mdb/seaweed)](https://pkg.go.dev/github.com/mdb/seaweed) [![Go Report Card](https://goreportcard.com/badge/github.com/mdb/seaweed)](https://goreportcard.com/report/github.com/mdb/seaweed)\n\n# seaweed\n\nA thin, Go [Magic Seaweed API](http://magicseaweed.com/developer/forecast-api) client for fetching marine forecast data.\n\n## Usage\n\nBasic usage:\n\n```go\nimport (\n  \"github.com/mdb/seaweed\"\n)\n\nfunc main() {\n  forecasts, err := seaweed.Get(\"\u003cYOUR_API_KEY\u003e\", \"\u003cSOME_SPOT_ID\")\n  if err != nil {\n    panic(err)\n  }\n\n  fmt.Printf(\"%# v\", forecasts)\n}\n```\n\nAlternatively, instantiate a `seaweed.Client`:\n\n\n```go\nimport (\n  \"github.com/mdb/seaweed\"\n)\n\nfunc main() {\n  client := seaweed.NewClient(\"\u003cYOUR_API_KEY\u003e\")\n  resp, err := client.Forecast(\"\u003cSOME_SPOT_ID\u003e\")\n  if err != nil {\n    panic(err)\n  }\n\n  fmt.Printf(\"%# v\", resp)\n}\n```\n\nUse a customized client:\n\n```go\nclient := seaweed.NewClient(\n  \"\u003cYOUR_API_KEY\u003e\",\n  seaweed.WithBaseURL(\"https://foo.com\"),\n  seaweed.WithHTTPClient(\u0026http.Client{}), // *http.Client\n  seaweed.WithLogger(logrus.New()),       // *logrus.Logger\n  seaweed.WithClock(seaweed.RealClock{}), // seaweed.Clock\n)\n```\n\nTo adjust the `*seaweed.Client`'s log level:\n\n```go\nclient.Logger.SetLevel(logrus.DebugLevel)\n```\n\nClient methods:\n\n```go\nimport (\n  \"github.com/mdb/seaweed\"\n)\n\nclient := seaweed.NewClient(\"\u003cYOUR_API_KEY\u003e\")\n\n// Full forecast\nresp, err := client.Forecast(\"\u003cSOME_SPOT_ID\u003e\")\n\n// Today's forecast\nresp, err := client.Today(\"\u003cSOME_SPOT_ID\u003e\")\n\n// Tomorrow's forecast\nresp, err := client.Tomorrow(\"\u003cSOME_SPOT_ID\u003e\")\n\n// This weekend's forecast\nresp, err := client.Weekend(\"\u003cSOME_SPOT_ID\u003e\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdb%2Fseaweed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmdb%2Fseaweed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdb%2Fseaweed/lists"}