Swiftpack.co -  theBreadCompany/pixivswift as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
A port of upbit's pixivpy library.
.package(url: "https://github.com/theBreadCompany/pixivswift.git", from: "1.0.0")


A port of upbit's pixivpy library.


This whole peace is provided as is, and I am not responsible for any damage or law breakings, i. e. damage to your hardware or consumption of questionable content.

Also, please do not overuse this. Pixiv has no financial benefit from this, and they somehow have to finance their servers, too...


  • Headless login
  • Access to both the public API and the API used by the Pixiv app
  • Directly download images (although ugoiras require further handling, more on that will follow)


Swift Package Manager


It's basicaly the same usage like upbit's pixivpy: This API is synchronous, meaning that we wait for every single request to be completed.


WIP, please have a look at pixivpy ^^'.

Tips & Tricks

  • You may use both the PublicAPI and the AppAPI class if nescessary
  • The public API grants access to searches by illustration popularity, which the AppAPI doesn't, even with the correct keyword
  • ugoiras are essentially image sequences which have to be assembled manually -> the image urls contain a link to a zip file containing the images. Fetch this first, unzip, fetch metadata via AppPixivAPI.ugoira_metadata and use the first given frame delay for assembling. Code will follow.


  • Improve this documentation (provide code examples)
  • Create tests
  • Write a codeable class for (far) easier response handling


I'll release a repo of an iOS/macOS app using this API in a few weeks.


  • pixiv.net for their amazing platform
  • upbit for providing his work as opensource
  • Apple for creating a powerful language that is really nice to learn and use


Stars: 0
Last commit: 22 hours ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.

Release Notes

first release!
3 weeks ago

This is the first release real release with all features written in the README ready to use, though I have to state that the headless login may need some work yet.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics