{"id":25974693,"url":"https://github.com/dariubs/go-producthunt","last_synced_at":"2026-04-20T06:32:46.529Z","repository":{"id":278760322,"uuid":"936553383","full_name":"dariubs/go-producthunt","owner":"dariubs","description":"Product Hunt API Wrapper for Golang","archived":false,"fork":false,"pushed_at":"2025-02-23T03:13:29.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-05T02:35:37.106Z","etag":null,"topics":["producthunt","producthunt-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/dariubs.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":"2025-02-21T09:32:03.000Z","updated_at":"2025-02-23T03:13:32.000Z","dependencies_parsed_at":"2025-02-21T15:35:50.689Z","dependency_job_id":null,"html_url":"https://github.com/dariubs/go-producthunt","commit_stats":null,"previous_names":["dariubs/go-producthunt"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dariubs/go-producthunt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dariubs%2Fgo-producthunt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dariubs%2Fgo-producthunt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dariubs%2Fgo-producthunt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dariubs%2Fgo-producthunt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dariubs","download_url":"https://codeload.github.com/dariubs/go-producthunt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dariubs%2Fgo-producthunt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32036373,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"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":["producthunt","producthunt-api"],"created_at":"2025-03-05T02:33:12.306Z","updated_at":"2026-04-20T06:32:46.504Z","avatar_url":"https://github.com/dariubs.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-producthunt\n\n`go-producthunt` is a Golang package for interacting with the Product Hunt GraphQL API, offering features like retrieving daily posts, product details, topic-based listings, and top-ranked products by date with strong error handling.\n\n\n## Installation\n\nTo incorporate `go-producthunt` into your project, use the following command:\n\n```bash\ngo get github.com/dariubs/go-producthunt\n```\n\nEnsure your Go environment is properly configured to use modules.\n\n\n## Usage\n\nBelow is a basic example demonstrating how to use the package:\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\n\t\"github.com/dariubs/go-producthunt\"\n)\n\nfunc main() {\n\t// Initialize the ProductHunt client with your API key.\n\tapiKey := \"YOUR_API_KEY_HERE\"\n\tclient := producthunt.ProductHunt{APIKey: apiKey}\n\n\t// Retrieve the latest daily posts.\n\tproducts, err := client.GetDaily()\n\tif err != nil {\n\t\tlog.Fatalf(\"Error fetching daily posts: %v\", err)\n\t}\n\n\t// Display retrieved products.\n\tfor _, product := range products {\n\t\tfmt.Printf(\"ID: %s, Name: %s, Tagline: %s\\n\", product.ID, product.Name, product.Tagline)\n\t}\n}\n```\n\nReplace `\"YOUR_API_KEY_HERE\"` with your actual Product Hunt API key. This initializes the client and retrieves daily posts.\n\n\n\n## Contributing\n\nContributions are welcome! Submit issues and pull requests via the [GitHub repository](https://github.com/dariubs/go-producthunt). Please follow coding conventions and include relevant tests and documentation with your contributions.\n\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdariubs%2Fgo-producthunt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdariubs%2Fgo-producthunt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdariubs%2Fgo-producthunt/lists"}