From .mjs file to REST endpoint.

Register a scraper once; it gets routes, docs and a playground.

GET/anilist/v1/home
{
  "success": true,
  "source": "anilist",
  "version": "v1",
  "endpoint": "home",
  "data": {
    "seasonLabel": "FALL 2026",
    "trending": [
      {
        "id": 21,
        "title": "ONE PIECE",
        "seasonYear": 1999,
        "averageScore": 87
      },
      {
        "id": 213457,
        "title": "Fool Night",
        "seasonYear": 2026,
        "averageScore": 81
      }
    ]
  },
  "message": "Success",
  "meta": {
    "cached": true,
    "tookMs": 0,
    "generatedAt": "2026-12-03T10:14:21.415Z",
    "requestId": "bqe82i2ae2g7"
  },
  "note": "2 of 12 titles, four fields each"
}
200 · 0 mscached

The registry, as it stands

Two scrapers, one contract.

One file in, JSON out

scrapers/example/v1/index.mjs

export const meta = { name, slug, version };
export const endpoints = [{ id: "home", path: "/home" }];
export const handlers = {
  home: async (ctx) => ({ titles: await read(ctx) }),
};

GET /example/v1/home

{
  "success": true,
  "source": "example",
  "data": { "titles": [] }
}

The envelope

{
  "success": true,
  "data": {},
  "meta": { "cached": false, "tookMs": 312 }
}

No build step

handlers: { home: async (ctx) => ({}) }

Three screens, one registry

The AniList reference page listing endpoints with parameter tables and copyable examples

Generated from the file

Every endpoint, its parameters and its response shape, read from the scraper itself.

What it runs on

Route handlers on the Node runtime, deployed to Vercel.

Execution

Node runtime, one handler per call.

Registry

Bundled, or loaded from storage.

Data

Redis for keys, logs, counters.

Cache

60 seconds to one hour.

Access

Open reads, rate limited.

Call it from the bot

The bot stays its own project and asks this API for data.

Read the bot integration

bot/index.cjs
const axios = require("axios");

const api = axios.create({
  baseURL: "https://scraper.aznime.com",
  headers: { "x-api-key": process.env.SCRAPER_API_KEY },
});

const { data } = await api.get("/anilist/v1/home");
if (!data.success) throw new Error(data.error.code);
console.log(data.data.trending[0].title.romaji)