Did your search return anything at all? Normally, with the API you run a search and the query returns a search SID, then you use the SID to query again for the results of the search.
You would usually build your search as a set of parameters and pass it to an endpoint, and get a SID back from that. Here's an example snippet from some python code I wrote to get bucket info from a dbinspect search:
params = "search=%7Cdbinspect%20index%3D%2A%20latest%3Dnow%20earliest%3D-99y&exec_mode=blocking"
url = "https://" + searchhead + ":8089/services/search/jobs/"
item = json.loads(fetchdata(url,params))
try:
sid = str(item['sid'])
except:
sys.exit(1)
url = "https://" + searchhead + ":8089/services/search/jobs/" + sid + "/results/"
urldata = fetchdata(url)
You can see the query is in the params variable, and I pass it to the search head (the url variable) as a query parameter (the fetchdata call). the result is returned to the item[] array which I grab the SID from (the try block: sid = str item['sid'] ).
Once I have the SID I build a new url var with the SID (second from last line in the example) then call it to return the result data.
... View more