{"id":13529193,"url":"https://github.com/influxdata/influxdb1-client","last_synced_at":"2025-05-15T05:08:03.526Z","repository":{"id":34968936,"uuid":"165437702","full_name":"influxdata/influxdb1-client","owner":"influxdata","description":"The old clientv2 for InfluxDB 1.x","archived":false,"fork":false,"pushed_at":"2024-03-12T10:54:59.000Z","size":87,"stargazers_count":191,"open_issues_count":40,"forks_count":112,"subscribers_count":47,"default_branch":"master","last_synced_at":"2025-05-03T03:15:04.916Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/influxdata.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":"2019-01-12T21:28:42.000Z","updated_at":"2025-04-25T05:33:08.000Z","dependencies_parsed_at":"2024-06-18T12:28:03.140Z","dependency_job_id":null,"html_url":"https://github.com/influxdata/influxdb1-client","commit_stats":{"total_commits":13,"total_committers":9,"mean_commits":"1.4444444444444444","dds":0.7692307692307692,"last_synced_commit":"a9ab5670611c9764d02779d2121f9a1240c1a867"},"previous_names":["influxdata/influxdb1-clientv2"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/influxdata%2Finfluxdb1-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/influxdata%2Finfluxdb1-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/influxdata%2Finfluxdb1-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/influxdata%2Finfluxdb1-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/influxdata","download_url":"https://codeload.github.com/influxdata/influxdb1-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254050851,"owners_count":22006373,"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":[],"created_at":"2024-08-01T07:00:34.219Z","updated_at":"2025-05-15T05:07:58.517Z","avatar_url":"https://github.com/influxdata.png","language":"Go","funding_links":[],"categories":["Client libraries"],"sub_categories":["Official"],"readme":"# influxdb1-clientv2\ninfluxdb1-clientv2 is the current Go client API for InfluxDB 1.x. For connecting to InfluxDB 2.x see the [influxdb-client-go](https://github.com/influxdata/influxdb-client-go) client library.\n\nInfluxDB is an open-source distributed time series database, find more about [InfluxDB](https://www.influxdata.com/time-series-platform/influxdb/) at https://docs.influxdata.com/influxdb/latest\n\n## Usage\nTo import into your Go project, run the following command in your terminal:\n`go get github.com/influxdata/influxdb1-client/v2`\nThen, in your import declaration section of your Go file, paste the following:\n`import \"github.com/influxdata/influxdb1-client/v2\"`\n\nIf you get the error `build github.com/user/influx: cannot find module for path github.com/influxdata/influxdb1-client/v2` when trying to build:\nchange your import to:\n```go\nimport(\n\t_ \"github.com/influxdata/influxdb1-client\" // this is important because of the bug in go mod\n\tclient \"github.com/influxdata/influxdb1-client/v2\"\n)\n```\n\n## Example\nThe following example creates a new client to the InfluxDB host on localhost:8086 and runs a query for the measurement `cpu_load` from the `mydb` database. \n``` go\nfunc ExampleClient_query() {\n\tc, err := client.NewHTTPClient(client.HTTPConfig{\n\t\tAddr: \"http://localhost:8086\",\n\t})\n\tif err != nil {\n\t\tfmt.Println(\"Error creating InfluxDB Client: \", err.Error())\n\t}\n\tdefer c.Close()\n\n\tq := client.NewQuery(\"SELECT count(value) FROM cpu_load\", \"mydb\", \"\")\n\tif response, err := c.Query(q); err == nil \u0026\u0026 response.Error() == nil {\n\t\tfmt.Println(response.Results)\n\t}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfluxdata%2Finfluxdb1-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfluxdata%2Finfluxdb1-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfluxdata%2Finfluxdb1-client/lists"}