Ebay API: Get only auction type listings for search query return no results - ebay-api

On ebay's Browse API, I'm trying to get only listings that are auctions, but get no results.
For example, I'm trying to get auctions for iphones (or any other keyword), using buyingOptions filter:
https://api.sandbox.ebay.com/buy/browse/v1/item_summary/search?q=iphone&filter=buyingOptions:{AUCTION}
Yet, I get no results.
If I edit the above query, to also include FIXED_PRICE items, I will get only fixed price results:
https://api.sandbox.ebay.com/buy/browse/v1/item_summary/search?q=iphone&filter=buyingOptions:{AUCTION|FIXED_PRICE}
Is it possible to get only auction type items? If so, how?
Thanks.

Switching from sandbox to production api solved the problem.

Related

Is there an API call to list all available product id's (ID's alone) in Shopify?

I use POSTMAN GUI for retrieving a list of items from Shopify API.
I would like to know if there exists a way to get available product id's alone, preferably as a list of values over a single api GET call. The one I know of is
/admin/api/2022-04/products.json
It returns a list of all product information, and looping over them/traversing the json is not very efficient. I hope there must be an easy way to fetch all ID's alone in one go. Should there be not?
You can add /admin/api/2022-04/products.json?fields=id to the end of your request to limit the output only for a single field or multiply.
Please note that if you have more than 250 products you will need to make more than one request, since the request is limited to 250 products.
You can make one call to the Admin API for all your product IDs using the Bulk Query. That will result in you receiving a URL where you download a file in JSONL format with every single product ID in your store, without the paging or limits of other approaches.

Fandom API Retrieve all pages in a category

I want to get all pages in a category using fandom api but I couldn't find a way to do it. There is allpages query property but it doesn't have any parameter related to category. Is there any other way I can accomplish this?
If you use the Categorymembers API, you can get all the pages within a category. You'll need to use the API parameters
cmtitle=(name of category),
cmlimit=(maximum results returned, max 500 at a time)
list=categorymembers
Note that if you want to paginate through more results than 500, you will need to also use the cmcontinue parameter returned in the first page of results in your next API query to get the second page of results.
Here it is in action on Fandom.

How to get a list of products by ItemID Ebay SDK

I would like to get a list of products filtered by their ItemID ?
I successfully retrieved a list of products filtered by date using the GetSellerList Call on Ebay SDK.
I saw there is a kind of getItem method but it seems to return only one item. Is there a way to do it without calling multiple times the getItem API method ?
https://developer.ebay.com/DevZone/shopping/docs/CallRef/GetMultipleItems.html
I think You are looking for GetMultipleItems() method from ebaysdk.shopping as above.
You can retrieve maximum 20 items per one query.

Can podio's api filter item response with only a mini detail level for each item?

My script needs to check from time to time that all items present in an app are recorded in its own db. Indeed even when using the podio hooks, it happens that my script and podio are getting desynchronised.
It uses the filter item api call by batch of 100 of items. In this case the script doesn't need to know all the fields values, but only the basic informations: item_id, app, title, link and current_revision.
I wonder if it's possible to set a query parameter in the filter function only only get the mini view of each item. This could improve greatly performances.
You can use fields parameter for that.
More details on how it works and how else it could be used are right here: https://developers.podio.com/index/api in "Bundling responses using fields parameter" section.
Using fields to bundle objects can be a way to drastically reduce the amount of API requests you have to make.
Most likely you are looking for fields=items.view(micro) parameter. Podio API will return then only 5 values for each item:
app_item_id
item_id
title
link
revision

Retrieve ISBN from eBay listing via Shopping API

I'm trying to use the eBay shopping API to try and retrieve the ISBNs from listings for books. I already have the eBay IDs for the listings which I'm interested in. Likely that most will have the ISBNs included in the Item Specifics for the listing (some won't, these can be disregarded).
One would therefore assume that retrieving the Item Specifics from the API would give the ISBN as a value, but it appears that the output gives pretty much everything apart from the ISBN. For example, the following API request gives lots of interesting detail about the listing, apart from the ISBN itself:
http://open.api.ebay.com/shopping?callname=GetSingleItem&responseencoding=XML&appid=MYAPPID&siteid=1&version=897&ItemID=EBAYID&IncludeSelector=ItemSpecifics
I haven't had much joy searching the API docs for a solution to getting this particular element from the listing - does anybody have a solution for this? Or if it simply isn't possible to get the ISBN via the API cleanly, is there an alternative method? (This is for very small scale personal use.)
ISBN, UPC, EAN and suchlike come under the productID field.
This field is returned by using the Details value of IncludeSelector. So the url you would want is:
http://open.api.ebay.com/shopping?callname=GetSingleItem&responseencoding=XML&appid=MYAPPID&siteid=1&version=897&ItemID=EBAYID&IncludeSelector=Details
http://developer.ebay.com/devzone/shopping/docs/CallRef/GetSingleItem.html#Response.Item.ProductID
EDIT:
To get the ISBN form a catalogue product you need to use the productID value to make a request to the Product API.
You need to call getProductDetails with the input:
<productDetailsRequest>
<productIdentifier>
<ePID>91515717</ePID>
</productIdentifier>
<datasetPropertyName>ISBN</datasetPropertyName>
</productDetailsRequest>
You can use ISBN10 or ISBN13 as the value of datasetPropertyName depending on which one you want.
http://svcs.ebay.com/services/marketplacecatalog/ProductService/v1?OPERATION-NAME=getProductDetails&SECURITY-APPNAME=APPID&SERVICE-VERSION=1.3.0&productDetailsRequest.productIdentifier.ePID=REFERENCE&productDetailsRequest.datasetPropertyName=ISBN
http://developer.ebay.com/DevZone/product/CallRef/getProductDetails.html