Donmai

New Pixiv image links?

Posted under Bugs & Features

These api urls also work, allowing more search options:

http://spapi.pixiv.net/iphone/illust.php?illust_id=IDNUM # single post
http://spapi.pixiv.net/iphone/new_illust.php?p=PAGENUM # list of newest posts on pixiv
http://spapi.pixiv.net/iphone/ranking.php?p=PAGENUM&mode=day # daily ranking
http://spapi.pixiv.net/iphone/ranking.php?p=PAGENUM&mode=week # weekly ranking
http://spapi.pixiv.net/iphone/ranking.php?p=PAGENUM&mode=month # monthly ranking
http://spapi.pixiv.net/iphone/search.php?p=PAGENUM&s_mode=SEARCHMODE&word=QUERY # search
http://spapi.pixiv.net/iphone/search_user.php?p=PAGENUM&nick=USERNAME # search users
http://spapi.pixiv.net/iphone/member_illust.php?p=PAGENUM&id=USERID # view posts by specific user

Note that the above should use the PHPSESSID parameter too. Also note that if you append &c_mode=count to the end of one of those urls you'll receive the number of posts returned by that search, instead of the posts themselves (this let's you find out e.g. how many posts a specific tag or artist has).

evazion said:

Field 9, the mobile thumbnail URL, also contains the revision timestamp if it's a revision. This is the only way I know of to detect revised images now.

And for the new URLs, you can also compare the date embedded in the URL with the actual upload date.

evazion said:

Another small thing: you can lookup multiple illustrations in one request.

I was quite happy when I discovered that. :)

I've put this information in help:pixiv api.

Updated

lxs said:

Did they change it back? Getting proper links again

No, they're still using the new format. Note that old images from before the change still use the old format, and manga images still use the old format for some reason. You're probably looking at one of those.

user.php?user_id={ID}&level={1|2|3}
manga.php?illust_id={ID}

illust_comments.php?illust_id={ID}&p={PAGE}
novel_comments.php?id={NOVEL_ID}&p={PAGE}

mypixiv_all.php?id={USER_ID}

bookmark.php?id={USER_ID}
bookmark.php?id={USER_ID}&rest=hide

bookmark_novel.php?id={USER_ID}
bookmark_novel.php?id={USER_ID}&rest=hide

bookmark_user_all.php?id={USER_ID}
bookmark_user_all.php?id={USER_ID}&rest={show|hide}

ranking.php?mode=day
ranking.php?mode=day&content={illust|manga|male|female}
ranking.php?mode=week
ranking.php?mode=week&content={original|rookie}
ranking.php?mode=month
novel_ranking.php?mode={day|week}&type={normal|r18|rookie}

ranking_log.php?mode={daily|daily_r18|male|female|male_r18|female_r18|weekly|weekly_r18|r18g|rookie|monthly}&Date_Year={yyyy}&Date_Month={MM}&Date_Day={dd}

search.php?s_mode={s_tag|s_tc}&order={date_d|date|popular_d}&scd={yyy-MM-dd}&word={QUERY}
search_novel.php?s_mode={s_tag_full|s_tag|s_tc}&order={date_d|date|popular_d}&scd={yyy-MM-dd}&word={QUERY}

hot_tags.php

novel_marker_all.php
new_novel.php
new_novel_r18.php
bookmark_user_new_novel.php
mypixiv_new_novel.php
novel_bookmarks.php?id={NOVEL_ID}
novel_series.php?series_id={SERIES_ID}
novel.php?id={NOVEL_ID}
novel_text.php?id={NOVEL_ID}
member_novel.php?id={USER_ID}

Authorization may be done through https://touch.secure.pixiv.net/login.php or https://www.secure.pixiv.net/login.php
POST, enctype="application/x-www-form-urlencoded", data: mode=login&skip=1&pixiv_id={USERNAME}=&pass={PASSWORD}

After login you'll receive PHPSESSID and device_token cookies. How to use PHPSESSID you already know, guys. device_token should be passed in "Authorization" header, format is "Bearer %s", where %s - content of device_token cookie.

After expiration of PHPSESSID (1h), make GET request here: http://touch.pixiv.net/authentication_request.php?ref=android-app&lang=en
Should do the trick.

Optional logout: http://touch.pixiv.net/logout.php or https://www.pixiv.net/logout.php
Just a regular GET

Note:
Unsure about p={PAGE} params for the methods listed above.
Also, a lot of them accept extra param dummy=0. Idk what does it mean for api, but still.
Novels parsed just like regular illusts (excel csv without headers). Field no. 27 (after r18 flag) stands for "series" id.

Updated

Wiimeiser said:

Added a fancy new border around highlighted thumbnails it seems...

You wish it was just that. They've changed how the images display. Script or not, you can't copy the thumbnail or preview image url via right click now. At least until it's updated. Hopefully.

It's back to manually making old urls peoples.

Damn it, manga posts are now using the new URL format. Knew it would only be a matter of time.

Edit: Oh man, I think they might have gotten rid of the old URL style entirely. For newer images, anyways.

Updated

SciFi said:

Nope. At least, not for Managa posts. I just uploaded post #1808381 using _big_p0

That doesn't seem to work on anything newer than that.

Also, I really hope they accidentally used the wrong URL format for manga uploads, since as of right now any image larger than 1200px in width and/or height is being scaled down.

I uploaded a couple of test images, both 2000x2000. I can't seem to get them to display at anything higher than 1200x1200. Also, I uploaded them as PNGs but were changed to JPG.

For fuck's sake, what the Hell are the pixiv devs doing?

Updated

Ars said:
I uploaded a couple of test images, both 2000x2000. I can't seem to get them to display at anything higher than 1200x1200. Also, I uploaded them as PNGs but were changed to JPG.

I'll put up with site breaking changes to urls, but I won't stand for that. It should be avalible as the artist intended, with credit, or we'll seek some place new.

Edit: Buggar. You're right.
Fortunately, I have other sources.

Updated

Okay, for now, there's a workaround for getting the original images off manga posts:

http://i2.pixiv.net/c/1200x1200/img-master/img/2014/09/30/23/12/11/46276161_p0_master1200.jpg

Chop off _master1200 and replace c/1200x1200/img-master with img-original

http://i2.pixiv.net/img-original/img/2014/09/30/23/12/11/46276161_p0.jpg

Replace .jpg with .png or .gif if needed.

A simple script that replaces/generates the links should suffice until pixiv fixes this. (I can't into coding, else I'd make one myself. ;_;)

Well, IF they even plan on fixing it.

1 2 3 4 5