{"id":15325749,"url":"https://github.com/matthiasreumann/google-books-api","last_synced_at":"2025-06-27T13:36:55.398Z","repository":{"id":48068511,"uuid":"392642633","full_name":"MatthiasReumann/google-books-api","owner":"MatthiasReumann","description":"A wrapper of the Google Books APIs written in Kotlin","archived":false,"fork":false,"pushed_at":"2021-08-09T08:11:15.000Z","size":108,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-01T21:14:46.417Z","etag":null,"topics":["google-books-api","google-books-search","kotlin"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/MatthiasReumann.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":"2021-08-04T10:16:54.000Z","updated_at":"2022-06-23T10:40:22.000Z","dependencies_parsed_at":"2022-08-12T17:50:58.527Z","dependency_job_id":null,"html_url":"https://github.com/MatthiasReumann/google-books-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatthiasReumann%2Fgoogle-books-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatthiasReumann%2Fgoogle-books-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatthiasReumann%2Fgoogle-books-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatthiasReumann%2Fgoogle-books-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MatthiasReumann","download_url":"https://codeload.github.com/MatthiasReumann/google-books-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245898331,"owners_count":20690466,"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":["google-books-api","google-books-search","kotlin"],"created_at":"2024-10-01T09:33:02.372Z","updated_at":"2025-03-27T18:18:09.821Z","avatar_url":"https://github.com/MatthiasReumann.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# googlebooksapi\n[![](https://jitpack.io/v/MatthiasReumann/googlebooksapi.svg)](https://jitpack.io/#MatthiasReumann/googlebooksapi)\n\nA wrapper of the [Google Books APIs](https://developers.google.com/books) written in Kotlin\n\n## Usage\n\n### Volumes\n```kotlin \nval volumeHelper = VolumeHelper(\"API_KEY\")\n```\n\n###### Get volumes\n\n```kotlin\nval request = VolumeGetRequest().apply {\n    search(\"Plants\")\n    intitle(\"This is your mind on plants\")\n    inpublisher(\"Penguin\")\n    inauthor(\"Michael Pollan\")\n    langRestrict(\"en\")\n    maxResults(1)\n    orderBy(SortOption.NEWEST)\n    printType(PrintTypeOption.BOOKS)\n    projection(ProjectionOption.LITE)\n    startIndex(0)\n}\n\nval volumes: Volume = volumeHelper.get(request)\n```\n\n###### Get specific volume\n\n```kotlin\nval request = VolumeGetIDRequest().apply {\n    volumeID(\"zKkdEAAAQBAJ\")\n    projection(ProjectionOption.LITE)\n}\n\nval volume: VolumeItem = volumeHelper.getVolumeWithID(request)\n```\n\n### Bookshelves\n\n```kotlin\nval bookshelfHelper = BookshelfHelper(\"API_KEY\")\n```\n\n###### Get bookshelves\n\n```kotlin\nval request = BookshelfGetRequest().apply {\n    userID(\"116445025672089480971\")\n    maxResults(1)\n    startIndex(0)\n}\n\nval bookshelf: Bookshelf = bookshelfHelper.get(request)\n```\n\n###### Get specific bookshelf\n\n```kotlin\nval request = BookshelfGetIDRequest().apply {\n    userID(\"116445025672089480971\")\n    bookshelfID(1001)\n}\n\nval item: BookshelfItem = bookshelfHelper.getBookshelfWithID(request)\n```\n\n###### Get volumes in bookshelf\n\n```kotlin\nval request = BookshelfGetVolumesRequest().apply {\n    userID(\"116445025672089480971\")\n    bookshelfID(1001)\n    maxResults(5)\n    startIndex(0)\n    projection(ProjectionOption.LITE)\n}\n\nval volumes: Volume = bookshelfHelper.getVolumesInBookshelf(request)\n```\n\n## Download\n\n### Groovy\n```gradle\nallprojects {\n  repositories {\n      maven { url \"https://jitpack.io\" }\n  }\n}\n\ndependencies {\n   implementation 'com.github.MatthiasReumann:googlebooksapi:master-SNAPSHOT'\n}\n```\n\n### Kotlin DSL\n\n``` gradle\nallprojects {\n  repositories {\n    maven { url = uri(\"https://www.jitpack.io\") }\n  }\n}\n\ndependencies {\n   implementation(\"com.github.MatthiasReumann:googlebooksapi:master-SNAPSHOT\")\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatthiasreumann%2Fgoogle-books-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatthiasreumann%2Fgoogle-books-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatthiasreumann%2Fgoogle-books-api/lists"}