# Hacker News Search API

> Hacker News Search API on Apizie: 3 endpoints (Search by relevance, Search newest first, Item with comments) returned as clean JSON through one API key. 3 endpoints are live now. Call it over REST at https://apizie.tech/v1/search-tools:hn-search/{endpoint} or from Claude, ChatGPT and Cursor through the Apizie MCP server. Free plan: 1,000 requests a month.

- Project key: `search-tools:hn-search`
- Category: Search Tools
- Status: live
- Source: https://hn.algolia.com/api
- Page: https://apizie.tech/api/search-tools/hn-search
- OpenAPI: https://apizie.tech/api/search-tools/hn-search/openapi.json

Full-text search over Hacker News stories and comments (Algolia HN Search API).

## Endpoints

### Search by relevance
`GET https://apizie.tech/v1/search-tools:hn-search/search`

| Parameter | Type | Required | Description |
|---|---|---|---|
| query | string | yes |  |
| tags | string | no |  |
| page | integer | no |  |
| hitsPerPage | integer | no | Number of results |

### Search newest first
`GET https://apizie.tech/v1/search-tools:hn-search/search-by-date`

| Parameter | Type | Required | Description |
|---|---|---|---|
| query | string | yes |  |
| tags | string | no |  |
| hitsPerPage | integer | no | Number of results |

### Item with comments
`GET https://apizie.tech/v1/search-tools:hn-search/item`

| Parameter | Type | Required | Description |
|---|---|---|---|
| id | integer | yes |  |

## Example
```
curl "https://apizie.tech/v1/search-tools:hn-search/search" \
  -H "x-api-key: $APIZIE_KEY"
```

## FAQ

### How do I call the Hacker News Search API?
Create a free Apizie key, then send GET https://apizie.tech/v1/search-tools:hn-search/search with the header x-api-key. Every endpoint returns { project, data, timestamp }.

### Is the Hacker News Search API free on Apizie?
Yes. The Free plan includes 1,000 requests a month at 100 requests a minute, no credit card.

### Can AI agents use the Hacker News Search API?
Yes. Add the Apizie MCP server (https://apizie.tech/mcp) to Claude, ChatGPT, Cursor or VS Code, then ask in plain language. The agent calls run_scraper with project key search-tools:hn-search.

### What is the status of the Hacker News Search API?
Live: works with just an Apizie key
