{"id":36687700,"url":"https://github.com/goark/openbd-api","last_synced_at":"2026-01-12T11:16:16.561Z","repository":{"id":43076060,"uuid":"202475001","full_name":"goark/openbd-api","owner":"goark","description":"APIs for openBD by Golang ","archived":false,"fork":false,"pushed_at":"2022-03-20T07:43:38.000Z","size":93,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-13T09:57:20.352Z","etag":null,"topics":["api-rest","api-wrapper","go","golang","golang-package","openbd"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/goark.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}},"created_at":"2019-08-15T04:39:11.000Z","updated_at":"2024-10-31T10:02:22.000Z","dependencies_parsed_at":"2022-08-30T21:12:19.314Z","dependency_job_id":null,"html_url":"https://github.com/goark/openbd-api","commit_stats":null,"previous_names":["spiegel-im-spiegel/openbd-api"],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/goark/openbd-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goark%2Fopenbd-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goark%2Fopenbd-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goark%2Fopenbd-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goark%2Fopenbd-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/goark","download_url":"https://codeload.github.com/goark/openbd-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goark%2Fopenbd-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28338970,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T10:58:46.209Z","status":"ssl_error","status_checked_at":"2026-01-12T10:58:42.742Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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-rest","api-wrapper","go","golang","golang-package","openbd"],"created_at":"2026-01-12T11:16:16.490Z","updated_at":"2026-01-12T11:16:16.549Z","avatar_url":"https://github.com/goark.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [openbd-api] -- APIs for openBD by Golang \n\n[![check vulns](https://github.com/goark/openbd-api/workflows/vulns/badge.svg)](https://github.com/goark/openbd-api/actions)\n[![lint status](https://github.com/goark/openbd-api/workflows/lint/badge.svg)](https://github.com/goark/openbd-api/actions)\n[![GitHub license](https://img.shields.io/badge/license-Apache%202-blue.svg)](https://raw.githubusercontent.com/goark/openbd-api/master/LICENSE)\n[![GitHub release](https://img.shields.io/github/release/goark/openbd-api.svg)](https://github.com/goark/openbd-api/releases/latest)\n\nThis package is required Go 1.16 or later.\n\n**Migrated repository to [github.com/goark/openbd-api][openbd-api]**\n\n## Usage of package\n\n### Import Package\n\n```\nimport \"github.com/goark/openbd-api\"\n```\n\n### Lookup openBD Book Data\n\n```go\nbooks, err := openbd.DefaultClient().LookupBook([]string{\"9784797369915\", \"9784274069321\"})\n```\n\n## Entities for openBD\n\n### Book type\n\n```go\n//Book is entity class of book info.\ntype Book struct {\n    Onix    Onix    `json:\"onix\"`\n    Hanmoto Hanmoto `json:\"hanmoto\"`\n    Summary Summary `json:\"summary\"`\n}\n\n//Onix is entity class of JPRO-onix items\ntype Onix struct {\n    RecordReference   string //ISBN code (key code)\n    NotificationType  string\n    ProductIdentifier struct {\n        ProductIDType string\n        IDValue       string //ISBN ?\n    }\n    DescriptiveDetail struct {\n        ProductComposition string\n        ProductForm        string\n        Measure            []struct {\n            MeasureType     string\n            Measurement     string\n            MeasureUnitCode string\n        } `json:\",omitempty\"`\n        Collection struct {\n            CollectionType     string\n            CollectionSequence *struct {\n                CollectionSequenceType     string `json:\",omitempty\"`\n                CollectionSequenceTypeName string `json:\",omitempty\"`\n                CollectionSequenceNumber   string `json:\",omitempty\"`\n            } `json:\",omitempty\"`\n            TitleDetail *struct {\n                TitleType    string `json:\",omitempty\"`\n                TitleElement []struct {\n                    TitleElementLevel string\n                    TitleText         struct {\n                        Content      string `json:\"content\"`\n                        CollationKey string `json:\"collationkey,omitempty\"`\n                    }\n                } `json:\",omitempty\"`\n            } `json:\",omitempty\"`\n        }\n        TitleDetail struct {\n            TitleType    string\n            TitleElement struct {\n                TitleElementLevel string\n                TitleText         struct {\n                    Content      string `json:\"content\"`\n                    Collationkey string `json:\"collationkey,omitempty\"`\n                }\n            }\n        }\n        Contributor []struct {\n            SequenceNumber  string\n            ContributorRole []string `json:\",omitempty\"`\n            PersonName      struct {\n                Content      string `json:\"content\"`\n                Collationkey string `json:\"collationkey,omitempty\"`\n            }\n            BiographicalNote string `json:\",omitempty\"`\n        } `json:\",omitempty\"`\n        Language []struct {\n            LanguageRole string\n            LanguageCode string\n            CountryCode  string\n        } `json:\",omitempty\"`\n        Extent []struct {\n            ExtentType  string\n            ExtentValue string\n            ExtentUnit  string\n        } `json:\",omitempty\"`\n        Subject []struct {\n            SubjectSchemeIdentifier string\n            SubjectCode             string\n            SubjectHeadingText      string `json:\",omitempty\"`\n        } `json:\",omitempty\"`\n        Audience []struct {\n            AudienceCodeType  string\n            AudienceCodeValue string\n        } `json:\",omitempty\"`\n    }\n    CollateralDetail *struct {\n        TextContent []struct {\n            TextType        string\n            ContentAudience string\n            Text            string\n        } `json:\",omitempty\"`\n        SupportingResource []struct {\n            ResourceContentType string\n            ContentAudience     string\n            ResourceMode        string\n            ResourceVersion     []struct {\n                ResourceForm           string\n                ResourceVersionFeature []struct {\n                    ResourceVersionFeatureType string\n                    FeatureValue               string\n                } `json:\",omitempty\"`\n                ResourceLink string\n            } `json:\",omitempty\"`\n        } `json:\",omitempty\"`\n    } `json:\",omitempty\"`\n    PublishingDetail struct {\n        Imprint struct {\n            ImprintIdentifier []struct {\n                ImprintIDType string\n                IDValue       string\n            } `json:\",omitempty\"`\n            ImprintName string\n        }\n        Publisher struct {\n            PublisherIdentifier []struct {\n                PublisherIDType string\n                IDValue         string\n            } `json:\",omitempty\"`\n            PublishingRole string\n            PublisherName  string\n        }\n        PublishingDate []struct {\n            Date               Date\n            PublishingDateRole string\n        } `json:\",omitempty\"`\n    }\n    ProductSupply struct {\n        SupplyDetail struct {\n            ReturnsConditions struct {\n                ReturnsCodeType string\n                ReturnsCode     string\n            }\n            ProductAvailability string\n            Price               []struct {\n                PriceType    string\n                CurrencyCode string\n                PriceAmount  string\n            } `json:\",omitempty\"`\n        }\n    }\n}\n\n//Hanmoto is entity class of Hanmoto dot com items\ntype Hanmoto struct {\n    DatePublished Date `json:\"dateshuppan\"`\n    DateModified  Date `json:\"datemodified\"`\n    DateCreated   Date `json:\"datecreated\"`\n    DateReleased  Date `json:\"datekoukai\"`\n    IsLightNovel  bool `json:\"lanove,omitempty\"`\n    HasReview     bool `json:\"hasshohyo,omitempty\"`\n    Reviews       []struct {\n        Reviewer       string `json:\"reviewer\"`\n        Link           string `json:\"link\"`\n        DateAppearance Date   `json:\"appearance\"`\n        SourceKindID   int    `json:\"kubun_id\"`\n        SourceID       int    `json:\"source_id\"`\n        Source         string `json:\"source\"`\n        PaperType      string `json:\"choyukan\"`\n        PostUser       string `json:\"post_user\"`\n        Han            string `json:\"han\"`\n        Gou            string `json:\"gou\"`\n    } `json:\"reviews,omitempty\"`\n    HasSample bool `json:\"hastameshiyomi,omitempty\"`\n}\n\n//Summary is entity class of summary data\ntype Summary struct {\n    ISBN      string `json:\"isbn\"`\n    Title     string `json:\"title\"`\n    Volume    string `json:\"volume\"`\n    Series    string `json:\"series\"`\n    Publisher string `json:\"publisher\"`\n    PubDate   Date   `json:\"pubdate\"`\n    Author    string `json:\"author\"`\n    Cover     string `json:\"cover\"`\n}\n```\n\n## Command Line Interface (Sample Code)\n\n### Download and Build\n\n```\n$ go get github.com/goark/openbd-api/cli/openbd\n```\n\n### Lookup openBD Books Data\n\n```\n$ openbd lookup 9784797369915 9784274069321\n```\n\n[openbd-api]: https://github.com/goark/openbd-api \"goark/openbd-api: APIs for openBD by Golang\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoark%2Fopenbd-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoark%2Fopenbd-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoark%2Fopenbd-api/lists"}