No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-09-09 21:52:19 +02:00
author build: Move module path to src.timharek.no/tim/openlibrary-go 2026-09-09 21:52:19 +02:00
book build: Move module path to src.timharek.no/tim/openlibrary-go 2026-09-09 21:52:19 +02:00
internal/util feat: Add BookByISBN() 2024-12-08 16:12:18 +01:00
subject build: Move module path to src.timharek.no/tim/openlibrary-go 2026-09-09 21:52:19 +02:00
author_test.go author: Add Search() 2025-01-25 20:17:51 +01:00
book_test.go refactor: Expose api through packages 2024-12-08 17:27:32 +01:00
CONTRIBUTING.md build: Move module path to src.timharek.no/tim/openlibrary-go 2026-09-09 21:52:19 +02:00
go.mod build: Move module path to src.timharek.no/tim/openlibrary-go 2026-09-09 21:52:19 +02:00
go.sum chore: Tidy 2024-12-09 09:46:15 +01:00
LICENSE.md chore: Add license 2024-12-08 17:46:09 +01:00
main.go build: Move module path to src.timharek.no/tim/openlibrary-go 2026-09-09 21:52:19 +02:00
README.md build: Move module path to src.timharek.no/tim/openlibrary-go 2026-09-09 21:52:19 +02:00
subject_test.go subject: Add Search() 2025-01-25 20:23:21 +01:00

OpenLibrary API client in Go

API client for OpenLibrary's API for searching books, authors etc.

Supported APIs

Feel free to submit patches to extend API coverage.

Books

  • Search
  • Get by ID
  • Get by ISBN

Authors

  • Get by ID
  • Search

Subjects

  • Get by ID or name
  • Search

Usage

go get src.timharek.no/tim/openlibrary-go

Create a new client:

import (
	"src.timharek.no/tim/openlibrary-go"
	"src.timharek.no/tim/openlibrary-go/book"
)


func something() (*book.SearchResult, error) {
  ol := openlibrary.New()

  searchResult, err := ol.Book.Search("sapiens")
  if err != nil {
    return nil, err
  }

  return searchResult, nil
}

Contributing

Anyone can contribute to openlibrary-go. Please refer to the contribution guidelines.

Send patches to the report bugs on the issue tracker.