Skip to content

API Reference

This guide outlines all public and developer APIs provided by the ChanomHub platform for querying, integrating, and managing articles, mods, and developer features.

ChanomHub APIs are accessible via multiple endpoints:

  • Base URL (REST): https://api.chanomhub.com/api (or http://localhost:3000/api for local development)
  • GraphQL Endpoint: https://api.chanomhub.com/api/graphql
  • Interactive Swagger Docs: https://api.chanomhub.com/api-docs

Public endpoints (listing articles, searching mods, reading public profiles) do not require authentication. For write operations or accessing personal user resources, include a Bearer token in your HTTP request headers:

Authorization: Bearer <YOUR_ACCESS_TOKEN>
EndpointMethodDescription
/api/auth/sign-in/emailPOSTSign in with Email and Password
/api/auth/sign-up/emailPOSTRegister a new user account
/api/auth/sign-outPOSTSign out / Invalidate current session
/api/auth/sign-in/socialGETInitiate OAuth login (google, discord, github)

Search, fetch, create, and manage game articles and publications.

GET /api/articles

Query Parameters:

  • page (number): Target page number ( Default: 1 )
  • limit (number): Number of items per page ( Default: 20 )
  • category (string): Filter by Category Slug
  • tag (string): Filter by Tag Slug
  • search (string): Search query string for title/content
  • sortBy (string): Sorting criteria (latest, popular, trending)
Terminal window
curl -X GET "https://api.chanomhub.com/api/articles?page=1&limit=10&sortBy=latest"
  • GET /api/articles/latest — Get newly published articles
  • GET /api/articles/popular — Get top trending articles

GET /api/articles/:slug

Response Example:

{
"article": {
"id": 102,
"title": "Example Game Mod Article",
"slug": "example-game-mod",
"description": "Short description of the article...",
"body": "Article body in Markdown format...",
"ver": "1.2.0",
"engine": "RENPY",
"views": 1540,
"ratings": 4.8,
"tags": ["Visual Novel", "Mod"],
"createdAt": "2026-08-19T10:00:00.000Z"
}
}

POST /api/articles/:slug/view

  • Increments view count when a user views the article page.
  • POST /api/articles — Create a new article draft/submission
  • PUT /api/articles/:slug — Update an existing article
  • POST /api/articles/:slug/transfer-request — Request ownership transfer of an article to another user
  • POST /api/articles/:slug/favorite — Bookmark an article
  • DELETE /api/articles/:slug/favorite — Remove an article from bookmarks

EndpointMethodAuthDescription
/api/articles/:slug/commentsGETRetrieve comment tree for an article
/api/articles/:slug/commentsPOSTPost a new comment or reply
/api/articles/:slug/comments/:idDELETEDelete your comment

Query game mods, categories, and game engines.

  • GET /api/mods — Search and filter game mods
  • GET /api/mods/:id — Retrieve specific mod details by ID
  • GET /api/mod-categories — Fetch list of mod categories
  • GET /api/engines — Fetch list of supported game engines (e.g. Ren’Py, Unity, RPG Maker)

EndpointMethodDescription
/api/downloads/:documentIdGETGenerate secure download token and links
/api/downloads/redirectGETHandle ad/redirect download links

6. Taxonomy APIs (Tags, Categories & Platforms)

Section titled “6. Taxonomy APIs (Tags, Categories & Platforms)”
  • GET /api/tags — List all article tags with usage counts
  • GET /api/categories — List available categories
  • GET /api/platforms — List game platforms (PC, Mobile, Android, Switch, etc.)

Manage developer status and verification tokens.

  • GET /api/developer/list — List all verified developers
  • GET /api/developer/profile (Auth) — Retrieve authenticated user’s developer profile
  • POST /api/developer/apply (Auth) — Submit developer profile application
  • POST /api/developer/generate-token (Auth) — Generate a 1-time verification token
  • POST /api/developer/verify/:token (Auth) — Verify token
  • PATCH /api/developer/profile (Auth) — Update developer profile details

Helper endpoints for content creators and developer integrations:

  • POST /api/ai/suggest-tags — Automatically suggest relevant tags for content
  • POST /api/ai/validate-tag — Validate tag syntax and relevance

ChanomHub provides RSS feeds to subscribe to news and content updates:

  • Platform RSS Feed: /platforms/:slug/rss
    • Example: https://chanomhub.com/en/platforms/pc/rss
  • Tag RSS Feed: /tag/:slug/rss
    • Example: https://chanomhub.com/en/tag/visual-novel/rss

The GraphQL endpoint allows client applications to query flexible data schemas.

  • Endpoint: /api/graphql
  • Supported HTTP Methods: POST, QUERY

Explore the full schema via the interactive GraphQL Schema Browser.


Status CodeMeaningDescription
200 OKSuccessRequest succeeded
201 CreatedCreatedResource successfully created
400 Bad RequestBad RequestInvalid inputs or malformed body
401 UnauthorizedUnauthorizedBearer token required in HTTP Header
403 ForbiddenForbiddenInsufficient permissions for operation
404 Not FoundNot FoundRequested slug or resource not found
500 Internal ErrorInternal Server ErrorServer-side exception