⚡ Neptun Monitors API
Adds a PID to the custom PID list of your cookgroup for the specified site.
HMAC-based authentication using three headers:
-
X-API-Key: public API key of the cookgroup. -
X-Timestamp: UNIX timestamp in seconds used in the signature. -
X-Signature: base64-encoded HMAC-SHA256 of the string, signed with the API secret:METHOD + PATH + X-Timestamp
For example:
stringToSign = "POST" + "/v1/public/products/add" + "1764609321"
stringToSign = "GET" + "/v1/public/pings/ws" + "1764609321"
API key and secret can be found in your dashboard.
Product PID to add.
7149445Site identifier (e.g. "argos").
argosProduct successfully added.
Bad request.
Authentication failed (missing or invalid auth headers/signature).
Internal server error.
List the Custom PIDs and Blacklist PIDs of your cookgroup for the specified site.
HMAC-based authentication using three headers:
-
X-API-Key: public API key of the cookgroup. -
X-Timestamp: UNIX timestamp in seconds used in the signature. -
X-Signature: base64-encoded HMAC-SHA256 of the string, signed with the API secret:METHOD + PATH + X-Timestamp
For example:
stringToSign = "POST" + "/v1/public/products/add" + "1764609321"
stringToSign = "GET" + "/v1/public/pings/ws" + "1764609321"
API key and secret can be found in your dashboard.
adidasProducts successfully listed.
Bad request.
Authentication failed (missing or invalid auth headers/signature).
Internal server error.
Upgrades the connection to a WebSocket used to receive product pings for your cookgroup.
After the WebSocket is established, the client will receive the list of sites he have the access to with this format:
Example:
{
"sites": [
{
"id": "www.asphaltgold.com",
"name": "Asphaltgold",
"regions": ""
},
{
"id": "amazon",
"name": "Amazon",
"regions": "FR,BE,DE,ES,IT,NL,UK,US,SE,JP"
},
{
"id": "micromania",
"name": "Micromania",
"regions": ""
}
]
}Then, the client MUST send a subscribe payload:
Example for subscribing to snipes and footlocker for UK and FR only:
Example for subscribing to all regions:
Example for subscribing to all sites and all regions:
Please note, using the region parameter, it will only filter out multiple regions websites like amazon. For example, if you have the alternative package and put "IT" only in the regions, it will not filter out micromania, but you will receive pings from Amazon IT region only.
Format of the pings you will receive:
Product ping payload pushed over the WebSocket.
Unique identifier for the product
URL with our redirect, prefer this option.
If present, indicates the stock for the corresponding index in the "sizes" field.
If present, indicates the total stock of the product.
Region of the monitor (lowercase).
Site ID used for filtering.
The ProductPing object
Example:
Other example:
HMAC-based authentication using three headers:
-
X-API-Key: public API key of the cookgroup. -
X-Timestamp: UNIX timestamp in seconds used in the signature. -
X-Signature: base64-encoded HMAC-SHA256 of the string, signed with the API secret:METHOD + PATH + X-Timestamp
For example:
stringToSign = "POST" + "/v1/public/products/add" + "1764609321"
stringToSign = "GET" + "/v1/public/pings/ws" + "1764609321"
API key and secret can be found in your dashboard.
WebSocket protocol upgrade successful.
Bad request.
Authentication failed (missing or invalid auth headers/signature).
Internal server error while upgrading to WebSocket.
No content
Last updated