PriceYak API Access

The PriceYak API allows developers to automate actions on PriceYak, like listing, delisting, and modifying settings. If you need access to the PriceYak API, contact sales@priceyak.com to find out if you qualify for access.

If you already have API access, here's how you use it.

First, go to your store settings page and scroll to the bottom. Click "Generate API Key" and your API key will be displayed in the text box.

Copy your API key and Account ID before leaving this page. This key is securely hashed and stored in our database, and cannot be retrieved later. If you lose this key or accidentally expose it, click "Generate API key" and it will be revoked and a new key generated. Keep your key secret like your password!

This API key cannot be used directly. Instead, you need to exchange it for a short-lived security token, which can then be used in our API.

In order to do so, copy your key and account ID and make the following API call:

curl -H "Content-Type:application/json" -d '{"api_key": "your-api-key-here"}' "https://www.priceyak.com/v0/account/YOUR_ACCOUNT_ID/api_login"

You will get back a JSON blob which contains a "token" key. Now you can use this token to generate a secure header. Something like the following, which will return your current account settings:

curl -H "Content-Type:application/json" -H "Authorization: Bearer your-token-value-here" "https://www.priceyak.com/v0/account/YOUR_ACCOUNT_ID"

Remember, the PriceYak API is unsupported and may change at any time. The best way to figure out the current API is to use the Chrome developer tools' network tab while navigating the web interface. You can even use a conversion website to easily convert the cURL to Python, Node, or PHP code.

Note that every PriceYak store has a unique API key. So if you have three stores on your PriceYak login, you will need to generate and store three API Keys (one from each Store Settings page) to access all of your stores.

Have more questions? Submit a request

Comments

  • Avatar
    Nivglobaltrading

    simple words please: what is API number for ? why do I need it ?

Powered by Zendesk