Datasets:
book_id int64 11.5M 192M | url stringclasses 10
values | title stringclasses 10
values | first_author stringclasses 10
values | first_author_url stringclasses 10
values | first_author_num_books int64 0 1.87k | first_author_num_followers int64 0 68 | average_rating float64 0 5 | num_reviews int64 0 2 | first_published stringdate 1929-01-01 00:00:00 2021-09-29 00:00:00 ⌀ | publisher stringclasses 9
values | language_code stringclasses 3
values | num_pages int64 0 622 | description stringclasses 7
values | genres stringclasses 0
values | format stringclasses 3
values | series stringclasses 1
value | num_currently_reading int64 0 0 | num_want_to_read int64 0 9 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
51,049,657 | https://www.goodreads.com/book/show/51049657 | combat! lessons on spiritual warfare from military history | dennis l. peterson | https://www.goodreads.com/author/show/15023710.Dennis_L_Peterson | 9 | 0 | 5 | 1 | february 7, 2020 | touchpoint faith | english | 256 | practical principles, with illustrations from military history, for winning spiritual battles and living a victorious christian life in the christian life, one fact is crystal clear: we are at war. it involves every christian-and collectively the entire church-and it is a holy war. it does not involve physical combat; ... | null | kindle edition | null | 0 | 2 |
122,901,940 | https://www.goodreads.com/book/show/122901940 | the negotiator | unknown author | https://www.goodreads.com/author/show/22294257.Unknown_Author | 0 | 0 | 0 | 0 | null | unknown | english | 0 | null | null | null | null | 0 | 0 |
31,565,764 | https://www.goodreads.com/book/show/31565764 | me estás abandonando | corín tellado | https://www.goodreads.com/author/show/1089837.Cor_n_Tellado | 1,872 | 68 | 4.25 | 0 | january 1, 1968 | rollán | spanish; castilian | 128 | "—no me oyes. oscar. en efecto, no la oía muy bien. la culpa de todo la tenía el zumbido de la máquina de afeitar. pero no podía detenerlo. tenia tanta prisa. —¿qué hora es, mónica? —pero, oscar. te estoy hablando de mel. —¿tiene paperas? —sacudió la máquina. ¡tenía tanta prisa! no le parecía que afeitara bien. seguro ... | null | paperback | null | 0 | 3 |
129,287,691 | https://www.goodreads.com/book/show/129287691 | the animal picture book | h mortimer batten | https://www.goodreads.com/author/show/14308224.H_Mortimer_Batten | 15 | 0 | 0 | 0 | january 1, 1934 | thomas nelson and sons ltd | english | 0 | null | null | hardcover | null | 0 | 0 |
162,180,085 | https://www.goodreads.com/book/show/162180085 | the doctor who held hands | hulbert footner | https://www.goodreads.com/author/show/1431001.Hulbert_Footner | 324 | 4 | 3.44 | 2 | january 1, 1929 | null | null | 0 | almost unknown today, footner was a candadian journalist and author of many adventure and mystery novels. this one, set in new york, features one of the characters from his series: the beautiful madame rosika storey, a private detective. here she tangles with a psychoanalyst-blackmailer and criminal mastermind. the sto... | null | null | madame rosika storey | 0 | 9 |
84,110,748 | https://www.goodreads.com/book/show/84110748 | vintage composition notebook: сute vintage notebook wide ruled paper notebook journal | blank wide lined workbook for girls, boys, kids, teens, students | ok sana | https://www.goodreads.com/author/show/23260262.Ok_Sana | 805 | 0 | 0 | 0 | september 29, 2021 | independently published | english | 100 | designed and printed in the u.s.a. buy your copy today! | null | paperback | null | 0 | 0 |
191,802,212 | https://www.goodreads.com/book/show/191802212 | petit carnet de pensées, vivre éveillé: vivre éveillé | rosette poletti | https://www.goodreads.com/author/show/971075.Rosette_Poletti | 105 | 0 | 0 | 0 | march 4, 2021 | assa | french | 88 | petit carnet de pensées, vivre éveillé origine du livre vivre éveillé, cela signifie « vivre conscient », vivre ici et maintenant. vivre avec les yeux ouverts, le cœur ouvert. vivre éveillé, c’est être attentif, à soi, aux autres, et au tout autre. toutes les grandes traditions insistent pleinement sur cette nécessité ... | null | paperback | null | 0 | 0 |
11,525,253 | https://www.goodreads.com/book/show/11525253 | advances in haploid production in higher plants | alisher touraev | https://www.goodreads.com/author/show/2199067.Alisher_Touraev | 2 | 0 | 0 | 0 | november 1, 2008 | springer | english | 360 | the importance of haploids is well known to geneticists and plant breeders. the discovery of anther-derived haploid datura plants in 1964 initiated great excitement in the plant breeding and genetics communities as it offered shortcuts in producing highly desirable homozygous plants. unfortunately, the expected revolut... | null | paperback | null | 0 | 0 |
71,118,313 | https://www.goodreads.com/book/show/71118313 | south coastal basin investigation records of ground water levels at wells for the year ... precipitation records for the season .. | california department of water resources | https://www.goodreads.com/author/show/14294899.California_Department_of_Water_Resources | 1,268 | 3 | 0 | 0 | september 3, 2011 | nabu press | english | 150 | this is a reproduction of a book published before 1923. this book may have occasional imperfections such as missing or blurred pages, poor pictures, errant marks, etc. that were either part of the original artifact, or were introduced by the scanning process. we believe this work is culturally important, and despite th... | null | paperback | null | 0 | 0 |
142,368,691 | https://www.goodreads.com/book/show/142368691 | introduction to circuits, instruments, and electronics | james w. nilsson | https://www.goodreads.com/author/show/12042226.James_W_Nilsson | 46 | 1 | 0 | 0 | january 1, 1968 | harcourt, brace & world | english | 622 | null | null | hardcover | null | 0 | 0 |
Goodreads Books Metadata
Dataset Description
Goodreads Books Metadata is a structured dataset of book records scraped directly from Goodreads, a social platform for book readers and recommendations. The dataset was collected in July 2026 and contains rich metadata per book: bibliographic information, crowd-sourced ratings, reader engagement signals (currently reading, want to read), author-level statistics, genre tags, and descriptive text.
The primary research objectives behind this dataset are:
- Understanding how users rate books on Goodreads — what drives average ratings, what genres score highest, how reviewer volume correlates with ratings.
- Identifying the most preferred books — top-rated titles, best-sellers by engagement, most discussed books.
- Profiling the type of readers on the platform — inferred from engagement metrics such as
num_want_to_read,num_currently_reading, andnum_reviews.
This dataset is part of a personal data science portfolio projects, demonstrating end-to-end data collection, transformation, and analysis on a real-world social platform.
- Homepage: https://www.goodreads.com
- Repository (source code): See
book_scraper.pyandmain.pyin this repo - Point of Contact: pfaha (Hugging Face profile)
Dataset Summary
| Property | Value |
|---|---|
| Source | Goodreads books pages (scraped) |
| Collection date | July 2026 |
| Format | Parquet (partitioned, ~100 rows per file) |
| Language | English (primary) |
| Storage size | ~28 MB |
| Number of files | ~381 part files |
Supported Tasks
This dataset can support various tasks among which we identify the following:
- Book rating prediction — Predict a book's
average_ratingfrom other features in the dataset. - Genre classification — Classify books into genre categories using
descriptiontext and other metadata. - Popularity analysis — Rank and compare books by reader engagement (
num_want_to_read,num_currently_reading,num_reviews). - Author influence analysis — Study how author follower counts and book counts correlate with book ratings.
- Reading behavior profiling — Use
num_currently_readingandnum_want_to_readas proxies for user interest distribution.
Data Collection
Scraping pipeline
The dataset was collected using a custom Python scraper (book_scraper.py) driven by a CLI entry point (main.py). The pipeline works as follows:
- A master list of Goodreads book IDs (
books_ids.txt) is stored on this Hugging Face Hub repository. The scraper loads this list at startup. - For each book ID, the scraper fetches
https://www.goodreads.com/book/show/{id}usingrequestswith browser-like headers to avoid bot detection. - The page is parsed in priority order:
- First: the
__NEXT_DATA__JSON hydration payload embedded in the Next.js-rendered page (most complete and reliable source). - Second:
application/ld+jsonJSON-LD structured data blocks. - Third: regex extraction over raw page text (fallback, used only when structured data is absent).
- First: the
- After extracting book metadata, the scraper additionally fetches the first author's Goodreads profile page to enrich the record with
first_author_num_booksandfirst_author_num_followers. - Records are buffered in memory and checkpointed to the Hub every 100 books as numbered Parquet files (
books-partN.parquet). A localscraped_ids.txtfile tracks already-scraped IDs to allow resumable, fault-tolerant runs. - IDs that fail after all retry attempts are collected in
failed_books_ids.txtfor later inspection.
Politeness and rate limiting
The scraper enforces a 2-second base delay between requests plus random jitter (up to 1 second), and implements exponential back-off when HTTP 429 (Too Many Requests) or 523 (origin unreachable) responses are received, capping the wait at 60 seconds. Two concurrent worker threads are used by default.
Text cleaning
All text fields undergo a cleaning pipeline: HTML entity unescaping, NFKC Unicode normalization, non-breaking space replacement, BOM stripping, control character removal, parenthesized segment removal, whitespace collapsing, and lowercasing.
Dataset Structure
Data Fields
| Column | Type | Description |
|---|---|---|
book_id |
int64 |
Numeric Goodreads book ID, extracted from the page URL. |
url |
string |
Full Goodreads URL for the book page (e.g. https://www.goodreads.com/book/show/92). |
title |
string |
Book title as displayed on Goodreads, lowercased. |
first_author |
string |
Name of the first (primary) author listed on the page. |
first_author_url |
string |
Goodreads author profile URL for the first author. |
first_author_num_books |
int64 |
Number of distinct works listed on the author's Goodreads page. Proxy for author prolificacy. |
first_author_num_followers |
int64 |
Number of Goodreads followers for the first author at the time of scraping. Proxy for author popularity. |
average_rating |
float64 |
Crowd-sourced average star rating (1.0–5.0) aggregated across all Goodreads user ratings. |
num_reviews |
int64 |
Total number of text reviews submitted by Goodreads users. |
first_published |
string |
First publication date as a string (e.g. "January 28, 1997", "1880", or "January 1997"). Not normalized to a date type to preserve original granularity. |
publisher |
string |
Publisher name for the edition referenced on the Goodreads page. null if not available or bad scraping. |
language_code |
string |
Language of the edition (e.g. "english"). |
num_pages |
int64 |
Page count for the edition. 0 if not available or bad scraping. |
description |
string |
Full book description text from the Goodreads page, lowercased and cleaned. |
genres |
string |
Comma-separated list of genres tags (e.g. "fiction, historical fiction, classics"). null if not available or bad scraping. |
format |
string |
Edition binding format (e.g. "paperback", "hardcover", "kindle edition", "audiobook"). null if not available or bad scraping. |
series |
string |
Series name if the book belongs to a series (e.g. "rose trilogy"). null if standalone. |
num_currently_reading |
int64 |
Number of Goodreads users who had this book marked as "currently reading" at scrape time. Engagement signal. |
num_want_to_read |
int64 |
Number of Goodreads users who had this book on their "want to read" list at scrape time. Popularity/demand signal. |
Data Splits
This dataset has no predefined train/validation/test split. All records are provided as a single collection partitioned across numbered Parquet files (books-part1.parquet … books-part348.parquet). Each parquet file has 100 or less books information. Users should define their own splits depending on the downstream task.
Example Row
book_id : 1
url : https://www.goodreads.com/book/show/1
title : harry potter and the half-blood prince
first_author : j.k. rowling
first_author_url : https://www.goodreads.com/author/show/1077326.J_K_Rowling
first_author_num_books : 743
first_author_num_followers : 235611
average_rating : 4.58
num_reviews : 73768
first_published : july 16, 2005
publisher : scholastic inc
language_code : english
num_pages : 652
description : it is the middle of the summer, ...
genres : fantasy, fiction, young adult, harry potter, magic, audiobook, childrens
format : audiobook
series : harry potter
num_want_to_read : 57250
num_currently_reading : 607895
Dataset Creation
Curation Rationale
Goodreads is a social reading platform, hosting over million user ratings and reviews. This dataset was created to enable research into collective reading preferences, rating dynamics, and book popularity patterns as expressed by a large and diverse online community. It provides a real-world, richly annotated corpus suitable for social science research.
Source Data
All data originates from public Goodreads book pages. No authentication or account was required for access. Only publicly visible metadata was collected, and no user-identifiable information is present in this dataset.
Annotations
This dataset contains no manual annotations. All labels and values are scraped directly from Goodreads pages and reflect the community-aggregated state of the platform at the time of collection (July 2026).
Considerations for Using the Data
Social Impact
Findings derived from this data may not be representative of global reading preferences. Researchers should account for this selection bias.
Limitations
- Snapshot in time
Data was scraped in July 2026 on the first 40000 books in Goodreads database.
Books which are added after this date aren't taken into account, and even not all books added before this date are present in this dataset.
Some information change daily on the live platform, for example, first_author_num_books, first_author_num_followers, num_reviews, num_want_to_read, and num_currently_reading.
- Parsing coverage
The scraper uses fallback strategies. Fields may be null or 0 for pages where the fallback strategies failed to extract a value.
- Language bias
While language_code is included, the scraper targeted book IDs without language filtering. The majority of records were English-language books.
- Author enrichment
Only the first listed author is enriched with follower and book count data. Co-authors and secondary authors are not captured.
- No ratings distribution
Individual star ratings (1★ to 5★ counts) are not included - only the aggregated average_rating was kept.
Licensing and Terms
This dataset was collected from publicly accessible Goodreads pages for research and educational purposes. Users of this dataset are responsible for complying with Goodreads' Terms of Service. This dataset is not affiliated with, endorsed by, or officially provided by Goodreads or Amazon.
Do not use this dataset for commercial purposes without verifying applicable terms.
How to Load
Using 🤗 datasets
from datasets import load_dataset
ds = load_dataset("pfaha/goodreads-books")
Using pandas directly (Parquet)
import pandas as pd
from huggingface_hub import HfFileSystem
fs = HfFileSystem()
# Load a single part (e.g. part1)
df = pd.read_parquet("hf://datasets/pfaha/goodreads-books/books-part1.parquet")
# Load all parts
files = fs.glob("datasets/pfaha/goodreads-books/books-part*.parquet")
df = pd.concat([pd.read_parquet(f"hf://{f}") for f in files])
Research Use Cases and Example Questions
Below are example analytical questions this dataset can help answer:
import pandas as pd
df = pd.concat([pd.read_parquet(f) for f in sorted(glob.glob("books-part*.parquet"))])
# Average rating by genre (explode comma-separated genres)
genre_ratings = df.assign(genre=df["genres"].str.split(", ")).explode("genre")
genre_ratings.groupby("genre")["average_rating"].mean().sort_values(ascending=False).head(20)
# Correlation between author followers and book rating
df[["first_author_num_followers", "average_rating"]].corr()
Citation
If you use this dataset in your research or projects, please cite it as:
@dataset{pfaha_goodreads_books_2026,
author = {pfaha},
title = {Goodreads Books Metadata},
year = {2026},
month = {July},
publisher = {Hugging Face},
url = {https://huggingface.co/datasets/pfaha/goodreads-books}
}
- Downloads last month
- 1,444