{"id":34183763,"url":"https://github.com/khasanovbi/banksdb","last_synced_at":"2026-03-12T19:35:17.368Z","repository":{"id":53432148,"uuid":"165338127","full_name":"khasanovbi/banksdb","owner":"khasanovbi","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-01T12:00:30.000Z","size":385,"stargazers_count":16,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-13T22:32:23.779Z","etag":null,"topics":["bank","bank-card","bank-card-info","bankcard-prefix","banks-db","bin","card-info","card-number","payment-system"],"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/khasanovbi.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}},"created_at":"2019-01-12T02:40:02.000Z","updated_at":"2025-02-18T14:11:56.000Z","dependencies_parsed_at":"2023-07-13T12:31:06.934Z","dependency_job_id":null,"html_url":"https://github.com/khasanovbi/banksdb","commit_stats":null,"previous_names":["khasanovbi/banks_db"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/khasanovbi/banksdb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khasanovbi%2Fbanksdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khasanovbi%2Fbanksdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khasanovbi%2Fbanksdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khasanovbi%2Fbanksdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/khasanovbi","download_url":"https://codeload.github.com/khasanovbi/banksdb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khasanovbi%2Fbanksdb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30440006,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T14:34:45.044Z","status":"ssl_error","status_checked_at":"2026-03-12T14:09:33.793Z","response_time":114,"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":["bank","bank-card","bank-card-info","bankcard-prefix","banks-db","bin","card-info","card-number","payment-system"],"created_at":"2025-12-15T14:40:52.029Z","updated_at":"2026-03-12T19:35:17.345Z","avatar_url":"https://github.com/khasanovbi.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Banks DB\n\n[![Build Status](https://travis-ci.org/khasanovbi/banksdb.svg?branch=master)](https://travis-ci.org/khasanovbi/banksdb)\n[![Go Reference](https://pkg.go.dev/badge/github.com/khasanovbi/banksdb/v2.svg)](https://pkg.go.dev/github.com/khasanovbi/banksdb/v2)\n[![Go Report Card](https://goreportcard.com/badge/github.com/khasanovbi/banksdb?style=flat-square)](https://goreportcard.com/report/github.com/khasanovbi/banksdb)\n[![Release](https://img.shields.io/github/release/khasanovbi/banksdb.svg?style=flat-square)](https://github.com/khasanovbi/banksdb/releases/latest)\n[![codecov](https://codecov.io/gh/khasanovbi/banksdb/branch/master/graph/badge.svg)](https://codecov.io/gh/khasanovbi/banksdb)\n\nCommunity driven database to get bank info (name, brand, color, etc.) by bankcard prefix (BIN)\n\n\u003e This is golang port of [ramoona's banks-db](https://github.com/ramoona/banks-db).\n\n### Install\n\n```\ngo get -u github.com/khasanovbi/banksdb\n```\n\n### Usage\n\nBelow is an example which shows some common use cases for banksdb:\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/khasanovbi/banksdb/v2\"\n\t\"github.com/khasanovbi/banksdb/v2/paymentsystem\"\n)\n\nfunc main() {\n\tfor _, creditCard := range []string{\"5275940000000000\", \"4111111111111111\"} {\n\t\tbank := banksdb.FindBank(creditCard)\n\t\tpaymentSystem := paymentsystem.FindPaymentSystem(creditCard)\n\t\tfmt.Printf(\"CreditCard: %s\\n\", creditCard)\n\t\tfmt.Printf(\"Bank info: %#v\\n\", bank)\n\t\tif paymentSystem != nil {\n\t\t\tfmt.Printf(\"Payment system: %s\\n\", *paymentSystem)\n\t\t}\n\t\tfmt.Println()\n\t}\n}\n\n```\n\nOutput:\n```\nCreditCard: 5275940000000000\nBank info: \u0026banksdb.Bank{Name:\"citibank\", Country:\"ru\", LocalTitle:\"Ситибанк\", EngTitle:\"Citibank\", URL:\"https://www.citibank.ru/\", Color:\"#0088cf\", Prefixes:[]int{419349, 427760, 427761, 520306, 527594}}\nPayment system: MasterCard\n\nCreditCard: 4111111111111111\nBank info: (*banksdb.Bank)(nil)\nPayment system: Visa\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhasanovbi%2Fbanksdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkhasanovbi%2Fbanksdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhasanovbi%2Fbanksdb/lists"}