Topic: API question: I set an ID but get too many other posts

Posted under General

Maybe I'm not using the API right, but when I want to get the data of one post, the API gives me the data of hell knows how many, e.g. here:

https://e621.net/posts.json?id=2171210

I get **75** results for '{"id":'!

Sometime I'd even not get the info of the post I gave the ID of! WHat can I do so I get the info of only ONE post?

Pup

Privileged

arisboch said:
Maybe I'm not using the API right, but when I want to get the data of one post, the API gives me the data of hell knows how many, e.g. here:

https://e621.net/posts.json?id=2171210

The API's been updated as well as the rest of the site. I've added basics here:
e621:api

There isn't an ID parameter for retrieving posts, so you'd need to use ?tags=id:2171210 for that example. You can also add limit=X to limit the amount of results.

arisboch said:
Maybe I'm not using the API right, but when I want to get the data of one post, the API gives me the data of hell knows how many, e.g. here:

https://e621.net/posts.json?id=2171210

I get **75** results for '{"id":'!

Sometime I'd even not get the info of the post I gave the ID of! WHat can I do so I get the info of only ONE post?

Wait for the api page to be written out.