REST Api?

Discussion related to "Everything" 1.5 Alpha.
Post Reply
Stretto
Posts: 16
Joined: Mon Sep 28, 2020 5:59 pm

REST Api?

Post by Stretto »

I'm currently having to parse the html output of everything using it's html server.

Can we have it output json or text instead of html?

E.g., I really would like the file names, number of results, file sizes, extension and maybe date but in a json format rather than having to parse the html and hack it. It would be cleaner on my side and easier to hack stuff together to use the "html server" and probably wouldn't be difficult to add.

Maybe rather than just having ?search= you could add ?searchjson=

which returns the info in json format.

Also, I wonder if there could be some way to search probabilistically. I have a lot of searching that I do and minor changes such as middle initials or some irrelevant things that come through the automation process can throw the results off. I'm currently removing certain irrelevant things and simplifying the search string as best I can but it would be nice if one could automatically get the results with a probability of matching. E.g., if the entire search string matches then it returns a probability of 1 and for lesser and lessor of a match it returns those matches and their probabilities up to some limit(e.g., all matches that have a probability > 0.8).
void
Developer
Posts: 17152
Joined: Fri Oct 16, 2009 11:31 pm

Re: REST Api?

Post by void »

Include the following query string in your URL:

json=1

For example:

http://localhost/?json=1
http://localhost/?search=foo&sort=date_modified&ascending=0&json=1


JSON query string
Post Reply