Auctions
Get watch count for an auction
Get the total number of watchers for an auction’s product
GET
/
alpha
/
public
/
auctions
/
{slug}
/
watches
Get watch count for an auction
curl --request GET \
--url https://api.auctionnow.io/api/alpha/public/auctions/{slug}/watchesimport requests
url = "https://api.auctionnow.io/api/alpha/public/auctions/{slug}/watches"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.auctionnow.io/api/alpha/public/auctions/{slug}/watches', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.auctionnow.io/api/alpha/public/auctions/{slug}/watches",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.auctionnow.io/api/alpha/public/auctions/{slug}/watches"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.auctionnow.io/api/alpha/public/auctions/{slug}/watches")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.auctionnow.io/api/alpha/public/auctions/{slug}/watches")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"totalWatchers": 123
},
"timestamp": 123,
"message": "<string>"
}{
"message": "<string>",
"error": "<string>"
}{
"error": "<string>",
"reason": "<string>"
}{
"error": "<string>"
}Previous
List merchant's active auctionsGet all active auctions for a merchant by their handle. Only returns auctions that have not ended.
Next
⌘I
Get watch count for an auction
curl --request GET \
--url https://api.auctionnow.io/api/alpha/public/auctions/{slug}/watchesimport requests
url = "https://api.auctionnow.io/api/alpha/public/auctions/{slug}/watches"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.auctionnow.io/api/alpha/public/auctions/{slug}/watches', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.auctionnow.io/api/alpha/public/auctions/{slug}/watches",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.auctionnow.io/api/alpha/public/auctions/{slug}/watches"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.auctionnow.io/api/alpha/public/auctions/{slug}/watches")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.auctionnow.io/api/alpha/public/auctions/{slug}/watches")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"totalWatchers": 123
},
"timestamp": 123,
"message": "<string>"
}{
"message": "<string>",
"error": "<string>"
}{
"error": "<string>",
"reason": "<string>"
}{
"error": "<string>"
}