a simple way to access pixiv api, apis here are all based on pixiv ios app's apis.
npm i pixiv-tiny-api --save
npm test
for detail information, please read index.js
- type: "illust" or "manga"
- type: "illust" or "novel"
- restrict: "public" or "private"
- method: "add" or "delete" or "detail"
- restrict: "public" or "private"
- restrict: "public" or "private"
- mode: "day", "day_male", "day_female", "week_original", "week_rookie", "week", "month", "day_r18", "day_male_r18", "week_r18", "week_r18g", "day_manga", "week_rookie_manga", "week_manga", "month_manga"
- date: "2017-05-20"
- mode: "day", "day_male", "day_female", "week_rookie", "week"
- date: "2017-05-20"
- contentType: "illust" or "manga"
- includeRankingLabel: "true" or "false"
- restrict: "public" or "private"
- method: "add" or "delete"
- restrict: "public" or "private"
- restrict: "public" or "private"
- contentType: "illust" or "manga"
searchIllust(word, { searchTarget = 'partial_match_for_tags', duration = 'within_last_day', sort = 'date_desc' })
- searchTarget: "partial_match_for_tags" or "exact_match_for_tags"
- duration: "within_last_day", "within_last_week", "within_last_month"
- sort: "date_desc" or "date_asc"
- method: "add" or "delete"
see sample.js
MIT © sino