Also,
I'm seeing some listings with more than 14 tags being returned -
sometimes as many as 36! Are these tags the correct tags for the
listing? Or are these tags that have spaces (multi-worded tags) being
counted as individual tags and not joined with an underscore?
Here are some examples:
1. 19 tags
{"count":831582,"results":[{"listing_id":51269654,"title":"Dress Form.
Cross Stitch Pattern","price":3,"currency_code":"USD","url":"http:\/\/
www.etsy.com\/listing\/51269654\/dress-form-cross-stitch-pattern","tags":["patterns","andwabisabi","xstitch","form","simple","handmade","women","pretty","red","needlecraft","counted","blue","dress","stitch","feminine","navy","design","embroidery","cross"],"materials":["pattern","pdf"],"views":167,"creation_tsz":1289544294,"state":"active","Images":[{"listing_image_id":157553527,"hex_code":"FFFFFF","red":255,"green":255,"blue":255,"hue":0,"saturation":0,"brightness":100,"is_black_and_white":false,"creation_tsz":1278867951,"listing_id":51269654,"rank":1,"url_75x75":"http:\/\/
ny-image3.etsy.com\/il_75x75.157553527.jpg","url_170x135":"http:\/\/
ny-image3.etsy.com\/il_170x135.157553527.jpg","url_570xN":"http:\/\/
ny-image3.etsy.com\/il_570xN.157553527.jpg","url_fullxfull":"http:\/\/
ny-image3.etsy.com\/il_fullxfull.157553527.jpg"}],"Shop":{"shop_id":5287176,"shop_name":"andwabisabi"}}],"params":{"limit":"1","offset":"0","keywords":"handmade","sort_on":"created","sort_order":"down","min_price":null,"max_price":null,"color":null,"color_accuracy":0,"tags":null,"materials":null,"category":null},"type":"Listing"}
2. 21 tags
{"count":21116,"results":[{"listing_id":60803062,"title":"MILK - Super-
Natural Collection - Handspun NZ Merino Fleece and Bamboo Super Bulky
2 ply Yarn - 126 grams 60 yards","price":
18,"currency_code":"USD","url":"http:\/\/
www.etsy.com\/listing\/
60803062\/milk-super-natural-collection-handspun","tags":
["crocheting","dyeing","europe","etsyitaliateam","art","yarns","felting","white","handmade","fiber","and","spinning","thick","knitting","thin","natural","painting","undyed","italy","etsyfast","supplies"],"materials":
["fleece","bamboo","merino"],"views":44,"creation_tsz":
1289543170,"state":"active","Images":[{"listing_image_id":
189465000,"hex_code":"CEC9C1","red":206,"green":201,"blue":193,"hue":
36,"saturation":6,"brightness":
80,"is_black_and_white":false,"creation_tsz":1288893409,"listing_id":
60803062,"rank":1,"url_75x75":"http:\/\/
ny-image0.etsy.com\/
il_75x75.189465000.jpg","url_170x135":"http:\/\/
ny-image0.etsy.com\/
il_170x135.189465000.jpg","url_570xN":"http:\/\/
ny-image0.etsy.com\/
il_570xN.189465000.jpg","url_fullxfull":"http:\/\/
ny-image0.etsy.com\/
il_fullxfull.189465000.jpg"}],"Shop":{"shop_id":
5838478,"shop_name":"Eliade"}}],"params":
{"limit":"1","offset":"1","keywords":"merino","sort_on":"created","sort_order":"down","min_price":null,"max_price":null,"color":null,"color_accuracy":
0,"tags":null,"materials":null,"category":null},"type":"Listing"}
3. 27 tags
{"count":21116,"results":[{"listing_id":56985245,"title":"Nuno Felted
Unisex Scarf Dark Side","price":67,"currency_code":"USD","url":"http:\/
\/
www.etsy.com\/listing\/56985245\/nuno-felted-unisex-scarf-dark-
side","tags":
["gift","fashion","unique","warm","ground","fiber","chic","autumn","nuno","grey","men","merino","wool","ooak","black","felted","silk","art","under","scarves","accessories","soft","winter","felt","fall","70","scarf"],"materials":
["love","silk","ponge","australian","superfine","fabric","merino","wool"],"views":
494,"creation_tsz":1289531182,"state":"active","Images":
[{"listing_image_id":176675647,"hex_code":"000000","red":0,"green":
0,"blue":0,"hue":255,"saturation":0,"brightness":
0,"is_black_and_white":false,"creation_tsz":1285126791,"listing_id":
56985245,"rank":1,"url_75x75":"http:\/\/
ny-image3.etsy.com\/
il_75x75.176675647.jpg","url_170x135":"http:\/\/
ny-image3.etsy.com\/
il_170x135.176675647.jpg","url_570xN":"http:\/\/
ny-image3.etsy.com\/
il_570xN.176675647.jpg","url_fullxfull":"http:\/\/
ny-image3.etsy.com\/
il_fullxfull.176675647.jpg"}],"Shop":{"shop_id":
5646118,"shop_name":"FeltedPleasure"}}],"params":
{"limit":"1","offset":"82","keywords":"merino","sort_on":"created","sort_order":"down","min_price":null,"max_price":null,"color":null,"color_accuracy":
0,"tags":null,"materials":null,"category":null},"type":"Listing"}
4. 30 tags
{"count":21117,"results":[{"listing_id":60005523,"title":"Cobweb
Felted Scarf Wrap Camo","price":58,"currency_code":"USD","url":"http:\/
\/
www.etsy.com\/listing\/60005523\/cobweb-felted-scarf-wrap-
camo","tags":
["gift","fashion","warm","clothing","tencel","rusty","fiber","cobweb","autumn","60","merino","ooak","wool","lacy","felted","art","silver","under","multicolor","scarves","teal","accessories","women","soft","luxury","winter","felt","fall","airy","scarf"],"materials":
["love","tops","australian","tencel","superfine","merino","wool"],"views":
138,"creation_tsz":1289518184,"state":"active","Images":
[{"listing_image_id":186784308,"hex_code":"CDCED3","red":205,"green":
206,"blue":211,"hue":230,"saturation":2,"brightness":
82,"is_black_and_white":false,"creation_tsz":1288113536,"listing_id":
60005523,"rank":1,"url_75x75":"http:\/\/
ny-image0.etsy.com\/
il_75x75.186784308.jpg","url_170x135":"http:\/\/
ny-image0.etsy.com\/
il_170x135.186784308.jpg","url_570xN":"http:\/\/
ny-image0.etsy.com\/
il_570xN.186784308.jpg","url_fullxfull":"http:\/\/
ny-image0.etsy.com\/
il_fullxfull.186784308.jpg"}],"Shop":{"shop_id":
5646118,"shop_name":"FeltedPleasure"}}],"params":
{"limit":"1","offset":"200","keywords":"merino","sort_on":"created","sort_order":"down","min_price":null,"max_price":null,"color":null,"color_accuracy":
0,"tags":null,"materials":null,"category":null},"type":"Listing"}
5. 36 tags
{"count":21117,"results":[{"listing_id":61536139,"title":"Hand Knit
Hat - Brown Wool - fits toddler and preschoolers","price":
21,"currency_code":"USD","url":"http:\/\/
www.etsy.com\/listing\/
61536139\/hand-knit-hat-brown-wool-fits-toddler","tags":
["to","unique","warm","clothing","cap","children","beanie","blaze","hat","hand","girl","autumn","knit","baby","merino","toddler","ooak","wool","orange","maine","wee","moondogfarm","soft","2","winter","fall","4","waldorf","preschooler","brown","maineteam","years","harvest","boy","natural","eco"],"materials":
["love","warmth","merino","wool"],"views":7,"creation_tsz":
1289514459,"state":"active","Images":[],"Shop":{"shop_id":
5411420,"shop_name":"moondogfarm"}}],"params":
{"limit":"1","offset":"234","keywords":"merino","sort_on":"created","sort_order":"down","min_price":null,"max_price":null,"color":null,"color_accuracy":
0,"tags":null,"materials":null,"category":null},"type":"Listing"}
On Nov 12, 5:36 pm, GraGra33 <
gragr...@gmail.com> wrote:
> I'm experiencing Listings results with an "empty Shop array
> resource" (eg: "Shop":[] ) field for findAllListingActive searches in
> the sandbox instead of an "empty single Shop resource" (eg: "Shop":
> {"shop_id":5320020,"shop_name":"stseraphinaknits"} ) . This is causing
> on JSON Serializer to throw errors as we are expecting a single object
> and not an array.
>
> This appears to be a bug - 1. We shouldn't be getting an empty shop
> resource; 2. A single empty resource and not an empty array resource
> should be returned.
>
> Here's an example of a correct result and a wrong result:
>
> Correct Result:
>
> {"count":21118,"results":[{"listing_id":61505447,"title":"CLOUD NINE
> SUPERSOFT SUPERWASH MERINO - High Tide","price":
> 13.99,"currency_code":"USD","url":"http:\/\/
www.etsy.com\/listing\/
> 61505447\/cloud-nine-supersoft-superwash-merino","tags":
> ["spinning","blue","drop","handmade","roving","superwash","spindle","merino","gray","wool","supplies"],"materials":
> ["superwash","wool"],"views":4,"creation_tsz":
> 1289496689,"state":"active","Images":[],"Shop":{"shop_id":
> 5320020,"shop_name":"stseraphinaknits"}}],"params":
> {"limit":"1","offset":"400","keywords":"merino","sort_on":"created","sort_order":"down","min_price":null,"max_price":null,"color":null,"color_accuracy":
> 0,"tags":null,"materials":null,"category":null},"type":"Listing"}
>
> Call:
>
>
http://openapi.etsy.com/v2/sandbox/public/listings/active?api_key=<key>&offset=449&limit=1&fields=listing_id,title,price,currency_code,url,tags,materials,views,creation_tsz,state&includes=Images:1,Shop(shop_id,shop_name)&keywords=merino&sort_on=created&sort_order=down
>
> Resultset:
>
> {"count":21117,"results":[{"listing_id":61500119,"title":"Hand dyed
> sock yarn - Thelonious","price":18,"currency_code":"USD","url":"http:\/
> \/
www.etsy.com\/listing\/61500119\/hand-dyed-sock-yarn-
> thelonious","tags":
> ["purple","nylon","yarns","made","superwash","cakewalk","hand","sock","blue","knitting","dyed","merino","wool","yarn","walk","supplies"],"materials":
> ["nylon","superwash","merino","wool","yarn"],"views":7,"creation_tsz":
> 1289493814,"state":"active","Images":[],"Shop":[]}],"params":
> {"limit":"1","offset":"449","keywords":"merino","sort_on":"created","sort_order":"down","min_price":null,"max_price":null,"color":null,"color_accuracy":