Ebay Finding API: don't get the same number of results by API call as manual search using the same filters on ebay
I am using finding API
of e-bay
to get a complete list of items.
I am using my sample code to call the API. But when I search for a keyword and the same filter, I get a subset of the result, but I don't get a complete list of items. This only gave the best results.
These are my filters:
var filterarray = [
{"name":"FreeShippingOnly",
"value":"true",
"paramName":"",
"paramValue":""},
{"name": "Condition",
"value": "Used",
"paramName":"",
"paramValue":""},
{"name": "SoldItemsOnly",
"value": "true",
"paramName":"",
"paramValue":""},
];
Creates an indexed URL slice from an array of item filters
function buildURLArray() {
// Iterate through each filter in the array
for(var i=0; i<filterarray.length; i++) {
//Index each item filter in filterarray
var itemfilter = filterarray[i];
// Iterate through each parameter in each item filter
for(var index in itemfilter) {
// Check to see if the paramter has a value (some don't)
if (itemfilter[index] !== "") {
if (itemfilter[index] instanceof Array) {
for(var r=0; r<itemfilter[index].length; r++) {
var value = itemfilter[index][r];
urlfilter += "&itemFilter\(" + i + "\)." + index + "\(" + r + "\)=" + value ;
}
}
else {
urlfilter += "&itemFilter\(" + i + "\)." + index + "=" + itemfilter[index];
}
}
}
}
} // End buildURLArray() function
// Execute the function to build the URL filter
buildURLArray(filterarray);
This is my url:
var url = "http://svcs.ebay.com/services/search/FindingService/v1";
url += "?OPERATION-NAME=findCompletedItems";
url += "&SERVICE-VERSION=1.12.0";
url += "&SECURITY-APPNAME=my_app_id";
url += "&GLOBAL-ID=EBAY-US";
url += "&RESPONSE-DATA-FORMAT=JSON";
url += "&callback=_cb_findItemsByKeywords";
url += "&REST-PAYLOAD";
url += "&keywords=%22iphone+5%22";
url += "&paginationInput.entriesPerPage=25";
url += "&sortOrder=EndTimeSoonest";
url += urlfilter;
I have carefully checked the FindindAPI documentation and every filter parameter and corresponding value. Is this some functionality finding API
that is limited to getting a complete list, or did I do something wrong?
+3
source to share