{"id":21030901,"url":"https://github.com/chewhx/google-books","last_synced_at":"2025-05-15T11:32:59.577Z","repository":{"id":43684477,"uuid":"448887312","full_name":"chewhx/google-books","owner":"chewhx","description":"Node.js wrapper for Google Books API","archived":false,"fork":false,"pushed_at":"2023-11-01T03:37:42.000Z","size":792,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-27T18:24:56.111Z","etag":null,"topics":["books","google","google-books","google-books-api","google-books-search","reading-list","search","search-books","search-books-using-api"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/chewhx.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}},"created_at":"2022-01-17T12:35:49.000Z","updated_at":"2024-05-10T16:53:51.000Z","dependencies_parsed_at":"2024-11-19T12:31:14.568Z","dependency_job_id":"63445dd3-0746-46c0-b222-e2db70915251","html_url":"https://github.com/chewhx/google-books","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"fa58d42ad80a396709917b34da5fefe09a517340"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chewhx%2Fgoogle-books","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chewhx%2Fgoogle-books/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chewhx%2Fgoogle-books/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chewhx%2Fgoogle-books/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chewhx","download_url":"https://codeload.github.com/chewhx/google-books/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254330946,"owners_count":22053082,"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":["books","google","google-books","google-books-api","google-books-search","reading-list","search","search-books","search-books-using-api"],"created_at":"2024-11-19T12:22:10.927Z","updated_at":"2025-05-15T11:32:58.380Z","avatar_url":"https://github.com/chewhx.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @chewhx/google-books - v4\n\n- Javascript Wrapper to search for books on [Google Books API](https://developers.google.com/books/docs/overview).\n- Promise-based\n- Requires NodeJS 18+\n- No dependencies. Uses native `fetch` api.\n- No authentication or API Key needed.\n- More info: https://developers.google.com/books/docs/v1/using\n\n\u003e [!NOTE]\n\u003e From experience, the results for each api call might differ slightly, even with the same parameters.\n\n## Installation\n\n```bash\n  npm install @chewhx/google-books\n```\n\n## Imports\n\nNote: All methods a promise.\n\n```javascript\nimport { search, title, id, author, isbn } from '@chewhx/google-books';\n```\n\n## Types\n\n```typescript\nimport { Query, Params } from '@chewhx/google-books';\n```\n\n- [Query](https://github.com/chewhx/google-books/blob/develop-4.0/src/types/Query.ts)\n- [Params](https://github.com/chewhx/google-books/blob/develop-4.0/src/types/Params.ts)\n\n## `search`\n\n- Takes in `query` and `params` argument\n- The first argument `query` is required.\n- `query.q` is a required field\n\n```javascript\n// search(query, params)\nsearch({ q: 'Atomic Habits' });\n```\n\n### `search` - [special keywords](https://developers.google.com/books/docs/v1/using#PerformingSearch)\n\n```javascript\nsearch({ q: 'Atomic Habits', inauthor: 'James Clear' });\n```\n\n- intitle: Returns results where the text following this keyword is found in the title.\n- inauthor: Returns results where the text following this keyword is found in the author.\n- inpublisher: Returns results where the text following this keyword is found in the publisher.\n- subject: Returns results where the text following this keyword is listed in the category list of the volume.\n- isbn: Returns results where the text following this keyword is the ISBN number.\n- lccn: Returns results where the text following this keyword is the Library of Congress Control Number.\n  oclc: Returns results where the text following this keyword is the Online Computer Library Center number.\n\n### `search` - `q` can be empty string.\n\n```javascript\nsearch({ q: '', intitle: 'Atomic Habits', inauthor: 'James Clear' });\n```\n\n### `search` - specific parameters\n\nRead more about [API-specific query parameters](https://developers.google.com/books/docs/v1/using#api_params)\n\n```javascript\nsearch({ q: 'Atomic Habits' }, { maxResults: 2 });\nsearch({ q: 'Atomic Habits' }, { download: 'epub' });\n```\n\n## `id`\n\nSearch for book with google books volume id\n\n```javascript\nid('lFhbDwAAQBAJ');\n```\n\n## `title`\n\nSearch for book with only title\n\n```javascript\ntitle('atomic habits');\n```\n\n## `author`\n\nSearch for book with only author\n\n```javascript\nauthor('James Clear');\n```\n\n## `isbn`\n\nSearch for book with only isbn\n\n```javascript\nisbn('978-0735211292');\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchewhx%2Fgoogle-books","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchewhx%2Fgoogle-books","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchewhx%2Fgoogle-books/lists"}