{"id":13461511,"url":"https://github.com/googleapis/google-api-go-client","last_synced_at":"2026-03-09T17:26:07.706Z","repository":{"id":37470268,"uuid":"27096595","full_name":"googleapis/google-api-go-client","owner":"googleapis","description":"Auto-generated Google APIs for Go.","archived":false,"fork":false,"pushed_at":"2025-05-08T17:31:33.000Z","size":1743439,"stargazers_count":4206,"open_issues_count":21,"forks_count":1162,"subscribers_count":193,"default_branch":"main","last_synced_at":"2025-05-08T20:55:32.025Z","etag":null,"topics":["go"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/google.golang.org/api","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/googleapis.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":"support/bundler/bundler.go","governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2014-11-24T21:45:36.000Z","updated_at":"2025-05-08T17:31:06.000Z","dependencies_parsed_at":"2024-03-17T08:29:20.018Z","dependency_job_id":"84e5c629-8d9e-4bef-bdd3-36d9dab9aa1e","html_url":"https://github.com/googleapis/google-api-go-client","commit_stats":{"total_commits":2963,"total_committers":111,"mean_commits":"26.693693693693692","dds":0.6152548093148835,"last_synced_commit":"7a17059852c2722b40dfc57a27d120367573f20f"},"previous_names":["google/google-api-go-client"],"tags_count":240,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googleapis%2Fgoogle-api-go-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googleapis%2Fgoogle-api-go-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googleapis%2Fgoogle-api-go-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googleapis%2Fgoogle-api-go-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/googleapis","download_url":"https://codeload.github.com/googleapis/google-api-go-client/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253155984,"owners_count":21862786,"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":["go"],"created_at":"2024-07-31T11:00:41.416Z","updated_at":"2026-01-06T20:30:55.458Z","avatar_url":"https://github.com/googleapis.png","language":"Go","readme":"# Google APIs Client Library for Go\n\n## Getting Started\n\n```shell\n$ go get google.golang.org/api/tasks/v1\n$ go get google.golang.org/api/moderator/v1\n$ go get google.golang.org/api/urlshortener/v1\n... etc ...\n```\n\nand using:\n\n```go\npackage main\n\nimport (\n        \"context\"\n        \"net/http\"\n\n        \"google.golang.org/api/urlshortener/v1\"\n)\n\nfunc main() {\n        ctx := context.Background()\n        svc, err := urlshortener.NewService(ctx)\n        // ...\n}\n```\n\n* For a longer tutorial, see the [Getting Started guide](https://github.com/google/google-api-go-client/blob/main/GettingStarted.md).\n* For examples, see the [examples directory](https://github.com/google/google-api-go-client/tree/main/examples).\n* For support, use the [golang-nuts](https://groups.google.com/group/golang-nuts) mailing list.\n\n## Status\n\n[![Go Reference](https://pkg.go.dev/badge/google.golang.org/api.svg)](https://pkg.go.dev/google.golang.org/api)\n\nThese are auto-generated Go libraries from the Google Discovery Service's JSON description files.\n\nDue to the auto-generated nature of this collection of libraries they may contain breaking changes from one release to\nthe next. The generator itself and the code it produces are considered beta for this reason.\n\nThese client libraries are officially supported by Google.  However, the libraries are considered complete and are in\nmaintenance mode. This means that we will address critical bugs and security issues but will not add any new features.\n\nIf you're working with Google Cloud Platform APIs such as Datastore or Pub/Sub, please use the\n[Cloud Client Libraries for Go](https://github.com/googleapis/google-cloud-go) instead. These are the new and idiomatic\nGo libraries targeted specifically at Google Cloud Platform Services.\n\n## Authorization\n\nBy default, each API will use [Google Application Default Credentials](https://developers.google.com/identity/protocols/application-default-credentials)\nfor authorization credentials used in calling the API endpoints. This will allow your application to run in many\nenvironments without requiring explicit configuration.\n\n```go\n// import \"google.golang.org/api/sheets/v4\"\nclient, err := sheets.NewService(ctx)\n```\n\nTo authorize using a [JSON key file](https://cloud.google.com/iam/docs/managing-service-account-keys), pass\n[`option.WithAuthCredentialsFile`](https://pkg.go.dev/google.golang.org/api/option#WithAuthCredentialsFile) to the `NewService`\nfunction of the desired package. You must also specify the credential type. For example, to use a service account key file:\n\n```go\nclient, err := sheets.NewService(ctx, option.WithAuthCredentialsFile(option.ServiceAccount, \"path/to/keyfile.json\"))\n```\n\nSimilarly, you can use JSON credentials directly with [`option.WithAuthCredentialsJSON`](https://pkg.go.dev/google.golang.org/api/option#WithAuthCredentialsJSON):\n\n```go\n// where jsonKey is a []byte containing the JSON key\nclient, err := sheets.NewService(ctx, option.WithAuthCredentialsJSON(option.ServiceAccount, jsonKey))\n```\n\nThe older `option.WithCredentialsFile` and `option.WithCredentialsJSON` functions are deprecated due to a potential security risk.\n\nYou can exert more control over authorization by using the [`golang.org/x/oauth2`](https://pkg.go.dev/golang.org/x/oauth2)\npackage to create an `oauth2.TokenSource`. Then pass [`option.WithTokenSource`](https://pkg.go.dev/google.golang.org/api/option#WithTokenSource)\nto the `NewService` function:\n\n```go\ntokenSource := ...\nsvc, err := sheets.NewService(ctx, option.WithTokenSource(tokenSource))\n```\n\n## More information\n\nFor some more information related to all of the generated clients please read through our\n[package documentation](https://pkg.go.dev/google.golang.org/api#section-documentation).\n","funding_links":[],"categories":["Go","Utility","Third-party APIs","Repositories"],"sub_categories":["Utility/Miscellaneous","Fail injection"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogleapis%2Fgoogle-api-go-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoogleapis%2Fgoogle-api-go-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogleapis%2Fgoogle-api-go-client/lists"}