Close
Some api questions
Hello.

1. Is there any way to get info for single post with tags with their types?

I'm currently using this:
https://yande.re/post.json?tags=id%3A321174

and get json with tags like this:
tags: "boku_to_kanojo_no_game_sensou bra cleavage happoubi_jin open_shirt seifuku"
without type information.

It's pretty important, because i can't coloring tags without knowing their types.

Also, have children array/notes array whould be nice too.

2. As far as I see, there is no api for tags history?
https://yande.re/history

Only for note?
Use tag.json to get tag type?
fireattack said:
Use tag.json to get tag type?
It's absurd.
I need 1 request (post itself) + 1 request (children) + 15 request (for 15 tags types) to get single post? Caching can't be used in my case. Much faster just parse 1 html page: json request take ~200ms, html ~500ms.
I see nothing absurd. You should build a local tag database for your application. It can be done with maybe just a few requests.
My application doesn't work just with yande.re. It has tags db, but it's global.

Is tag name (without type) unique on yande.re? Even if so, there are possibly tags on another site with the same name, but different type.

I can't store tags db separately for all site I work with, because select from them going to be nightmare.

Imaging yourself writing single page web application (not my case, but for example). Are you really going to send many request to retrieve one logical unit? Tag only have 2 properties, I don't see any reason, why site can't include them in post retrieving api response.