findAllListingActive returning no Shop association

27 views
Skip to first unread message

GraGra33

unread,
Feb 1, 2011, 4:32:33 PM2/1/11
to Etsy API V2
I'm seeing some "active" Listings returned with no associated Shop
resource for findAllListingActive. Are these listings for closed
Shops? Should we be seeing Listings with no Shop resource association
for findAllListingActive method?

Here is an example:

Call:

http://openapi.etsy.com/v2/public/listings/active?api_key=<key>&offset=0&limit=24&fields=listing_id,state&includes=Shop(shop_id)&materials=22k
vermeil beads&sort_on=created&sort_order=down

Results:

{"count":2,"results":[{"listing_id":
7289915,"state":"active","Shop":null},{"listing_id":
41288011,"state":"active","Shop":{"shop_id":5151268}}],"params":
{"limit":"24","offset":"0","keywords":null,"sort_on":"created","sort_order":"down","min_price":null,"max_price":null,"color":null,"color_accuracy":
0,"tags":null,"materials":"22k vermeil
beads","category":null,"location":null,"lat":null,"lon":null,"geo_level":"city"},"type":"Listing"}

First record has no Shop resource association but the second does.

G.

Justin Kerr Sheckler

unread,
Feb 3, 2011, 2:29:39 PM2/3/11
to etsy-...@googlegroups.com
There's necessarily a slight lag between when a listing or a shop
changes state in the database, and when that update reaches the search
index. It looks like you're getting a search result on a listing and
shop that have been removed. That search query appears to be empty
now (implying that the removed listing was eventually removed from the
search index.)

Justin Kerr Sheckler
Developer API Lead
Etsy.com
jus...@etsy.com

> --
> You received this message because you are subscribed to the Google Groups "Etsy API V2" group.
> To post to this group, send email to etsy-...@googlegroups.com.
> To unsubscribe from this group, send email to etsy-api-v2...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/etsy-api-v2?hl=en.
>
>

GraGra33

unread,
Feb 3, 2011, 3:45:29 PM2/3/11
to Etsy API V2
I hear what you are saying. Does this mean that we should expect this
behavior?

What I find is that those listings with no Shop association returned
the URL given is invalid and Etsy throws an "Uh-Oh" page.

G.
> > beads","category":null,"location":null,"lat":null,"lon":null,"geo_level":"c ity"},"type":"Listing"}
Reply all
Reply to author
Forward
0 new messages