ebay browse api > articles for a specific seller - Stack Overflow

admin2025-04-26  4

i want to write a python program that lists all items of a specific seller, regardless what it is.

my code looks like this: .....

headers = {
        'Authorization': f'Bearer {ACCESS_TOKEN}',
        'X-EBAY-C-MARKETPLACE-ID': 'EBAY_DE',
        'Content-Type': 'application/json',
    }
# Query parameters
params = {
   'q': 'D',           # q is somehow needed !? empty string does not work, without q i get an error, D is just for a test*
   'filter': 'sellers:{<sellername>}', 
   'limit': limit,
   'sort': 'endingSoonest', 
}

try:
    response = requests.get(BASE_URL, headers=headers, params=params)

......

i just want to list all articles of a seller. this means the q parameter should be empty > match all articles.

but the problem is: the request call needs somehow a "q" query parameter. without q parameter i get an errorcode 12001. when q = "" (empty), i do not get an output. in the example above i set q to some value to test it.

how can i manage that?

转载请注明原文地址:http://anycun.com/QandA/1745666717a91066.html