pixiv Unofficial API Library for TypeScript
This is NOT a fork of @ibaraki-douji/pixivts. However, it is used as a reference.
fetchResult<T, PixivError>; no thrown exceptions for API errorsPaginatedResultAsync with .pages() / .items() async generators for multi-page iterationillusts, novels, users, manga, ugoira, images@book000/pixivts-db-mysql persists every API response via Drizzle ORM| Package | Description |
|---|---|
@book000/pixivts |
Core API client — zero runtime dependencies, Result-typed, ESM + CJS |
@book000/pixivts-db-mysql |
Optional MySQL recorder using Drizzle ORM |
npm install @book000/pixivts
import { PixivClient } from '@book000/pixivts'
const client = await PixivClient.of(process.env.PIXIV_REFRESH_TOKEN!)
const result = await client.illusts.detail({ illustId: 12345 })
if (result.isOk) {
console.log(result.value.illust.title)
}
.items() / .pages(), cursor-based resumeBookmarkRestrict.PUBLIC etc.@book000/pixivts-db-mysql setup and query helpersThis project is licensed under the MIT License