⚡ Neptun Monitors API

Add Product

post

Adds a PID to the custom PID list of your cookgroup for the specified site.

Authorizations
X-SignaturestringRequired

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.

Body
pidstringRequired

Product PID to add.

Example: 7149445
siteIdstringRequired

Site identifier (e.g. "argos").

Example: argos
Responses
post
/v1/public/products/add

List Products

get

List the Custom PIDs and Blacklist PIDs of your cookgroup for the specified site.

Authorizations
X-SignaturestringRequired

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.

Query parameters
siteIdstringRequiredExample: adidas
Responses
get
/v1/public/products/list

WebSocket Stream

get

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:

The SitesResponse object

Attributes

The SitesResponse object

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:

The WebSocketSubscribeMessage object

Attributes
actionstring · enumRequiredPossible values:
regionsstring[] · min: 1Required

List of regions to subscribe to (or ["all"]).

sitesstring[] · min: 1Required

List of site IDs to subscribe to (or ["all"]).

The WebSocketSubscribeMessage object

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:

The ProductPing object

Attributes

Product ping payload pushed over the WebSocket.

pidstringRequired

Unique identifier for the product

namestringRequired
imageUrlstring | nullableOptional
pricestring | nullableOptional
urlstringRequired

URL with our redirect, prefer this option.

rawUrlstringRequired
sizesstring[] | nullableOptional
sizesStockstring[] | nullableOptional

If present, indicates the stock for the corresponding index in the "sizes" field.

totalStockinteger | nullableOptional

If present, indicates the total stock of the product.

offerIdstring | nullableOptional
regionstring | nullableOptional

Region of the monitor (lowercase).

websiteNamestringRequired
websiteIdstringRequired

Site ID used for filtering.

websiteUrlstringRequired

The ProductPing object

Example:

Other example:

Authorizations
X-SignaturestringRequired

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.

Responses
get
/v1/public/pings/ws

No content

Last updated