{"id":13761620,"url":"https://github.com/axiomhq/axiom-go","last_synced_at":"2026-02-20T10:06:05.297Z","repository":{"id":39628316,"uuid":"313906496","full_name":"axiomhq/axiom-go","owner":"axiomhq","description":"Official Go bindings for the Axiom API","archived":false,"fork":false,"pushed_at":"2026-02-19T12:14:41.000Z","size":5414,"stargazers_count":69,"open_issues_count":8,"forks_count":12,"subscribers_count":10,"default_branch":"main","last_synced_at":"2026-02-19T15:55:22.311Z","etag":null,"topics":["api","api-client","axiom","go","golang","golang-library","golang-package","hacktoberfest"],"latest_commit_sha":null,"homepage":"https://axiom.co","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/axiomhq.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-11-18T10:57:49.000Z","updated_at":"2026-02-19T12:14:44.000Z","dependencies_parsed_at":"2023-02-17T04:00:57.006Z","dependency_job_id":"b52ec9a7-baf3-4ef4-b6d4-fb08c4812f71","html_url":"https://github.com/axiomhq/axiom-go","commit_stats":null,"previous_names":[],"tags_count":79,"template":false,"template_full_name":null,"purl":"pkg:github/axiomhq/axiom-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axiomhq%2Faxiom-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axiomhq%2Faxiom-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axiomhq%2Faxiom-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axiomhq%2Faxiom-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/axiomhq","download_url":"https://codeload.github.com/axiomhq/axiom-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axiomhq%2Faxiom-go/sbom","scorecard":{"id":111910,"data":{"date":"2025-08-11","repo":{"name":"github.com/axiomhq/axiom-go","commit":"82e0d44aa38314e443911b8c147624a796c83eca"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":6.1,"checks":[{"name":"Code-Review","score":10,"reason":"all changesets reviewed","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":10,"reason":"23 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/dependent_pr.yaml:1","Warn: no topLevel permission defined: .github/workflows/pr.yaml:1","Warn: no topLevel permission defined: .github/workflows/push.yaml:1","Warn: no topLevel permission defined: .github/workflows/release.yaml:1","Warn: no topLevel permission defined: .github/workflows/server_regression.yaml:1","Warn: no topLevel permission defined: .github/workflows/test_examples.yaml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/dependent_pr.yaml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/axiomhq/axiom-go/dependent_pr.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/dependent_pr.yaml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/axiomhq/axiom-go/dependent_pr.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yaml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/axiomhq/axiom-go/pr.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yaml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/axiomhq/axiom-go/pr.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yaml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/axiomhq/axiom-go/pr.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yaml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/axiomhq/axiom-go/pr.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr.yaml:50: update your workflow using https://app.stepsecurity.io/secureworkflow/axiomhq/axiom-go/pr.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yaml:71: update your workflow using https://app.stepsecurity.io/secureworkflow/axiomhq/axiom-go/pr.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yaml:72: update your workflow using https://app.stepsecurity.io/secureworkflow/axiomhq/axiom-go/pr.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yaml:120: update your workflow using https://app.stepsecurity.io/secureworkflow/axiomhq/axiom-go/pr.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yaml:121: update your workflow using https://app.stepsecurity.io/secureworkflow/axiomhq/axiom-go/pr.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/push.yaml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/axiomhq/axiom-go/push.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/push.yaml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/axiomhq/axiom-go/push.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/push.yaml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/axiomhq/axiom-go/push.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/push.yaml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/axiomhq/axiom-go/push.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/push.yaml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/axiomhq/axiom-go/push.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/push.yaml:86: update your workflow using https://app.stepsecurity.io/secureworkflow/axiomhq/axiom-go/push.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/push.yaml:87: update your workflow using https://app.stepsecurity.io/secureworkflow/axiomhq/axiom-go/push.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/axiomhq/axiom-go/release.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/axiomhq/axiom-go/release.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yaml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/axiomhq/axiom-go/release.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/server_regression.yaml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/axiomhq/axiom-go/server_regression.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/server_regression.yaml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/axiomhq/axiom-go/server_regression.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test_examples.yaml:92: update your workflow using https://app.stepsecurity.io/secureworkflow/axiomhq/axiom-go/test_examples.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test_examples.yaml:93: update your workflow using https://app.stepsecurity.io/secureworkflow/axiomhq/axiom-go/test_examples.yaml/main?enable=pin","Info:   0 out of  20 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   5 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/release.yaml:14"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-15T12:29:00.860Z","repository_id":39628316,"created_at":"2025-08-15T12:29:00.860Z","updated_at":"2025-08-15T12:29:00.860Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29647768,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T09:27:29.698Z","status":"ssl_error","status_checked_at":"2026-02-20T09:26:12.373Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["api","api-client","axiom","go","golang","golang-library","golang-package","hacktoberfest"],"created_at":"2024-08-03T14:00:20.443Z","updated_at":"2026-02-20T10:06:05.292Z","avatar_url":"https://github.com/axiomhq.png","language":"Go","funding_links":[],"categories":["Official Libraries"],"sub_categories":["SDKs and Libraries"],"readme":"# axiom-go [![Go Reference][gopkg_badge]][gopkg] [![Workflow][workflow_badge]][workflow] [![Latest Release][release_badge]][release] [![License][license_badge]][license]\n\nIf you use the [Axiom CLI](https://github.com/axiomhq/cli), run\n`eval $(axiom config export -f)` to configure your environment variables.\n\n```go\npackage main\n\nimport (\n    \"context\"\n    \"fmt\"\n    \"log\"\n\n    \"github.com/axiomhq/axiom-go/axiom\"\n    \"github.com/axiomhq/axiom-go/axiom/ingest\"\n)\n\nfunc main() {\n    ctx := context.Background()\n\n    client, err := axiom.NewClient(\n        // If you don't want to configure your client using the environment,\n        // pass credentials explicitly:\n        // axiom.SetToken(\"xaat-xyz\"),\n    )\n    if err != nil {\n        log.Fatal(err)\n    }\n\n    if _, err = client.IngestEvents(ctx, \"my-dataset\", []axiom.Event{\n        {ingest.TimestampField: time.Now(), \"foo\": \"bar\"},\n        {ingest.TimestampField: time.Now(), \"bar\": \"foo\"},\n    }); err != nil {\n        log.Fatal(err)\n    }\n\n    res, err := client.Query(ctx, \"['my-dataset'] | where foo == 'bar' | limit 100\")\n    if err != nil {\n        log.Fatal(err)\n    } else if res.Status.RowsMatched == 0 {\n        log.Fatal(\"No matches found\")\n    }\n\n    for row := range res.Tables[0].Rows() {\n      _, _ = fmt.Println(row)\n    }\n}\n```\n\nFor further examples, head over to the [examples](examples) directory.\n\nIf you want to use a logging package, check if there is already an adapter in\nthe [adapters](adapters) directory. We happily accept contributions for new\nadapters.\n\n## Edge Ingestion\n\nFor improved data locality, you can configure the client to use regional edge\nendpoints for ingest and query operations. All other API operations continue to\nuse the main Axiom API endpoint.\n\n```go\n// Using a regional edge domain\nclient, err := axiom.NewClient(\n    axiom.SetEdge(\"eu-central-1.aws.edge.axiom.co\"),\n)\n\n// Or using an explicit edge URL\nclient, err := axiom.NewClient(\n    axiom.SetEdgeURL(\"https://custom-edge.example.com\"),\n)\n```\n\nYou can also configure via environment variables:\n\n- `AXIOM_EDGE` - Regional edge domain (e.g., `eu-central-1.aws.edge.axiom.co`)\n- `AXIOM_EDGE_URL` - Explicit edge URL (takes precedence over `AXIOM_EDGE`)\n\n**Note:** Edge endpoints require API tokens (`xaat-`), not personal tokens.\n\n## Install\n\n```shell\ngo get github.com/axiomhq/axiom-go\n```\n\n## Documentation\n\nRead documentation on [axiom.co/docs/guides/go](https://axiom.co/docs/guides/go).\n\n## License\n\n[MIT](LICENSE)\n\n\u003c!-- Badges --\u003e\n\n[gopkg]: https://pkg.go.dev/github.com/axiomhq/axiom-go\n[gopkg_badge]: https://img.shields.io/badge/doc-reference-007d9c?logo=go\u0026logoColor=white\n[workflow]: https://github.com/axiomhq/axiom-go/actions/workflows/push.yaml\n[workflow_badge]: https://img.shields.io/github/actions/workflow/status/axiomhq/axiom-go/push.yaml?branch=main\u0026ghcache=unused\n[release]: https://github.com/axiomhq/axiom-go/releases/latest\n[release_badge]: https://img.shields.io/github/release/axiomhq/axiom-go.svg?ghcache=unused\n[license]: https://opensource.org/licenses/MIT\n[license_badge]: https://img.shields.io/github/license/axiomhq/axiom-go.svg?color=blue\u0026ghcache=unused\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxiomhq%2Faxiom-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faxiomhq%2Faxiom-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxiomhq%2Faxiom-go/lists"}