{"id":21820249,"url":"https://github.com/helixspiral/apod","last_synced_at":"2025-03-21T10:46:18.582Z","repository":{"id":57656716,"uuid":"458373728","full_name":"HelixSpiral/apod","owner":"HelixSpiral","description":"Golang wrapper for the Astronomy Picture of the Day API from NASA","archived":false,"fork":false,"pushed_at":"2024-11-26T01:03:42.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-26T07:23:56.335Z","etag":null,"topics":["api","apod","apod-api","astronomy","astronomy-picture","astronomy-picture-of-the-day","easy-to-use","go","golang","nasa","nasa-api","nasa-apod","nasa-apod-api","nasa-astronomy-picture","nasa-astronomy-picture-of-the-day","nasa-data","space","space-api","wrapper","wrapper-api"],"latest_commit_sha":null,"homepage":"https://helixspiral.github.io/posts/2022-02-28-system-scalability-and-microservices/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HelixSpiral.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"HelixSpiral"}},"created_at":"2022-02-11T23:48:53.000Z","updated_at":"2025-01-08T16:01:37.000Z","dependencies_parsed_at":"2025-01-26T07:23:30.220Z","dependency_job_id":"eabfda50-d6af-4e1a-94fd-aa0b16ce1377","html_url":"https://github.com/HelixSpiral/apod","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/HelixSpiral%2Fapod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HelixSpiral%2Fapod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HelixSpiral%2Fapod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HelixSpiral%2Fapod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HelixSpiral","download_url":"https://codeload.github.com/HelixSpiral/apod/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244782564,"owners_count":20509839,"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":["api","apod","apod-api","astronomy","astronomy-picture","astronomy-picture-of-the-day","easy-to-use","go","golang","nasa","nasa-api","nasa-apod","nasa-apod-api","nasa-astronomy-picture","nasa-astronomy-picture-of-the-day","nasa-data","space","space-api","wrapper","wrapper-api"],"created_at":"2024-11-27T16:29:41.389Z","updated_at":"2025-03-21T10:46:18.559Z","avatar_url":"https://github.com/HelixSpiral.png","language":"Go","funding_links":["https://github.com/sponsors/HelixSpiral"],"categories":[],"sub_categories":[],"readme":"Astronomy Picture of the Day API Wrapper\n---\n\nThis is a API wrapper written in Golang for the [Astronomy Picture of the Day](https://apod.nasa.gov/apod/astropix.html) service that NASA hosts.\n\nUsage\n---\n\nBasic date query:\n```go\n    apodInput := \u0026apod.NewAPODInput{\n        APIKey: \"DEMO_KEY\",\n    }\n\n    Apod := apod.NewAPOD(apodInput)\n    date, _ := time.Parse(\"2006-01-02\", \"2022-02-11\")\n    queryInput := \u0026apod.ApodQueryInput{\n        Date: date,\n    }\n\n    resp, err := Apod.Query(queryInput)\n    if err != nil {\n        panic(err)\n    }\n\n    fmt.Println(resp)\n```\n\nYou can provide a start and end date, with end date defaulting to the current date\n```go\n    apodInput := \u0026apod.NewAPODInput{\n        APIKey: \"DEMO_KEY\",\n    }\n\n    Apod := apod.NewAPOD(apodInput)\n\n    date, _ := time.Parse(\"2006-01-02\", \"2022-02-01\")\n    queryInput := \u0026apod.ApodQueryInput{\n        StartDate: date,\n        EndDate: date.Add((time.Hour*24) * 5),\n    }\n    \n    resp, err := Apod.Query(queryInput)\n    if err != nil {\n        panic(err)\n    }\n\n    fmt.Println(resp)\n```\n\nProviding a count gives you that many random selections\n```go\n    apodInput := \u0026apod.NewAPODInput{\n        APIKey: \"DEMO_KEY\",\n    }\n\n    Apod := apod.NewAPOD(apodInput)\n\n    queryInput := \u0026apod.ApodQueryInput{\n        Count: 5,\n    }\n    \n    resp, err := Apod.Query(queryInput)\n    if err != nil {\n        panic(err)\n    }\n\n    fmt.Println(resp)\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelixspiral%2Fapod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhelixspiral%2Fapod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelixspiral%2Fapod/lists"}