EBAY API | how to register | set up OAuth

Поделиться
HTML-код
  • Опубликовано: 3 июл 2024
  • This video shows how to register for a DEVELOPER account so you can set up OAuth and EBAY's large range of API endpoints. I show how to get past the "notifications exemption" and how to get your OAuth tokens. With the developer program you can create a keyset to allow your application to access many EBAY resources for buyers and sellers.
    I show how you can opt out of the "marketplace account deletion/closure notifications" and "configure eBay sign in settings" for OAuth. All eBay REST APIs use the OAuth 2.0 protocol for application and user authorization.
    - chapters -
    00:00 intro
    01:45 register for a developer account
    03:41 confirm marketplace account deletion notification exemption
    06:26 configure OAuth
    10:49 configure one redirect URL
    12:02 sign in to Production
    13:44 response 200
    16:23 python ebaysdk 'ebaysdk-python'
    ----------------------------------------------------------------
    EBAY API playlist : • EBAY API - 2022
    As some of this process was new to me there may be slight spells where I'm checking what to do next, but hopefully that shows you some of the things NOT to try and NOT to click on!
    Once you have your Production token you can watch some of my other videos and see how to write code in Python to access the eBay API endpoints.
    There is also an ebay SDK which I show towards the end of the video.
    Become a patron : 🌏 / drpi
    Buy me a coffee (or Tea) ☕ www.buymeacoffee.com/DrPi
    See also : stackoverflow.com/questions/6...
    Pytest with FastAPI course on "TestDriven.io":
    -------------------------------------------------------------------------
    testdriven.io/courses/tdd-fas...
    testdriven.io/courses/scalabl...
    testdriven.io/courses/fastapi...
    🌏 10% off ScraperAPI : www.scraperapi.com?fpr=ken49
    ◼️ Coupon Code: DRPI10
    (You can also get started with 5000 free API calls. No credit card required.)
    Proxies
    =================================================
    If you need a good, easy to use proxy, I was recommended this one, and having used ScraperAPI for a while I can vouch for them. If you were going to sign up anyway, then maybe you would be kind enough to use the link and the coupon code below?
    You can also do a full working trial first as well, (unlike some other companies). The trial doesn't ask for any payment details either so all good! 👍
    🌏 10% off ScraperAPI : www.scraperapi.com?fpr=ken49
    ◼️ Coupon Code: DRPI10
    Thumbs up yeah? (cos Algos..)
    #ebay #ebaydeveloper #pythonprogramming
  • НаукаНаука

