Unofficial Python API client based on specification extracted from Pixiv Android App v5.0.61 and PixivPy.
Python 3.4+ and requests
pip install git+https://github.com/Yukariin/PyPixiv.git(you may need to run pip with root permission: sudo pip install git+https://github.com/Yukariin/PyPixiv.git)
Then import the package:
import pypixivInstall via Setuptools.
python setup.py install --user(or sudo python setup.py install to install the package for all users)
Then import the package:
import pypixivPlease follow the installation procedure
import pypixiv
# create an instance of the API class
api_instance = pypixiv.PixivAppApi()
api_response = api_instance.app_info()
print(api_response)All URIs are relative to https://app-api.pixiv.net
| Class | Method | HTTP request | Description |
|---|---|---|---|
| PixivAppApi | get_app_info | GET /v1/application-info/android | Get application info for Android device (no auth needed) |
| PixivAppApi | get_contest_illusts | GET /v1/contest/illusts | |
| PixivAppApi | get_contest_info_illust | GET /v1/contest/info/illust | |
| PixivAppApi | get_emoji | GET /v1/emoji | List available emojis (no auth needed) |
All endpoints marked with no auth needed do not require authorization.
Yukarin