import.io - Using the advanced query api and get all pages back -
i can call advanced query method , first page of data (using post option) refernced in http://api.docs.import.io/#querymethods
anyone have idea how page after that? 20 out of 190 results. query looks like:
var query = { "input": { "last_name": name }, "additionalinput": { "8d817939-my-api-key-9502ed72": cookie }, "returnpaginationsuggestions": true }
where param name , cookie known vars.
the results not return pagination block either in model result:
{ "connectorversionguid": "string", "pagination": { "pattern": "string", "next": "string", "currentpagenum": 0, "previous": "string" }, "connectorguid": "string", "totalresults": 0, "errortype": "timeoutexception", "outputproperties": [ { "type": "string", "name": "string" } ], "cookies": [ "string" ], "results": [ {} ], "pageurl": "string", "error": "string", "data": {} }
if response not returning "pagination" block, means system not able identify pagination on given page.
as far remember pagination flaky extractor apis, while works quite magic apis. recommend trying magic extractor, , getting pagination suggestions it. should able "pagination" block in response, , use "next" value url of next page.
Comments
Post a Comment