Комментарии • 55

  • @CottonInDerTube
    @CottonInDerTube Год назад +13

    I love how you, who obviously did this before, have still "problems" with the docs.
    Im now through many markeplace APIs. Like ManoMano, Kaufland, Shopify, Plentymarkets, OTTO, ...
    but ebay ... the documentation is like "look here ... aww, not what you needed? ... WAIT! Look here! ... awww got you again :) "

    • @python360
      @python360  Год назад +3

      Yes, the docs are like an infinite loop sometimes, where you always end up back at the page that you already tried ( which also didn't help! )

    • @Alpheamus
      @Alpheamus Год назад +1

      I implore you both to read the Amazon AWS Lambda documentation. It was my first exposure to documentations I had to read and after starting on it, everything else, even eBay is fairly readable.
      It's great practice. Painful, but great!

  • @corylowe5557
    @corylowe5557 Год назад +3

    Amazing. This would have taken me all day...several days. The Ebay interface was being buggy, so I needed to try 5+ times. And I don't know what I was doing. But since I was able to see it worked for you, I could keep trying. Thanks!

    • @python360
      @python360  Год назад +1

      Thank you, I found it so difficult to unpick their documentation and authorization I felt my video might help others, an... me if I need to refer back at some point., provided they haven't changed it all. There have some newer API enpoints that need X-auth and that just made my eyes hurt!

  • @gueg2298
    @gueg2298 Год назад +3

    Thanks a lot man, saved me a lot of time and brain blowing hard solving task tutorial

    • @python360
      @python360  Год назад

      Thanks man! Glad it helped, I tried to demystify it 👍

  • @boba5559
    @boba5559 2 месяца назад +2

    This is gold! Thank you so much for putting this together. Much appreciated. I would like to set up a basic application to pull my listings from ebay and push to another platform. Any suggestions on where to start? Easiest language to use, etc? Feel free to respond to me as a 5-year old LOL

    • @python360
      @python360  Месяц назад +1

      Thank you for the good comment!
      Python will be the easier language to use. You can experiment getting data with the different API endpoints once you have your "developer key" - the authentication is quite complicated, and you'll need to get a new token, every 2 hours. The ebay developer forum is the best place for problems/tips.

    • @boba5559
      @boba5559 Месяц назад +1

      @@python360 thanks again! Will definitely check out the forum and go the Python route to start. Thank you

    • @python360
      @python360  Месяц назад +1

      It can be laborious, but if you follow their documentation eventually the mists clear! I've not used any API that uses X-auth as that's even more fiddly, certain API's need it, and some don't, so try find the ones that dont (the docs will state if x-auth is needed) while you're starting out 👍

  • @RoseAugusto-ig3cm
    @RoseAugusto-ig3cm 3 месяца назад

    Hello, just wanted to ask during the marketplace deletion/account closure notification process, where can I find the verification token and

  • @chanelcc8673
    @chanelcc8673 8 месяцев назад +2

    Thanks a lot for your time! I really got far, but I currently struggle with finding the 10:56 eBay Sign in settings, as there is no field below as well as for the field below "Review your sign-in content", could you help me out with that by any chance?

    • @python360
      @python360  8 месяцев назад +1

      Thank you. It forced me to create a "redirect URL" which felt kind of unnecessary, so if you can skip that then all good. If you still have to do it, then click the "I" in the circle next to "Add eBay Redirect URL" and do what it demands. I've not used it for a good 6 months so no doubt it's all changed, but some of their steps seemed aimed at JS/java stuff and weren't entirely relevant to doing Python with no front end as such. If you can't find that screen, then just crack on and skip it basically, as it seemed more relevant for someone with a website front end.

    • @chanelcc8673
      @chanelcc8673 8 месяцев назад +1

      @@python360 thanks for the prompt response! Are you availabile for a meeting or so in which we can discuss something related to my project? I am really new to programming and would appreciate every help!

    • @python360
      @python360  8 месяцев назад +1

      @@chanelcc8673 Yes, sure. If you go to my website, redandgreen.co.uk and send a message via "contact" I'll get it in my email and reply 0900 GMT Tues !

  • @ZANTHEHUSTLER
    @ZANTHEHUSTLER 6 месяцев назад +1

    danke dir brudi

  • @Steven-rf2tb
    @Steven-rf2tb 2 месяца назад +1

    Hi thanks for the videos, I’m stuck on registration, I got the verification email and then was notified that my application was rejected… please advise? I’ve tried several different emails with and without vpn

    • @python360
      @python360  2 месяца назад

      Ah. I must have been lucky then. I had to wait approx 3 days but was approved eventually. Are you able to contact them and ask why?
      Fyi, I used a protonmail email address.

  • @Something9008
    @Something9008 Год назад +1

    If we have a backend app that just gets product data through the rest API do we still need to have a oauth sign-in front end?

    • @python360
      @python360  Год назад

      No. You wouldn't.
      But.....you might need to update token at frequent intervals though.

  • @FazJay
    @FazJay 2 месяца назад +1

    What if you want to persist data? How can you set this up without marketplace notification exemption?

    • @python360
      @python360  2 месяца назад

      I'm not sure, other than if you maintain 2 database tables and check and store the differences?

  • @henriquematias1986
    @henriquematias1986 6 месяцев назад +1

    Also, when you do search on ebay using the API can you somehow ask it to bring the barcode ( EAN or UPC ) on the search results and avoid having to get details for each listing to get the bar code? I can’t figure it out :(

    • @python360
      @python360  6 месяцев назад

      From memory, its nested deep in the json response. I think you need "findItemsAdvanced" which is part of the Finding API

  • @dishcleaner2
    @dishcleaner2 Год назад +1

    It looks like I need to get a new OAuth token every day? Is there a way to automate that or do I need to handle that manually? Scraping is honestly looking easier.

    • @python360
      @python360  Год назад +1

      I agree. The tokens are valid for 7200 seconds, and then you need to refresh. The documentation for Python is not always the best, sometimes it may be worth checking the Node SDK docs in ebay developer section. But tbh, scraping may be easier if speed isn't an issue.

  • @markhajny9036
    @markhajny9036 9 месяцев назад

    I have my production keyset created. I can generate oauth tokens (which expire within hours). With those tokens I successfully use the API explorer. What I want to do is pull in all my ebay ads and their percentages once a day and do some things with that data. I want this to run unattended at night. But whenever it runs at night the oauth tokens are always expired. I have to manually go in to my developer account and create one, then paste it in my script, and it works. But how do I automate all this?

    • @python360
      @python360  9 месяцев назад

      I think the tokens only last one hour, from memory. Maybe run the script more often and discard what you don't need?

  • @XFuckXDaXSystemX
    @XFuckXDaXSystemX Год назад +1

    thanks for the tutorial, im at 11.27 done all the steps, but cannot click Agree and continue. any idea why?

    • @python360
      @python360  Год назад

      Have you tried clicking "not now" ?instead, i don't think the branding is mandatory (although I did it at 11:26)

  • @stahoomusik4070
    @stahoomusik4070 Месяц назад

    Great instructions, thanks! To be clear, the email of developer account can be different then the email of the normal ebay account?

    • @python360
      @python360  Месяц назад

      Thank you! Yes. 100%
      The developer account and normal account are totally separate, and so can email addresses be different (I know this as I use a dedicated email for developer) 👍

  • @user-hj6qj6qf8m
    @user-hj6qj6qf8m Год назад +1

    my application on creating developer account was declined. Can you help us? What should we do to get approve?

    • @python360
      @python360  Год назад

      You'll need.to ask eBay what the reason is

  • @henriquematias1986
    @henriquematias1986 6 месяцев назад +1

    Can you actually buy and item on ebay that is not an auction, as in a “buy now” item using the API?

    • @python360
      @python360  6 месяцев назад

      Yes, with the Buy API , thi k you ja e yo meet certain ebay criteria, eg ebay affiliate.
      I'm in Europe so the auth is pain.

  • @SergeiMorello
    @SergeiMorello Год назад

    Why is your get request is fail?

  • @oceanwired
    @oceanwired 10 месяцев назад

    As a seller with huge inventory, will API help me update the stock every 5 hours? if so can you do a video on how to achieve that with inventory in an xml or csv file

    • @python360
      @python360  10 месяцев назад

      developer.ebay.com/api-docs/sell/inventory/resources/inventory_item/methods/getInventoryItems
      "For those who prefer to retrieve numerous inventory item records by SKU value with one call (up to 25 at a time), the bulkGetInventoryItem method can be used."
      Do you know how many products? You can get 25 at a time apparently...
      developer.ebay.com/api-docs/sell/inventory/static/overview.html#requirements

    • @oceanwired
      @oceanwired 10 месяцев назад

      @@python360 10K items. I also sell on a website and I want to update stock or price automatically. I see there is a limit to 25 items, what's the point of using an API then?

  • @dilmarkcoins8701
    @dilmarkcoins8701 6 месяцев назад

    Can you help to set the sandbox?

    • @python360
      @python360  6 месяцев назад

      Have you had your developer account approved?

    • @dilmarkcoins8701
      @dilmarkcoins8701 6 месяцев назад

      Yes, we have. How can I get in touch with you? 🙌Thank you.

    • @python360
      @python360  6 месяцев назад

      @@dilmarkcoins8701 You can use the "contact" form on redandgreen.co.uk 👍👍

    • @dilmarkcoins8701
      @dilmarkcoins8701 6 месяцев назад

      @@python360 thank you

  • @reverendbluejeans1748
    @reverendbluejeans1748 Год назад +1

    11:44 you jump off some new page with some code on it. I cant find that page

    • @python360
      @python360  Год назад

      This one?
      developer.ebay.com/marketplace-account-deletion
      Scroll down about 1/3rd of the page down

    • @reverendbluejeans1748
      @reverendbluejeans1748 Год назад +1

      @@python360 Thanks.

  • @erenoren1841
    @erenoren1841 9 месяцев назад +2

    The worst documentation I have ever seen in my life is on ebay

    • @python360
      @python360  9 месяцев назад +1

      100% agree! I tried to help, but tbh, there was a limit to how much I could decipher.

    • @erenoren1841
      @erenoren1841 9 месяцев назад

      @@python360 thanks for all :)

  • @ashiq1141
    @ashiq1141 10 месяцев назад +1

    Hi sir, we operates 4 online marketplaces in India and is it technically possible to connect a single seller portal with all the 4 Marketplaces? Eg: if we operates Marketplace A,B,C & D and the seller portal is X, so when a seller upload his product catelogue on X, it will be visible on all buyer facing Marketplaces A,B,C & D respectively. Is it possible with help of api?

    • @python360
      @python360  10 месяцев назад

      I'm not 100% sure, probably best to try the forum first : community.ebay.com/t5/Developer-Forums/ct-p/developergroup
      I know some APIs are more limited than others with respect to how many calls you can make and whether you meet the Ebay requirements etc etc!