Live data from Hacker News

Show HN: HN Sentiment API – I ranked tech CEOs by how much you hate them

docs.hnpulse.com

1–10 of 12 posts

Show HN: HN Sentiment API – I ranked tech CEOs by how much you hate them

#1
I built an API that extracts entities from Hacker News comments and classifies sentiment towards them as positive, negative, or neutral. It also classifies overall comment sentiment and assigns each entity a label (person, location, date, technology, organization, other).

505k+ comments, Oct 31 - Present.

Here's the leaderboard:

LOVED:

- Steve Jobs: 44% positive, 7% negative

- Linus Torvalds: 43% positive, 5% negative

- Gabe Newell: 34% positive, 8% negative

MID:

- Bill Gates: 22% positive, 8% negative

- Tim Cook: 15% positive, 30% negative

- Bezos: 12% positive, 18% negative

HATED:

- Zuckerberg: 4% positive, 35% negative

- Sam Altman: 8% positive, 38% negative

- Musk: 5% positive, 45% negative

Try it yourself:

# Who does HN talk about the most?

curl "https://api.hnpulse.com/entities?label=person&sort=mentions"

# What are people saying about remote work?

curl "https://api.hnpulse.com/comments?entity=remote work&limit=3"

# Is OpenAI's reputation getting worse?

curl "https://api.hnpulse.com/trends?entity=openai&bucket=day"

# What technology gets mentioned alongside SF?

curl "https://api.hnpulse.com/entities?co-occur=SF&label=technolog..."

Stack: Go, PostgreSQL, GPT-4o mini for entity extraction

Docs: https://docs.hnpulse.com API: https://api.hnpulse.com

Show HN: HN Sentiment API – I ranked tech CEOs by how much you hate them
docs.hnpulse.com

Re: Show HN: HN Sentiment API – I ranked tech CEOs by how much you hate them

#9
post #5

Very neat, I want to do something similar with my own comments, to see how I interact online and get the Ai to nudge me to better communications Do you have a ballpark figure for how many tokens or dollars the analysis took?

It took 663,164,426 tokens and $238.21.
Post reply on HN