ebay api从完整的易趣网址获取项目(Transform eBay search URL into eBay REST API call to get the same items)

编程入门 行业动态 更新时间:2024-10-28 01:18:43
ebay api从完整的易趣网址获取项目(Transform eBay search URL into eBay REST API call to get the same items)

这就是我想要做的。

用户在主ebay网站上搜索他们想要跟踪的项目并设置过滤器

他们输入我网站上的URL。 示例易趣网址: http ://www.ebay.com/sch/Cell-Phones-Smartphones/9355/i.html?_from=R40&Model=iPhone%2520SE&_nkw=iPhone%20SE&_dcat=9355&Features=GPS&rt=nc&_trksid=p2045573.m1684

如果列出价格低于X的商品,我会打电话给ebay api并给他们发电子邮件。

要做到这一点,我需要将我在上面提到的ebay网址转换为一个URL来调用ebay rest api并获得相同的产品。 到目前为止,我只设法按关键字搜索并按最新列表排序:

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

我不知道如何从主ebay URL获取搜索参数并使用它们来调用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.

最满意答案

您可能需要对eBay的所有/大部分URL参数进行反向工程,以准确解释用户想要搜索的内容。 然后从那里你可以建立一个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.

更多推荐

本文发布于:2023-07-22 19:33:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1222797.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:易趣   完整   网址   项目   Transform

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!