1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] Python XML eBay API Call

Discussão em 'Python' iniciado por Stack, Setembro 14, 2025.

  1. Stack

    Stack Membro Participativo

    I seem to be having issues with running calls on the eBay API. No matter what I throw at it, I keep getting the same output.

    import requests

    xml ="""<?xml version="1.0" encoding="utf-8"?>
    <GetBestOffersRequest xmlns="urn:ebay:apis:eBLBaseComponents">
    <<RequesterCredentials>
    <eBayAuthToken>'inserted actual token here'</eBayAuthToken>
    </RequesterCredentials>
    </GetBestOffersRequest>
    """

    output = requests.post("https://api.ebay.com/ws/api.dll", data = xml)

    print(output.text)


    The output that I always get is:

    <?xml version="1.0" encoding="UTF-8" ?>
    <GeteBayOfficialTimeResponse xmlns="urn:ebay:apis:eBLBaseComponents">
    <Timestamp>2020-12-23 05:20:07</Timestamp>
    <Ack>Failure</Ack>
    <Errors>
    <ShortMessage>Unsupported API call.</ShortMessage>
    <LongMessage>The API call "GeteBayOfficialTime" is invalid or not supported in this release.</LongMessage>
    <ErrorCode>2</ErrorCode>
    <SeverityCode>Error</SeverityCode>
    <ErrorClassification>RequestError</ErrorClassification>
    </Errors>
    <Build>19110890</Build>
    </GeteBayOfficialTimeResponse>


    What am I doing wrong?

    Continue reading...

Compartilhe esta Página