GET Auction
curl --request GET \
--url https://api.bitski.com/v1/auctions/{auctionId}import requests
url = "https://api.bitski.com/v1/auctions/{auctionId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.bitski.com/v1/auctions/{auctionId}', 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.bitski.com/v1/auctions/{auctionId}",
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.bitski.com/v1/auctions/{auctionId}"
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.bitski.com/v1/auctions/{auctionId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bitski.com/v1/auctions/{auctionId}")
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{
"auction": {
"auctionContractAddress": "0xa4ef984773fd233c4cbed9cb1b905a3fa21e9461",
"auctionStandard": "NON_FUNGIBLE_AUCTION",
"automaticSettlement": true,
"bids": [
{
"amount": "0x105b73c286c329a1",
"auctionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"bidder": "22e693e7-befc-4c6f-a135-5f0029c556c2",
"createdAt": "2023-04-20T01:19:15.884Z",
"currency": "0xa4ef984773fd233c4cbed9cb1b905a3fa21e9461",
"transactionHash": "0x76cbbfd0fa31059647017c28a0f855b6494b995ac77e1228064ba47debf0bb34",
"username": "nft_fan"
}
],
"ended": true,
"externalId": null,
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"network": "mainnet",
"tokenContractAddress": "0x0C3b9C785723B79Cf8D61a4A71E0ab5A00584772",
"tokenId": "0x1",
"tokenMetadata": {
"animation_url": null,
"attributes": null,
"background_color": null,
"description": "A very special NFT",
"external_url": "https://www.bitski.com/@Stapleverse",
"image": "https://cdn.bitskistatic.com/tokens-raw/54676382-bab5-408d-afe2-fc6f160da4a8/06fd0294-a425-44c7-96e8-9d24757163b4.png",
"name": "NFT Token #1",
"properties": {},
"youtube_url": null
}
}
}
Commerce APIs
GET Auction
Get details about an auction.
GET
/
v1
/
auctions
/
{auctionId}
GET Auction
curl --request GET \
--url https://api.bitski.com/v1/auctions/{auctionId}import requests
url = "https://api.bitski.com/v1/auctions/{auctionId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.bitski.com/v1/auctions/{auctionId}', 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.bitski.com/v1/auctions/{auctionId}",
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.bitski.com/v1/auctions/{auctionId}"
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.bitski.com/v1/auctions/{auctionId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bitski.com/v1/auctions/{auctionId}")
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{
"auction": {
"auctionContractAddress": "0xa4ef984773fd233c4cbed9cb1b905a3fa21e9461",
"auctionStandard": "NON_FUNGIBLE_AUCTION",
"automaticSettlement": true,
"bids": [
{
"amount": "0x105b73c286c329a1",
"auctionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"bidder": "22e693e7-befc-4c6f-a135-5f0029c556c2",
"createdAt": "2023-04-20T01:19:15.884Z",
"currency": "0xa4ef984773fd233c4cbed9cb1b905a3fa21e9461",
"transactionHash": "0x76cbbfd0fa31059647017c28a0f855b6494b995ac77e1228064ba47debf0bb34",
"username": "nft_fan"
}
],
"ended": true,
"externalId": null,
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"network": "mainnet",
"tokenContractAddress": "0x0C3b9C785723B79Cf8D61a4A71E0ab5A00584772",
"tokenId": "0x1",
"tokenMetadata": {
"animation_url": null,
"attributes": null,
"background_color": null,
"description": "A very special NFT",
"external_url": "https://www.bitski.com/@Stapleverse",
"image": "https://cdn.bitskistatic.com/tokens-raw/54676382-bab5-408d-afe2-fc6f160da4a8/06fd0294-a425-44c7-96e8-9d24757163b4.png",
"name": "NFT Token #1",
"properties": {},
"youtube_url": null
}
}
}
Path
The auction id
Examples
Response
Show child attributes
Show child attributes
{
"auction": {
"auctionContractAddress": "0xa4ef984773fd233c4cbed9cb1b905a3fa21e9461",
"auctionStandard": "NON_FUNGIBLE_AUCTION",
"automaticSettlement": true,
"bids": [
{
"amount": "0x105b73c286c329a1",
"auctionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"bidder": "22e693e7-befc-4c6f-a135-5f0029c556c2",
"createdAt": "2023-04-20T01:19:15.884Z",
"currency": "0xa4ef984773fd233c4cbed9cb1b905a3fa21e9461",
"transactionHash": "0x76cbbfd0fa31059647017c28a0f855b6494b995ac77e1228064ba47debf0bb34",
"username": "nft_fan"
}
],
"ended": true,
"externalId": null,
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"network": "mainnet",
"tokenContractAddress": "0x0C3b9C785723B79Cf8D61a4A71E0ab5A00584772",
"tokenId": "0x1",
"tokenMetadata": {
"animation_url": null,
"attributes": null,
"background_color": null,
"description": "A very special NFT",
"external_url": "https://www.bitski.com/@Stapleverse",
"image": "https://cdn.bitskistatic.com/tokens-raw/54676382-bab5-408d-afe2-fc6f160da4a8/06fd0294-a425-44c7-96e8-9d24757163b4.png",
"name": "NFT Token #1",
"properties": {},
"youtube_url": null
}
}
}
⌘I