The Darkness
Dark Chaos Overlord
I’ve been digging around in the API for numerous reasons (my own client for Derpibooru that is CLI driven, a nicer API documentation page that uses the OpenAPI 3.0.x spec, and some other chaos because I sometimes validate what I see on the GUI with the equivalent API object).
I’ve found two things undocumented when there’s an array of objects returned.
The first is the “total” key when there’s an array of one or more objects returned in the JSON response. Self-explanatory: it’s the total number of objects that would be returned by the query. So when doing an images search, it can be used to determine how many pages you need if you’re trying to scrape all the JSON objects.
The second is not documented anywhere, and that’s the “interactions” key. It’s an empty array in many cases, but I’m confused what it’s for. What is the
interactions
array supposed to be for, and what type of data does that array hold?(This may sound like an odd technical request, I’m happy to divert this request to the backend development repo if I have to, but wasn’t sure if someone could document it a little better or at least explain to me the purpose.)