{"id":41342164,"url":"https://github.com/ekomobile/dadata","last_synced_at":"2026-01-23T06:51:41.879Z","repository":{"id":35059256,"uuid":"180108907","full_name":"ekomobile/dadata","owner":"ekomobile","description":"Golang client for DaData.ru","archived":false,"fork":false,"pushed_at":"2025-07-23T22:42:20.000Z","size":96,"stargazers_count":25,"open_issues_count":0,"forks_count":22,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-07-24T01:31:50.866Z","etag":null,"topics":["address-validation","dadata","go","golang","suggestions"],"latest_commit_sha":null,"homepage":"","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/ekomobile.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,"zenodo":null}},"created_at":"2019-04-08T08:54:09.000Z","updated_at":"2025-07-23T22:36:25.000Z","dependencies_parsed_at":"2024-02-25T23:35:27.204Z","dependency_job_id":"acedb24f-418b-4695-b0ce-dabf5f2b1dc9","html_url":"https://github.com/ekomobile/dadata","commit_stats":null,"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"purl":"pkg:github/ekomobile/dadata","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekomobile%2Fdadata","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekomobile%2Fdadata/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekomobile%2Fdadata/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekomobile%2Fdadata/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ekomobile","download_url":"https://codeload.github.com/ekomobile/dadata/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekomobile%2Fdadata/sbom","scorecard":{"id":370785,"data":{"date":"2025-08-11","repo":{"name":"github.com/ekomobile/dadata","commit":"43e54ba0544c99b7f3bbe5513cd4d3c59a5334ad"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.7,"checks":[{"name":"Maintained","score":1,"reason":"2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"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":"Code-Review","score":7,"reason":"Found 7/10 approved changesets -- score normalized to 7","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":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":-1,"reason":"no dependencies found","details":null,"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":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"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":"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":"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":"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":"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":"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":"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"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 29 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"}}]},"last_synced_at":"2025-08-18T12:51:52.284Z","repository_id":35059256,"created_at":"2025-08-18T12:51:52.284Z","updated_at":"2025-08-18T12:51:52.284Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28682263,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T05:48:07.525Z","status":"ssl_error","status_checked_at":"2026-01-23T05:48:07.129Z","response_time":59,"last_error":"SSL_read: 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":["address-validation","dadata","go","golang","suggestions"],"created_at":"2026-01-23T06:51:41.343Z","updated_at":"2026-01-23T06:51:41.870Z","avatar_url":"https://github.com/ekomobile.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Client for DaData.ru\n\nForked from https://github.com/webdeskltd/dadata.\n\n\n[![Build Status](https://travis-ci.org/ekomobile/dadata.svg)](https://travis-ci.com/ekomobile/dadata)\n[![GitHub release](https://img.shields.io/github/release/ekomobile/dadata.svg)](https://github.com/ekomobile/dadata/releases)\n[![Go Report Card](https://goreportcard.com/badge/github.com/ekomobile/dadata)](https://goreportcard.com/report/github.com/ekomobile/dadata/v2)\n[![GoDoc](https://godoc.org/github.com/ekomobile/dadata/v2?status.svg)](https://godoc.org/github.com/ekomobile/dadata/v2)\n\nDaData API v2\n\nImplemented [Clean](https://dadata.ru/api/clean/) and [Suggest](https://dadata.ru/api/suggest/) methods.\n\n## Installation\n\n`go get github.com/ekomobile/dadata/v2`\n\n## Usage\n```go\nimport (\n\t\"context\"\n\t\"fmt\"\n\n\t\"github.com/ekomobile/dadata/v2\"\n\t\"github.com/ekomobile/dadata/v2/api/suggest\"\n)\n\nfunc DaDataExample()  {\n\tapi := dadata.NewSuggestApi()\n\n\tparams := suggest.RequestParams{\n\t\tQuery: \"ул Свободы\",\n\t}\n\n\tsuggestions, err := api.Address(context.Background(), \u0026params)\n\tif err != nil {\n\t\treturn\n\t}\n\n\tfor _, s := range suggestions {\n\t\tfmt.Printf(\"%s\", s.Value)\n\t}\n}\n```\n\n\n## Configuration \n\n### Credentials\n\n`DADATA_API_KEY` and `DADATA_SECRET_KEY` environment variables are used by default to authenticate client.\n\nCustom credential provider may be used by implementing `client.CredentialProvider` interface.\n\nAlso, there is a \"simple\" credential provider `client.Credentials` you may utilize.\n\n```go\ncreds := client.Credentials{\n    ApiKeyValue:    \"\u003cYOUR_API_KEY\u003e\",\n    SecretKeyValue: \"\u003cYOUR_SECRET_KEY\u003e\",\n}\n\napi := NewSuggestApi(client.WithCredentialProvider(\u0026creds))\n```\n\n\n### HTTP client\n\nHTTP client may be overridden with custom one:\n\n```go\nhttpClient := \u0026http.Client{}\n\napi := NewSuggestApi(WithHttpClient(httpClient))\n```\n\n### Low level client usage\n\nPass and consume raw bytes/strings:\n\n```go\n    endpointUrl, err := url.Parse(\"https://suggestions.dadata.ru/suggestions/api/4_1/rs/\")\n    if err != nil {\n        return\n    }\n\n    cli := client.NewClient(endpointUrl,\n        client.WithEncoderFactory(encoder.RawEncoderFactory()),\n        client.WithDecoderFactory(encoder.RawDecoderFactory()),     \n    )\n\n    request := bytes.NewBufferString(\"{ \\\"query\\\": \\\"москва хабар\\\" }\")\n    response := \u0026bytes.Buffer{}\n\n    err = cli.Post(context.Background(), \"suggest/address\", request, response)\n    if err != nil {\n        return\n    }\n\n    fmt.Print(response.String()) // Output: `{\"suggestions\":[{\"value\":\"г Москва, ул Хабаровская\",...`\n```\n\n## Licence\nMIT see [LICENSE](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fekomobile%2Fdadata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fekomobile%2Fdadata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fekomobile%2Fdadata/lists"}