{"id":28456589,"url":"https://github.com/maple3142/pixiv-client","last_synced_at":"2025-06-29T10:32:36.968Z","repository":{"id":57325144,"uuid":"157562192","full_name":"maple3142/pixiv-client","owner":"maple3142","description":"Pixiv api client for node.js written in typescript.","archived":false,"fork":false,"pushed_at":"2020-02-22T10:41:18.000Z","size":50,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-06T23:08:14.005Z","etag":null,"topics":["api","client","pixiv"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maple3142.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-14T14:37:33.000Z","updated_at":"2021-07-12T17:39:36.000Z","dependencies_parsed_at":"2022-09-06T06:41:31.511Z","dependency_job_id":null,"html_url":"https://github.com/maple3142/pixiv-client","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/maple3142/pixiv-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maple3142%2Fpixiv-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maple3142%2Fpixiv-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maple3142%2Fpixiv-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maple3142%2Fpixiv-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maple3142","download_url":"https://codeload.github.com/maple3142/pixiv-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maple3142%2Fpixiv-client/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262578313,"owners_count":23331602,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","client","pixiv"],"created_at":"2025-06-06T23:08:14.203Z","updated_at":"2025-06-29T10:32:36.961Z","avatar_url":"https://github.com/maple3142.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pixiv-client\n\n\u003e Pixiv api client for node.js written in typescript.\n\n## Example\n\n```js\n// ES6:\nimport { PixivDesktopApi, PixivMobileApi, downloadAsStream } from 'pixiv-client'\n// Commomjs:\nconst { PixivDesktopApi, PixivMobileApi, downloadAsStream } = require('pixiv-client')\n\n;(async () =\u003e {\n  // Desktop api examples\n  const dc = await PixivDesktopApi.create() // no after-login function in PixivDesktopApi\n  const r = await dc.getIllustData(70337017)\n  downloadAsStream(r.urls.original).pipe(fs.createWriteStream(__dirname + '/test.png')) // or `await downloadToLocal(r.urls.original, __dirname + '/test.png')`\n  console.log(await dc.getUserProfileData(5323203))\n\n  // Mobile api examples\n  const mc = await PixivMobileApi.login({\n    username: 'USERNAME',\n    password: 'PASSWORD'\n  })\n  console.log(await mc.getRanking('day'))\n  console.log((await mc.getUserBookmarks(mc.oauth.info.user.id)).illusts)\n\n  // Working with async iterator\n  const ar = []\n  const result = await c.searchIllusts('ノゾミ(プリコネ)', {\n    searchTarget: 'exact_match_for_tags'\n  })\n  for await (const r of c.makeIterable(result)){\n    ar.push(...r.illusts)\n  }\n  console.log(ar.length)\n})()\n```\n\n## Documentation\n\n* [index](src/index.ts)\n* [desktop api](src/desktop/index.ts)\n* [mobile api](src/mobile/index.ts)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaple3142%2Fpixiv-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaple3142%2Fpixiv-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaple3142%2Fpixiv-client/lists"}