hashnode-api
БесплатноБез исполняемых скриптовНе проверенHashnode GraphQL API documentation for creating, managing, and querying blogs, posts, publications, and user data on the Hashnode platform
Об этом скилле
Hashnode API Skill
Comprehensive assistance with the Hashnode GraphQL API for blog management, content creation, and user interaction on the Hashnode platform.
When to Use This Skill
This skill should be triggered when:
- Building integrations with Hashnode blogs or publications
- Querying Hashnode posts, users, or publication data
- Creating, publishing, or managing blog posts via API
- Implementing authentication with Hashnode Personal Access Tokens
- Working with GraphQL queries or mutations for Hashnode
- Debugging Hashnode API responses or error codes
- Setting up pagination (cursor-based or offset-based) for Hashnode data
- Implementing newsletter subscriptions, comments, or user interactions
- Migrating from the legacy Hashnode API to the new GQL endpoint
Key Concepts
API Endpoint
All Hashnode API requests go through a single GraphQL endpoint:
- Endpoint:
https://gql.hashnode.com(POST only) - Playground: Visit the same URL in a browser to explore the API
- Legacy API:
https://api.hashnode.comis discontinued - migrate to new endpoint
Authentication
- Most queries work without authentication
- Sensitive fields (drafts, email, etc.) require authentication
- All mutations require authentication
- Authentication method: Add
Authorizationheader with your Personal Access Token (PAT) - Get your PAT: https://hashnode.com/settings/developer → "Generate New Token"
Rate Limits
- Queries: 20,000 requests per minute
- Mutations: 500 requests per minute
Caching
- Almost all query responses are cached on the Edge
- Cache is automatically purged when you mutate data
- Check cache status in playground (bottom right: HIT/MISS)
- Important: Always request the
idfield to avoid stale data
Error Codes
Common GraphQL error codes:
GRAPHQL_VALIDATION_FAILED- Invalid query structureUNAUTHENTICATED- Missing or invalid auth tokenFORBIDDEN- Insufficient permissionsBAD_USER_INPUT- Invalid input dataNOT_FOUND- Resource doesn't exist
Quick Reference
1. Fetch Publication Details
query Publication {
publication(host: "blog.developerdao.com") {
id
isTeam
title
about {
markdown
}
}
}
Get basic information about a publication by its hostname.
2. Fetch Recent Blog Posts
query Publication {
publication(host: "blog.developerdao.com") {
id
isTeam
title
posts(first: 10) {
edges {
node {
id
title
brief
url
}
}
pageInfo {
endCursor
hasNextPage
}
}
}
}
Retrieve the latest 10 posts from a publication with cursor-based pagination support.
3. Fetch a Single Article by Slug
query Publication {
publication(host: "blog.developerdao.com") {
id
post(slug: "the-developers-guide-to-chainlink-vrf-foundry-edition") {
id
title
content {
markdown
html
}
}
}
}
Get full content of a specific article using its slug and publication hostname.
4. Cursor-Based Pagination (Infinite Scroll)
query Publication {
publication(host: "blog.developerdao.com") {
id
posts(
first: 10
after: "NjQxZTc4NGY0M2NiMzc2YjAyNzNkMzU4XzIwMjMtMDMtMjVUMDQ6Mjc6NTkuNjQxWg=="
) {
edges {
node {
id
title
brief
url
}
}
pageInfo {
endCursor
hasNextPage
}
}
}
}
Use endCursor from previous response as after parameter to fetch next page.
5. Offset-Based Pagination (Traditional Pages)
query Followers {
user(username: "SandroVolpicella") {
id
followers(pageSize: 10, page: 1) {
nodes {
id
username
}
pageInfo {
hasNextPage
hasPreviousPage
previousPage
nextPage
}
}
}
}
Navigate between pages using explicit page numbers.
6. Get Entity Count (Series Count Example)
query SeriesCount {
publication(host: "engineering.hashnode.com") {
id
seriesList(first: 0) {
totalDocuments
}
}
}
Result:
{
"data": {
"publication": {
"seriesList": {
"totalDocuments": 3
}
}
}
}
Use totalDocuments field to get counts without fetching all data.
7. Fetch Posts from a Series
query Publication {
publication(host: "lo-victoria.com") {
id
series(slug: "graphql") {
id
name
posts(first: 10) {
edges {
node {
id
title
}
}
}
}
}
}
Get all posts belonging to a specific series.
8. Fetch Static Pages
query Publication {
publication(host: "lo-victoria.com") {
id
staticPages(first: 10) {
edges {
node {
id
title
slug
}
Установить hashnode-api в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл hashnode-api?
Hashnode GraphQL API documentation for creating, managing, and querying blogs, posts, publications, and user data on the Hashnode platform
Как установить скилл hashnode-api?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл hashnode-api запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic