# Hashnode on Onekey > 6 endpoints for Hashnode (0 stable, 6 beta), 1 to 5 credits each. Category: News & publishing. One key, one JSON shape. Base URL: https://api.onekey.dev Auth: header `x-api-key: `. Call shape: `GET /v1/{platform}/{endpoint}?{params}`. Every response is `{success, data, metadata, error}`; check `success` first. Cost is in `metadata.credits_charged`. Free when served from cache (0.2 credit for a cached response over 100 KB). Failed and not-found calls are refunded. Status: stable = verified against the live source; beta = not yet verified, fields may be missing. Page: https://onekey.dev/platforms/hashnode Reference (Markdown): https://onekey.dev/docs/api/hashnode.md All docs: https://onekey.dev/llms.txt ## Canonical fields returned Unified-schema fields (same names on every platform), with how many of the 6 mapped Hashnode endpoints return each: - `author.avatarUrl` (URL): 4 - `author.displayName` (string): 4 - `author.username` (string): 4 - `content.text` (string): 4 - `content.createdAt` (ISO 8601 date): 3 - `content.id` (string): 3 - `content.title` (string): 3 - `content.url` (URL): 3 - `engagement.comments` (integer): 3 - `engagement.likes` (integer): 3 - `engagement.views` (integer): 3 - `entity.description` (string): 2 - `entity.id` (string): 2 - `entity.name` (string): 2 - `author.followers` (integer): 1 - `author.following` (integer): 1 - `author.id` (string): 1 - `entity.stats.followers` (integer): 1 - `entity.url` (URL): 1 - `media.thumbnailUrl` (URL): 1 - plus 1 platform-specific field under `ext.` ## Endpoints ### hashnode.post A Hashnode post by publication host and slug. - Price: 1 credit per fresh call. Status: beta. Returns: one record. - Request: `GET https://api.onekey.dev/v1/hashnode/post?host=engineering.hashnode.com&slug=example` with header `x-api-key: YOUR_API_KEY` - Parameters: - `host` (string, required): Publication host, e.g. engineering.hashnode.com - `slug` (string, required): Post slug - Fields returned: `content.id`, `content.title`, `content.text`, `content.url`, `content.createdAt`, `author.username`, `author.displayName`, `author.avatarUrl`, `engagement.likes`, `engagement.comments`, `engagement.views` - Reference: https://onekey.dev/docs/api/hashnode/post.md ### hashnode.publication A Hashnode publication (blog). - Price: 1 credit per fresh call. Status: beta. Returns: one record. - Request: `GET https://api.onekey.dev/v1/hashnode/publication?host=engineering.hashnode.com` with header `x-api-key: YOUR_API_KEY` - Parameters: - `host` (string, required): Publication host, e.g. engineering.hashnode.com - Fields returned: `entity.id`, `entity.name`, `entity.description`, `entity.url`, `media.thumbnailUrl` - Reference: https://onekey.dev/docs/api/hashnode/publication.md ### hashnode.publication_posts Latest posts of a Hashnode publication. - Price: 5 credits per fresh call. Status: beta. Returns: a list. - Request: `GET https://api.onekey.dev/v1/hashnode/publication_posts?host=engineering.hashnode.com` with header `x-api-key: YOUR_API_KEY` - Parameters: - `host` (string, required): Publication host, e.g. engineering.hashnode.com - Fields returned: `content.id`, `content.title`, `content.text`, `content.url`, `content.createdAt`, `author.username`, `author.displayName`, `author.avatarUrl`, `engagement.likes`, `engagement.comments`, `engagement.views` - Reference: https://onekey.dev/docs/api/hashnode/publication_posts.md ### hashnode.tag A Hashnode tag. - Price: 1 credit per fresh call. Status: beta. Returns: one record. - Request: `GET https://api.onekey.dev/v1/hashnode/tag?slug=javascript` with header `x-api-key: YOUR_API_KEY` - Parameters: - `slug` (string, required): Post slug - Fields returned: `entity.id`, `entity.name`, `entity.description`, `entity.stats.followers`, `ext.posts` - Reference: https://onekey.dev/docs/api/hashnode/tag.md ### hashnode.user A Hashnode user's profile. - Price: 1 credit per fresh call. Status: beta. Returns: one record. - Request: `GET https://api.onekey.dev/v1/hashnode/user?username=hashnode` with header `x-api-key: YOUR_API_KEY` - Parameters: - `username` (string, required): Hashnode username - Fields returned: `author.id`, `author.username`, `author.displayName`, `content.text`, `author.followers`, `author.following`, `author.avatarUrl` - Reference: https://onekey.dev/docs/api/hashnode/user.md ### hashnode.user_posts Posts by a Hashnode user. - Price: 5 credits per fresh call. Status: beta. Returns: a list. - Request: `GET https://api.onekey.dev/v1/hashnode/user_posts?username=hashnode` with header `x-api-key: YOUR_API_KEY` - Parameters: - `username` (string, required): Hashnode username - Fields returned: `content.id`, `content.title`, `content.text`, `content.url`, `content.createdAt`, `author.username`, `author.displayName`, `author.avatarUrl`, `engagement.likes`, `engagement.comments`, `engagement.views` - Reference: https://onekey.dev/docs/api/hashnode/user_posts.md ## Sample request ```bash curl "https://api.onekey.dev/v1/hashnode/post?host=engineering.hashnode.com&slug=example" \ -H "x-api-key: YOUR_API_KEY" ```