596 Service Not Found Error

1,160 views
Skip to first unread message

HAN

unread,
Jul 16, 2010, 1:46:31 AM7/16/10
to Etsy API V2
Hi,

After I changed "user name" and "API Key", I tried for simple request
like this:

<?

$url = "http://openapi.etsy.com/v2/users/testusername?
api_key=your_api_key";
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response_body = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
if (intval($status) != 200) die("Error: $response_body");

$response = json_decode($response_body);
$user = $response->results[0];
print $user->user_name."'s profile URL is: ".$user->url."\n";

?>

But i got error message as "596 Service Not Found". So May I know what
is wrong?

Regards,
HAN






John Goulah

unread,
Jul 16, 2010, 8:59:31 AM7/16/10
to etsy-...@googlegroups.com
As responded off-list please use "v2/public/users/..."

Justin Kerr Sheckler

unread,
Jul 16, 2010, 10:42:48 AM7/16/10
to etsy-...@googlegroups.com
I think you're probably using your sandbox API key? In which case you need:

http://openapi.etsy.com/v2/sandbox/users/testusername

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

Justin Kerr Sheckler

unread,
Jul 16, 2010, 11:06:17 AM7/16/10
to etsy-...@googlegroups.com

HAN

unread,
Jul 19, 2010, 4:35:12 AM7/19/10
to Etsy API V2
Hi John,

I used like "v2/public/users/.." but I got another error as "403
Developer Inactive"
Actually, i used correct API key which generated from Etsy system.

Regards,
HAN

On Jul 16, 8:59 pm, John Goulah <jgou...@etsy.com> wrote:
> As responded off-list please use "v2/public/users/..."
>

HAN

unread,
Jul 19, 2010, 5:03:42 AM7/19/10
to Etsy API V2
Hi Justin,

Yes, it is working. it need "sandbox". Can I check you another issue
for sale transaction count.
When I used like this: http://openapi.etsy.com/v2/sandbox/public/users/testusername
i saw the "count" value in returns value but it is not correct because
I was checked at seller page.
I think that I can check sales count under "Other Items" at seller
page from http://www.etsy.com/shop/xxxxxxx
May I know what wrong on it?

Regards,
HAN


On Jul 16, 11:06 pm, Justin Kerr Sheckler <jus...@etsy.com> wrote:
> Sorry, typo.  That should be:
>
> http://openapi.etsy.com/v2/sandbox/public/users/testusername
>
> On Fri, Jul 16, 2010 at 10:42 AM, Justin Kerr Sheckler <jus...@etsy.com> wrote:
>
>
>
> > I think you're probably using your sandbox API key?  In which case you need:
>
> >http://openapi.etsy.com/v2/sandbox/users/testusername
>
> > On Fri, Jul 16, 2010 at 8:59 AM, John Goulah <jgou...@etsy.com> wrote:
> >> As responded off-list please use "v2/public/users/..."
>

Aaron Gardner

unread,
Jul 21, 2010, 4:01:53 PM7/21/10
to etsy-...@googlegroups.com
Han,

If you are looking to get the number of active listings for a
particular Shop (which is displayed on Etsy.com in the "Other Items"
box, as you mentioned) then you want to use the "listing_active_count"
field in the Shop resource, which is documented here:

http://developer.etsy.com/docs/resources#shop

An example API call to get this data for a particular shop is:

http://openapi.etsy.com/v2/public/shops/hmvintageclothing?api_key=[YOUR_KEY_HERE]

The "count" field at the top of all API responses is not what you want
because it is not for specific shops or listings, rather it is a
general result set count, which is documented here:

http://developer.etsy.com/docs/Home#standard_response_format

I hope this answers your question. If I misunderstood what kind of
data you are trying to get, just let me know and provide some more
example API URLs and responses and I'll try to help.

Thanks,
Aaron Gardner
Developer API Team
Etsy.com
agar...@etsy.com

Reply all
Reply to author
Forward
0 new messages