首页 > 解决方案 > 如何按 Etsy API 中的字段过滤

问题描述

我正在使用 Etsy API v2 使用 Postman 进行 GET 调用。目的是为在德国的商店和谁销售婚纱(新娘服装)获取带有图像的列表...我发现没有办法直接获取德国商店的列表,所以我尝试实施一个解决方法获取货币为欧元、语言为德语 (de) 等的商店的图像。问题是我无法按字段/参数过滤内容(例如“语言”:“de”,(不是“MACHINE_de”) “params”:{“region”:“DE”},“currency_code”:“USD”,“taxonomy_path”:[“Kleidung”,“Braut”],“图片”:[“url_fullxfull”]

我使用了这些调用:

https://openapi.etsy.com/v2/listings/active?api_key=xyz&limit=1&region=DE&includes=Images:1:0&language=de&currency_code=EUR&fields=language,currency_code,url,listing_id,title,price,occasion,taxonomy_path

http://openapi.etsy.com/v2/shops/19924510/listings/active?method=GET&api_key=xyz&fields=title,url,price,language&limit=1&includes=MACHINE_de&language=de

这个 API 调用根据 currency_code 和语言过滤商店:

https://openapi.etsy.com/v2/shops/?api_key=xyz&limit=1&currency_code:EUR&&languages=DE

有没有办法让上面的字段和参数过滤的 API 结果?

标签: apipostmanetsy

解决方案


推荐阅读