Topic: [Feature] Artists API

Posted under Site Bug Reports & Feature Requests

Bug overview description.
I was programming on a little tool for some hours now. It already worked a thousand times before, perfectly.
But from one moment to the other, the artists API seems to return always them same wrong artists when I try to get an artist by id.

Afaik, if I call for e.g. "https://e621.net/artist/index.json?id=2879", it should return exactly one artist, which is "alectorfencer". Or for "...id=658" it should return the artist adam_wan.

But no matter which id I use, i get a list of what seems to be the list of all artists in order of editing/newest (as seen on the normal artists-page: https://e621.net/artist/index), not including the wanted artist.

JSON and XML return the same.

What part(s) of the site page(s) are affected?
https://e621.net/artist/index.json?id=XXX

What is the expected behavior?
Returning a single artist with matching ID

What actual behavior is given instead?
Returning a list of wrong artists. Seemingly the list of "last edited" artists.

Time of incident (if applicable).
15:30h (MEZ)

Can you reproduce the bug every time?
Yes.

What steps did you take to replicate this bug?
- Take any browser (I tried multiple), or webfetch code in my code
- Call for example "https://e621.net/artist/index.json?id=2879"

Errors or other messages returned (if any).
No.

Updated by KiraNoot

There is no code to even support searching by id, only by name. Sooo, I'm not sure how this ever worked. There is also no xml/json output method for the show action, so this should never have worked at all.

I'll consider it as a feature request.

Updated by anonymous

KiraNoot said:
There is no code to even support searching by id, only by name. Sooo, I'm not sure how this ever worked. There is also no xml/json output method for the show action, so this should never have worked at all.

I'll consider it as a feature request.

Ehm, sorry? It says different in this guide:

https://e621.net/help/show/api#artists

As I understand it, there is an id tag for "/artist/index.xml" and there is also a button for example XML/JSON output. So i guess XML and JSON is implemented.
And as I said, it worked before...

Updated by anonymous

Kezlyn said:
Ehm, sorry? It says different in this guide:

https://e621.net/help/show/api#artists

As I understand it, there is an id tag for "/artist/index.xml" and there is also a button for example XML/JSON output. So i guess XML and JSON is implemented.
And as I said, it worked before...

Kira means that there is no /artist/show.xml or /artist/show.json. Normally e6's API uses a show action for looking up a single instance of something with an id (e.g. https://e621.net/post/show.xml?id=8595 ). As for id being listed under /artist/index in the documentation, all I know is it's been like that for over 1.5 years (before /help/api referenced the wiki).

Updated by anonymous

Unfortunately the API docs are sometimes wrong or outdated. I've removed reference to the id param for /artist/index because it doesn't work, and there isn't anything to support it working. Making /artist/show work would be a better use of time, as it matches the rest of the sites usage of the API.

Updated by anonymous

purple.beastie said:
Kira means that there is no /artist/show.xml or /artist/show.json. Normally e6's API uses a show action for looking up a single instance of something with an id (e.g. https://e621.net/post/show.xml?id=8595 ). As for id being listed under /artist/index in the documentation, all I know is it's been like that for over 1.5 years (before /help/api referenced the wiki).

Well okay. Then I must be wrong.
But thanks for explaining, now I understood what KiraNoot was trying to tell me.

Question to Kira: Should I make a new feature request, or does this thread suffice?

Updated by anonymous

  • 1