{"id":22900198,"url":"https://github.com/hekmon/tavily","last_synced_at":"2025-10-17T12:10:12.012Z","repository":{"id":266975230,"uuid":"899899493","full_name":"hekmon/tavily","owner":"hekmon","description":"Tavily Go bindings (unofficial)","archived":false,"fork":false,"pushed_at":"2025-02-20T09:39:40.000Z","size":56,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-20T10:33:23.835Z","etag":null,"topics":["aitools","bindings","golang","golang-library","llm","openai-api","tavily","tools","websearch"],"latest_commit_sha":null,"homepage":"https://tavily.com","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/hekmon.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":"2024-12-07T10:18:31.000Z","updated_at":"2025-02-20T09:39:45.000Z","dependencies_parsed_at":"2025-02-20T10:27:53.041Z","dependency_job_id":"2d62f9c9-6ecb-4f3e-a5d0-622981ead872","html_url":"https://github.com/hekmon/tavily","commit_stats":null,"previous_names":["hekmon/tavily"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hekmon%2Ftavily","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hekmon%2Ftavily/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hekmon%2Ftavily/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hekmon%2Ftavily/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hekmon","download_url":"https://codeload.github.com/hekmon/tavily/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246586048,"owners_count":20801026,"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":["aitools","bindings","golang","golang-library","llm","openai-api","tavily","tools","websearch"],"created_at":"2024-12-14T01:18:21.283Z","updated_at":"2025-10-17T12:10:11.994Z","avatar_url":"https://github.com/hekmon.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tavily Go bindings\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/hekmon/tavily.svg)](https://pkg.go.dev/github.com/hekmon/tavily/v2) [![Go report card](https://goreportcard.com/badge/github.com/hekmon/tavily)](https://goreportcard.com/report/github.com/hekmon/tavily)\n\nThese Go bindings implements the [Tavily REST API](https://docs.tavily.com/docs/rest-api/api-reference) for the [Tavily](https://tavily.com/) SaaS service. Tavily offers APIs to search the web and retreive results in a simpe and clean way. It is first intended for LLM Agents but can be used for other purposes as well.\n\n## Features\n\n### Endpoints\n\nAll current endpoints are supported:\n\n- [x] Search\n- [x] Extract\n\n### Rate Limiting\n\nThe client will automatically handle Tavily [rate limiting](https://docs.tavily.com/docs/rest-api/api-reference#rate-limiting) for you.\n\n### Golang types\n\nEvery fields of tavily API responses that can be convert to high level Golang types will be converted for ease of use within your code base.\n\nFor example: `time.Duration`, `*url.URL`\n\nBut they will be reverted to their original type and value if they are marshal again to JSON.\n\n### Error Handling\n\nThe client will return a typed error with body content if the API returns a [known API error](https://docs.tavily.com/docs/rest-api/api-reference#error-codes) status code.\n\n### API Credits\n\nThe client will track current session API credits usage thru its stats method/object.\n\n## Usage\n\n### Installation\n\n```bash\ngo get -v github.com/hekmon/tavily/v2\n```\n\n### Example\n\n```go\npackage main\n\nimport (\n    \"context\"\n\n    \"github.com/hekmon/tavily\"\n)\n\nfunc main() {\n    client := tavily.NewClient(\"\u003cyour-tavily-API-key\u003e\", tavily.APIKeyTypeDev, nil)\n    answer, err := client.Search(context.TODO(), tavily.SearchQuery{\n        Query:                    \"What is Tavily ?\",\n        SearchDepth:              tavily.SearchDepthAdvanced,     // optional\n        Topic:                    tavily.SearchQueryTopicGeneral, // optional\n        MaxResults:               3,                              // optional\n        IncludeImages:            true,                           // optional\n        IncludeImageDescriptions: true,                           // optional\n        IncludeAnswer:            true,                           // optional but recommended for LLMs agents\n        // ... others optional params exist\n    })\n    if err != nil {\n        panic(err)\n    }\n    // Do something with the answer\n    // ...\n}\n```\n\n## OpenAI Tool helper\n\nAn [optional package](https://github.com/hekmon/tavily/tree/main/tools) can help you to integrate this Tavily client as a tool with the [OpenAI official API bindings](https://github.com/openai/openai-go).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhekmon%2Ftavily","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhekmon%2Ftavily","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhekmon%2Ftavily/lists"}