Feature #13
API access
| Status: | New | Start: | ||
| Priority: | Normal | Due date: | ||
| Assigned to: | - | % Done: | 0% |
|
| Category: | extension ideas | |||
| Target version: | 2.X | |||
Description
It would be nice in order to make it compatible with tools out there for danbooru
API documentation:
http://attachr.com/7569.
Also for those willing to access massively to the images would reduce web-server load.
History
Updated by dawl0 - 560 days ago
Would perhaps a partial implementation of the API be possible in an earlier release?
I'd very much like to be able to list posts, so I can include shimmie-based sites in http://anisearch.net
Updated by Shish - 514 days ago
Blerg at slow replies >_<
Any particular bit of API you're interested in? A subset would probably be done faster than the full thing; and if you can be very specific to the point of doing some of the design, that would help too :3
Updated by dawl0 - 505 days ago
A reply, awesome :D
This is the query I run against the boorus:
"post/index.xml?
tags=id:>$last_id order:id
&limit=100
&login=$user
&password_hash=$pass_hash"
I provide the first image ID I want, and then increment the $last_id value for every request, until I'm up to date with the site. Notice how the images are sorted, so I'm sure to get them all.
An example query:
http://konachan.com/post/index.xml?tags=id:%3E3692%20order:id&limit=100
I'll stick around for questions or comments.
Thanks :3
Updated by Shish Moom 124 days ago
- Assigned to deleted (
Shish -) - Target version changed from 2.3 to 2.X
api bits are done as they're asked for, no plans for a full thing yet...