Simply go to https://random-miku.owo39.me/ and it will redirect to https://random-miku.owo39.me/https://www.pixiv.net/en/artworks/<randomid>
which will serve the raw image directly, and the url as such allows you to delete the left half to get to the source. Another request to the same URL from the same IP address will be redirected to a different random image.
Some query parameters are available to change the functionality:
| param | values | description | example |
| size
| original
, regular
, small
, thumb_mini
| Get a different image size. The default is original
. | https://random-miku.owo39.me/?size=small |
| noredirect
| | If used at /
, server will respond the random image directly to that request instead of redirecting to a URL with the source URL in it (In this case the source id is only recoverable from X-Pixiv-Id
header.). If used for the other, disables random redirection on reload. | https://random-miku.owo39.me/?noredirect https://random-miku.owo39.me/https://www.pixiv.net/en/artworks/55814670?noredirect |
| allow_r18
| | Enables random selection of pornographic illustrations. | https://random-miku.owo39.me/?allow_r18 |
For programatic purposes you can GET /api
which responds just a random ID in plain text.
here's an embedded example.
unfortunately there's no way to get source like this (browsers don't expose redirected urls of embedded resources).