Skip to main content
GET
/
assets
/
inscriptions
/
{inscription_id}
/
collection
Collection Metadata by Inscription
curl --request GET \
  --url https://xbt-mainnet.gomaestro-api.org/v0/assets/inscriptions/{inscription_id}/collection \
  --header 'api-key: <api-key>'
import requests

url = "https://xbt-mainnet.gomaestro-api.org/v0/assets/inscriptions/{inscription_id}/collection"

headers = {"api-key": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {'api-key': '<api-key>'}};

fetch('https://xbt-mainnet.gomaestro-api.org/v0/assets/inscriptions/{inscription_id}/collection', 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://xbt-mainnet.gomaestro-api.org/v0/assets/inscriptions/{inscription_id}/collection",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"api-key: <api-key>"
],
]);

$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://xbt-mainnet.gomaestro-api.org/v0/assets/inscriptions/{inscription_id}/collection"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("api-key", "<api-key>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://xbt-mainnet.gomaestro-api.org/v0/assets/inscriptions/{inscription_id}/collection")
.header("api-key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://xbt-mainnet.gomaestro-api.org/v0/assets/inscriptions/{inscription_id}/collection")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["api-key"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "data": {
    "chain": "btc",
    "createdAt": "Fri, 26 May 2023 04:23:17 GMT",
    "description": "Ordinal #99999 has 50 alien friends. Would you like to join his Action Alien Club?",
    "discordLink": "",
    "imageURI": "https://bafkreihillpn43rubd2wffzot5ccungccpen6btcofn2kylutexkpkaymq.ipfs.nftstorage.link/",
    "inscriptionIcon": "46b576bc669c03227f273103654c46fa9b516374ed6a2b8d03cc786e95fd50f3i0",
    "labels": [],
    "max_inscription_number": "114274",
    "min_inscription_number": "90551",
    "name": "99999 Action Alien Club",
    "supply": 50,
    "symbol": "aaclub",
    "twitterLink": "http://www.twitter.com/oxfordyazuka",
    "websiteLink": ""
  },
  "last_updated": {
    "block_hash": "00000000000000000001998e2059bcbb25f76fd0ef39db8ddfc5c31c5ea95f1f",
    "block_height": 876644
  }
}

Authorizations

api-key
string
header
required

Project API Key

Path Parameters

inscription_id
string
required

Inscription ID

Response

Requested data

data
object
required
last_updated
object
required