Greetings! I hope here is the correct place to write about my issue, as I understand this is where I should post regarding site functionality concerns.
I wish to request a very minor change to the json API of the site, if you could please consider implementing this adjustment. I’m developing a plugin that works with multiple art sites, and I’ve wanted to add Derpibooru as a supported source as well. However due to this limitation, I cannot currently integrate it with my system.
https://derpibooru.org/pages/api
I’m looking at the API that’s used to search for submissions and return an object containing the results. For example: If I wish to search for the keyword “dragon” I use this URL to get an output of the following form:
https://derpibooru.org/search.json?q=dragon
{foo, bar}
The feature I’m requesting is the callback parameter, which is supported by identical API’s on other websites. Its function is simple: It wraps the returned string inside function tags, which allow the received data to be executed directly. To use my above example, I would call the URL in the following way and get this result instead:
https://derpibooru.org/search.json?q=dragon&callback=my_function
my_function({foo, bar})
You can see the difference in action on sites that offer this parameter, such as e621:
https://e621.net/post/index.json?tags=dragon&limit=10
https://e621.net/post/index.json?tags=dragon&limit=10&callback=my_function
Currently adding &callback=whatever does nothing on Derpibooru. Since what I’m doing uses JavaScript on an HTML page, the only working option I found is to embed this URL as a script source. On sites that offer the callback parameter, this already works flawlessly! Could you please consider making this minor adjustment on Derpibooru as well? Thank you very much.