Dataset Viewer
Duplicate
The dataset viewer is not available for this split.
Cannot load the dataset split (in streaming mode) to extract the first rows.
Error code:   StreamingRowsError
Exception:    CastError
Message:      Couldn't cast
id: string
title: string
code_file: string
language: string
kernel_type: string
is_private: bool
enable_gpu: bool
enable_tpu: bool
enable_internet: bool
dataset_sources: list<item: string>
  child 0, item: string
resources: list<item: struct<path: string, description: string, schema: struct<fields: list<item: struct<name:  (... 46 chars omitted)
  child 0, item: struct<path: string, description: string, schema: struct<fields: list<item: struct<name: string, typ (... 34 chars omitted)
      child 0, path: string
      child 1, description: string
      child 2, schema: struct<fields: list<item: struct<name: string, type: string, description: string>>>
          child 0, fields: list<item: struct<name: string, type: string, description: string>>
              child 0, item: struct<name: string, type: string, description: string>
                  child 0, name: string
                  child 1, type: string
                  child 2, description: string
keywords: list<item: string>
  child 0, item: string
licenses: list<item: struct<name: string>>
  child 0, item: struct<name: string>
      child 0, name: string
subtitle: string
isPrivate: bool
description: string
to
{'title': Value('string'), 'id': Value('string'), 'subtitle': Value('string'), 'description': Value('string'), 'isPrivate': Value('bool'), 'licenses': List({'name': Value('string')}), 'keywords': List(Value('string')), 'resources': List({'path': Value('string'), 'description': Value('string'), 'schema': {'fields': List({'name': Value('string'), 'type': Value('string'), 'description': Value('string')})}})}
because column names don't match
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 149, in get_rows_or_raise
                  return get_rows(
                      dataset=dataset,
                  ...<4 lines>...
                      column_names=column_names,
                  )
                File "/src/libs/libcommon/src/libcommon/utils.py", line 274, in decorator
                  return func(*args, **kwargs)
                File "/src/services/worker/src/worker/utils.py", line 129, in get_rows
                  rows_plus_one = list(itertools.islice(safe_iter(ds, dataset=dataset), rows_max_number + 1))
                File "/src/services/worker/src/worker/utils.py", line 544, in safe_iter
                  yield from ds.decode(False) if ds.features else ds
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 3074, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2578, in __iter__
                  for key, pa_table in self._iter_arrow():
                                       ~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2603, in _iter_arrow
                  for key, pa_table in self.ex_iterable._iter_arrow():
                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 577, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 459, in _iter_arrow
                  for key, pa_table in self.generate_tables_fn(**gen_kwags):
                                       ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 373, in _generate_tables
                  self._cast_table(pa_table, json_field_paths=json_field_paths),
                  ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
                  pa_table = table_cast(pa_table, self.info.features.arrow_schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2394, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2322, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              id: string
              title: string
              code_file: string
              language: string
              kernel_type: string
              is_private: bool
              enable_gpu: bool
              enable_tpu: bool
              enable_internet: bool
              dataset_sources: list<item: string>
                child 0, item: string
              resources: list<item: struct<path: string, description: string, schema: struct<fields: list<item: struct<name:  (... 46 chars omitted)
                child 0, item: struct<path: string, description: string, schema: struct<fields: list<item: struct<name: string, typ (... 34 chars omitted)
                    child 0, path: string
                    child 1, description: string
                    child 2, schema: struct<fields: list<item: struct<name: string, type: string, description: string>>>
                        child 0, fields: list<item: struct<name: string, type: string, description: string>>
                            child 0, item: struct<name: string, type: string, description: string>
                                child 0, name: string
                                child 1, type: string
                                child 2, description: string
              keywords: list<item: string>
                child 0, item: string
              licenses: list<item: struct<name: string>>
                child 0, item: struct<name: string>
                    child 0, name: string
              subtitle: string
              isPrivate: bool
              description: string
              to
              {'title': Value('string'), 'id': Value('string'), 'subtitle': Value('string'), 'description': Value('string'), 'isPrivate': Value('bool'), 'licenses': List({'name': Value('string')}), 'keywords': List(Value('string')), 'resources': List({'path': Value('string'), 'description': Value('string'), 'schema': {'fields': List({'name': Value('string'), 'type': Value('string'), 'description': Value('string')})}})}
              because column names don't match

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

YAML Metadata Warning:The task_categories "tabular" is not in the official list: text-classification, token-classification, table-question-answering, question-answering, zero-shot-classification, translation, summarization, feature-extraction, text-generation, fill-mask, sentence-similarity, text-to-speech, text-to-audio, automatic-speech-recognition, audio-to-audio, audio-classification, audio-text-to-text, voice-activity-detection, depth-estimation, image-classification, object-detection, image-segmentation, text-to-image, image-to-text, image-to-image, image-to-video, unconditional-image-generation, video-classification, reinforcement-learning, robotics, tabular-classification, tabular-regression, tabular-to-text, table-to-text, multiple-choice, text-ranking, text-retrieval, time-series-forecasting, text-to-video, image-text-to-text, image-text-to-image, image-text-to-video, visual-question-answering, document-question-answering, zero-shot-image-classification, graph-ml, mask-generation, zero-shot-object-detection, text-to-3d, image-to-3d, image-feature-extraction, video-text-to-text, keypoint-detection, visual-document-retrieval, any-to-any, video-to-video, other

Hacker News Stories 2023-2026

Subtitle: 36,000 stories with points, comments, domains, author & timestamp info

Tags: tabular, technology, social-media

Dataset File: hacker_news_stories.csv (41,784 rows, 30 columns, 12.8 MB)

Provenance & Source: Algolia Hacker News Search API (hn.algolia.com)

Expected Update Frequency: monthly


πŸ“– Description

36,000 Hacker News stories

Hacker News is the technology community's most-read link board. This dataset samples 36,000 stories submitted between December 2023 and November 2026 with 30 parameters.

  • Story β€” item id, title, URL and derived domain, submitter, points, comment count and timestamps.
  • Post type β€” self text plus Ask HN, Show HN and job flags.
  • Derived β€” title/url lengths, tag count, age in days and hours, points per hour, comments per point, year/month/day/hour/weekday, weekend flag and an engagement score.

Stories link to 14,158 distinct domains, and 1,637 Ask HN plus 3,420 Show HN posts are included. The monthly sampling covers every month in the window, so the file supports both time-series and content analysis.

🧾 Columns (30)

object_id, title, url, domain, author, points, num_comments, created_at, created_at_i, story_text, has_url, has_text, is_ask_hn, is_show_hn, is_job, title_length, title_word_count, url_length, tag_count, age_days, age_hours, points_per_hour, comments_per_point, year, month, day, hour, day_of_week, is_weekend, engagement_score

πŸ’‘ Ideas for using this data

  1. What goes viral β€” points and comments vs domain, title style and post type.
  2. Domain influence β€” which domains dominate the front page over time?
  3. Show HN vs Ask HN β€” engagement differences and best posting times.
  4. Title linguistics β€” clickbait patterns, question titles and word choice.
  5. Temporal patterns β€” hour-of-week heatmaps of submissions and engagement.
  6. Topic clustering β€” TF-IDF on titles to find recurring technology themes.
  7. Aging curve β€” points per hour for old vs recent stories (survivorship caveat).
  8. Domain diversity β€” concentration of links across the long tail.
  9. Predicting engagement β€” regress log points on title and domain features.

πŸ“ Files

File What it is
hacker_news_stories.csv 36,000 stories x 30 parameters.
data_dictionary.csv Column / type / description for every field.
notebook.ipynb Starter notebook that loads the CSV and analyses it.
dataset-metadata.json Kaggle API metadata.
about.md Plain-text About block.

🏷️ Tags

hacker-news, technology, social-media, engagement, text, time-series, links

πŸ”— Provenance

  • Source: Algolia Hacker News Search API, https://hn.algolia.com/api/v1/search_by_date?tags=story (unofficial mirror of the official Firebase HN API).
  • Scope: up to 1,000 stories per month for December 2023 through November 2026.
  • Processing: monthly queries with numericFilters on created_at_i, deduplicated by item id; domains parsed from URLs; engagement and calendar features derived.
  • Snapshot date: 22 November 2026.

πŸ”„ Update frequency

Continuous. New stories are submitted constantly.

⚠️ Caveats

  • Algolia caps each query at 1,000 hits, so months with more stories are truncated.
  • Points and comments are point-in-time snapshot values, not final totals.
  • Deleted or dead stories are not returned.
  • story_text is HTML and only present for self-posts.
  • Domain is empty for self-posts and for some non-standard URLs.
  • November 2026 is partial (through the snapshot date).
  • Algolia is an unofficial mirror; ids and timestamps match HN but availability is not guaranteed.

πŸ“œ Licence

Hacker News content belongs to its authors; metadata is provided for research use.

πŸ“‹ Column Definitions & File Header

# Column Name Data Type Description
1 object_id number Hacker News item id.
2 title string Story title.
3 url string Linked URL, where the story links out.
4 domain string Domain of the linked URL.
5 author string Submitter username.
6 points number Points at snapshot time.
7 num_comments number Comment count.
8 created_at datetime Submission timestamp (ISO).
9 created_at_i number Submission Unix timestamp.
10 story_text string Self-post text (Ask HN, Show HN, ...).
11 has_url boolean true when the story links to an external URL.
12 has_text boolean true when the story has self-post text.
13 is_ask_hn boolean true for Ask HN posts.
14 is_show_hn boolean true for Show HN posts.
15 is_job boolean true for job posts.
16 title_length number Characters in the title.
17 title_word_count number Words in the title.
18 url_length number Characters in the URL.
19 tag_count number Number of Algolia tags.
20 age_days number Days since submission at 2026-11-22.
21 age_hours number Hours since submission.
22 points_per_hour number Points divided by age in hours.
23 comments_per_point number Comments divided by points.
24 year number Submission year.
25 month number Submission month.
26 day number Submission day of month.
27 hour number Submission hour (UTC).
28 day_of_week string Submission weekday.
29 is_weekend boolean true for Saturday/Sunday.
30 engagement_score number Comments + points (simple engagement total).

🌟 Support & Community

If you find this dataset valuable for your research, machine learning projects, or data explorations, please give it an upvote (πŸ‘) on Kaggle! Feedback, questions, and community notebook submissions are warmly welcomed in the Discussions tab.

Downloads last month
22