Transform eBay search URL into eBay REST API call to get the same items - ebay-api

Here's what I want to do .
Users search for the items they want to track on main eBay website and set filters
They enter the URL on my website. Sample eBay URL
I make calls to eBay API and email them if items with price lower than X have been listed
To do that, I need to transform the eBay URL I mentioned above into an URL to call eBay REST API and get the same products.
So far I only managed to search by keywords and order by newest listing:
http://svcs.ebay.com/services/search/FindingService/v1?SECURITY-APPNAME=XXXXXX&OPERATION-NAME=findItemsByKeywords&SERVICE-VERSION=1.0.0&RESPONSE-DATA-FORMAT=JSON&RESTPAYLOAD&keywords=iphone&paginationInput.entriesPerPage=10&sortOrder=StartTimeNewest
I don't know how to get the search parameters from main eBay URL and use them to call the API.

You'll probably need to reverse engineer all/most of eBay's URL parameters to interpret exactly what the user is intending to search for. Then from there you can build an API call.
I'm not aware of any formal documentation of eBay URL parameters. I've unofficially noted a few on my site, but there are many more.

Related

ebay API - Get promoted listings

Using the Ebay Api I want to query whether any listings have promoted listings associated with them.
Using the Marketing API I've tried: getCampaigns and getPromotions.
On the Trading API I've tried: getPromotionalSaleDetails.
The standard getSellerList call doesn't return promoted listing data.
I'm hoping there is an API call that will return all listings that have "promoted listings" on them, or a list of campaigns that will give me an id number that I can use to look up the relevant listings.
Edit
According to the documentation for the getCampaign api call, campaigns created through the eBay website ("eBay web flow") are not returned via this method. Of course, all the campaigns I want to retrieve were created via the eBay website. And the documentation doesn't point the developer to where this data can be retrieved. Probably because it doesn't exist. The eBay forum mentions this.

eBay API - How to get number of active listings in each country?

Is there any way to use the eBay API to get the number of active listings in each country/eBay site?
I have 80,000+ listings split across 7 different ebay sites. I cannot use the Trading API as this is limited to 25,000 results.
I have looked at the Merchant Data API and the ActiveInventoryReport call. It has a SiteFilter but the Api Reference just says "Reserved for internal or future use." I tested it and it doesn't seem to work.
I got a semi-official answer from eBay. It's not possible:
Right now we dont have a way to get the listings per site basis. You
will have to add extra logic in your application to check the Listing
Site of the Item.

Does ebay API allows to create a listing draft?

I would like to create a listing ebay draft as it is possible to do manually using this flow:
Go to the new listing sell creation page
Choose category id
Put some random data (title, description, etc.)
Close tab
You will see now unfinished draft, when you go to the new listing sell creation page.
Can I do the same thing using eBay api?
The reason of it is that I don't want to implement all functionality of addItem, currently.
eBay API will not allow to create draft listing.
when you call API for creating new listing, API needs all required fields value.
eBay Listing API provide one attribute PrivateListing.it will hide your product for selling.
If PrivateListing is true, designates the listing as private.customer can't see private listing.
eBay Listing API provide one more attribute ScheduleTime.
When you export product in eBay via API you can give ScheduleTime as well, eBay will active product for selling based on ScheduleTime.
You can make product inactive/draft using this alternative way.
http://developer.ebay.com/devzone/xml/docs/Reference/eBay/AddItem.html#AddItem
You can refer above link for eBay API.
As of now, I can confirm eBay does provide the API to create listing draft, though it's in beta at the moment.
POST - /item_draft/
Official doc is here
To my knowledge this cannot be done, since there are some pretty strict constraints around using the addItem API call, and eBay will throw an error if you don't complete the all the required fields. The required fields of addItem are numerous enough that if you could populate these fields, then you are already 90% of the way to completing your listing anyways.
If you are using Selling Manager Pro, you can create product templates which may be a way to accomplish what you are looking for.

eBay Daily Deals API

I'd like to use the eBay API to get the deals available in the "Deals & Special Offers" (Daily Deals) section of the site. But I can't find any functions or function parameters that would allow me to do that. It seems I can only retrieve the data available on the main site, i.e. things I can find by using the "Shop by category" menu on the eBay home page.
Is there any way to get the Daily Deals using the API?
please review
eBay Deals: New Feed
You should hit the official API, this is the new URL: http://api.epn.ebay.com/deals/v1/country/us/feed/json?feedType=json
Here's an example page of the output: http://www.fastsearchapps.com/deals

eBay API Search by MPN

I am trying to search listings on eBay by MPN via their api.
I stumbled upon this:
https://ebaydts.com/eBayKBDetails?KBid=1723
leading to FindProducts call
It should be able to filter products by MPN by setting ProductID.Type=MPN.
I tried it, but it returns products that are not related to the MPN
http://open.api.ebay.com/shopping?callname=FindProducts&responseencoding=XML&appid=APP_ID&siteid=0&version=829&MaxEntries=20&ProductID.Type=MPN&ProductID.Value=PLEDV1945A
So either i am doing something wrong, or it is returning wrong products.
Does someone know how to get listings by MPN the proper way?
Thank you
I don't know the exact answer to your question (and I haven't searched eBay by MPN before), but know that the FindProducts API call is being deprecated soon, and eBay is expecting people to use a newer API call called findItemsByProduct - docs here.
Also in eBay's newer Finding API family is the API call named findItemsAdvanced which is also worth a shot.