{"id":13514984,"url":"https://github.com/algolia/algoliasearch-client-go","last_synced_at":"2025-06-19T15:41:47.147Z","repository":{"id":15011008,"uuid":"17736577","full_name":"algolia/algoliasearch-client-go","owner":"algolia","description":"⚡️ A fully-featured and blazing-fast Go API client to interact with Algolia.","archived":false,"fork":false,"pushed_at":"2025-06-16T11:40:56.000Z","size":59267,"stargazers_count":199,"open_issues_count":6,"forks_count":62,"subscribers_count":83,"default_branch":"main","last_synced_at":"2025-06-16T12:36:12.141Z","etag":null,"topics":["algolia","algolia-search","api-client","go","search"],"latest_commit_sha":null,"homepage":"https://www.algolia.com/doc/api-client/go/getting-started/","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/algolia.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2014-03-14T05:41:02.000Z","updated_at":"2025-06-16T11:40:59.000Z","dependencies_parsed_at":"2023-12-12T16:28:24.024Z","dependency_job_id":"8063bef7-fcd2-4a97-b31e-00a03236fed4","html_url":"https://github.com/algolia/algoliasearch-client-go","commit_stats":null,"previous_names":[],"tags_count":232,"template":false,"template_full_name":null,"purl":"pkg:github/algolia/algoliasearch-client-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/algolia%2Falgoliasearch-client-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/algolia%2Falgoliasearch-client-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/algolia%2Falgoliasearch-client-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/algolia%2Falgoliasearch-client-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/algolia","download_url":"https://codeload.github.com/algolia/algoliasearch-client-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/algolia%2Falgoliasearch-client-go/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260781349,"owners_count":23062222,"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":["algolia","algolia-search","api-client","go","search"],"created_at":"2024-08-01T05:01:04.930Z","updated_at":"2025-06-19T15:41:42.132Z","avatar_url":"https://github.com/algolia.png","language":"Go","funding_links":[],"categories":["API Clients","Go"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.algolia.com\"\u003e\n    \u003cimg alt=\"Algolia for Go\" src=\"https://raw.githubusercontent.com/algolia/algoliasearch-client-common/master/banners/go.png\" \u003e\n  \u003c/a\u003e\n\n  \u003ch4 align=\"center\"\u003eThe perfect starting point to integrate \u003ca href=\"https://algolia.com\" target=\"_blank\"\u003eAlgolia\u003c/a\u003e within your Go project\u003c/h4\u003e\n\n  \u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/algolia/algoliasearch-client-go/tags\"\u003e\u003cimg src=\"https://img.shields.io/github/tag/algolia/algoliasearch-client-go.svg?include_prereleases\u0026sort=semver\" alt=\"Github Releases\"\u003e\u003c/img\u003e\u003c/a\u003e\n    \u003ca href=\"https://pkg.go.dev/github.com/algolia/algoliasearch-client-go/v4\"\u003e\u003cimg src=\"https://pkg.go.dev/badge/github.com/algolia/algoliasearch-client-go/v4\" alt=\"GoDoc\"\u003e\u003c/img\u003e\u003c/a\u003e\n    \u003ca href=\"https://goreportcard.com/report/github.com/algolia/algoliasearch-client-go\"\u003e\u003cimg src=\"https://goreportcard.com/badge/github.com/algolia/algoliasearch-client-go\" alt=\"Go Report Card\"\u003e\u003c/img\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/algolia/algoliasearch-client-go/blob/main/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-MIT-blue.svg\" alt=\"License\"\u003e\u003c/img\u003e\u003c/a\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Go-%3E=1.21-green.svg\" alt=\"Supported version\"\u003e\u003c/img\u003e\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.algolia.com/doc/libraries/go/\" target=\"_blank\"\u003eDocumentation\u003c/a\u003e  •\n  \u003ca href=\"https://discourse.algolia.com\" target=\"_blank\"\u003eCommunity Forum\u003c/a\u003e  •\n  \u003ca href=\"http://stackoverflow.com/questions/tagged/algolia\" target=\"_blank\"\u003eStack Overflow\u003c/a\u003e  •\n  \u003ca href=\"https://github.com/algolia/algoliasearch-client-go/issues\" target=\"_blank\"\u003eReport a bug\u003c/a\u003e  •\n  \u003ca href=\"https://www.algolia.com/doc/api-client/troubleshooting/faq/go/\" target=\"_blank\"\u003eFAQ\u003c/a\u003e  •\n  \u003ca href=\"https://alg.li/support\" target=\"_blank\"\u003eSupport\u003c/a\u003e\n\u003c/p\u003e\n\n## ✨ Features\n\n* Support Go 1.19 and above\n* Typed requests and responses\n* First-class support for user-defined structures\n* Injectable HTTP client\n\n## 💡 Getting Started\n\nFirst, install the Algolia API Go Client via the go get command:\n\n```bash\ngo get github.com/algolia/algoliasearch-client-go/v4\n```\n\nYou can now import the Algolia API client in your project and play with it.\n\n\n```go\nimport \"github.com/algolia/algoliasearch-client-go/v4/algolia/search\"\n\nclient, err := search.NewClient(\"YOUR_APP_ID\", \"YOUR_API_KEY\")\n\n// Add a new record to your Algolia index\nresponse, err := client.SaveObject(client.NewApiSaveObjectRequest(\n  \"\u003cYOUR_INDEX_NAME\u003e\", map[string]any{\"objectID\": \"id\", \"test\": \"val\"},\n))\nif err != nil {\n  // handle the eventual error\n  panic(err)\n}\n\n// use the model directly\nprint(response)\n\n// Poll the task status to know when it has been indexed\ntaskResponse, err := searchClient.WaitForTask(\"\u003cYOUR_INDEX_NAME\u003e\", response.TaskID, nil, nil, nil)\nif err != nil {\n  panic(err)\n}\n\n// Fetch search results, with typo tolerance\nresponse, err := client.Search(client.NewApiSearchRequest(\n\n  search.NewEmptySearchMethodParams().SetRequests(\n    []search.SearchQuery{*search.SearchForHitsAsSearchQuery(\n      search.NewEmptySearchForHits().SetIndexName(\"\u003cYOUR_INDEX_NAME\u003e\").SetQuery(\"\u003cYOUR_QUERY\u003e\").SetHitsPerPage(50))}),\n))\nif err != nil {\n  // handle the eventual error\n  panic(err)\n}\n\n// use the model directly\nprint(response)\n```\n\nFor full documentation, visit the **[Algolia Go API Client](https://www.algolia.com/doc/libraries/go/)**.\n\n## ❓ Troubleshooting\n\nEncountering an issue? Before reaching out to support, we recommend heading to our [FAQ](https://www.algolia.com/doc/api-client/troubleshooting/faq/go/) where you will find answers for the most common issues and gotchas with the client. You can also open [a GitHub issue](https://github.com/algolia/api-clients-automation/issues/new?assignees=\u0026labels=\u0026projects=\u0026template=Bug_report.md)\n\n## Contributing\n\nThis repository hosts the code of the generated Algolia API client for Go, if you'd like to contribute, head over to the [main repository](https://github.com/algolia/api-clients-automation). You can also find contributing guides on [our documentation website](https://api-clients-automation.netlify.app/docs/introduction).\n\n## 📄 License\n\nThe Algolia Go API Client is an open-sourced software licensed under the [MIT license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falgolia%2Falgoliasearch-client-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falgolia%2Falgoliasearch-client-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falgolia%2Falgoliasearch-client-go/lists"}