question

alter_8040 avatar image
0 Likes"
alter_8040 asked ·

Finding API: Filter articles by country,Finding API: Get articles from specific country

Hey,

I am playing around with the Finding API, and I am trying to get all articles with a specific keyword in my own country, or neighboring ones.


I am using the Python SDK and tried:

from ebaysdk.finding 
import Connection as Finding from ebaysdk.exception import ConnectionError
try:     
    api = Finding(appid="AltayAkk-Testing-PRD-c7a727799-b7a8244e", config_file=None)     
    response = api.execute('findItemsAdvanced', {'keywords': 'Python', 'itemFilter':{'country': 'GB'}})     
    print(response.dict())
except ConnectionError as e:     
    print(e)     
    print(e.response.dict())

I also tried the country parameter with the corresponding ISO Code, but this didnt work either

What am I missing? I found nothing in the API docs :/

findingapi
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
helios825 avatar image
0 Likes"
helios825 answered ·

You should definitely learn how to use Finding API filters, specifically the filter named 'LocatedIn'. Check out the docs here.

IDK how that may work with the SDK, though, as I've never used the SDK.

· Share
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.