Skip to content

Commit 0da0425

Browse files
committed
cat activty fix
1 parent baa08fb commit 0da0425

File tree

2 files changed

+72
-10
lines changed

2 files changed

+72
-10
lines changed

api/cat/activity.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ GET https://api-testnet11.spacescan.io/token/activity
3333

3434
| Parameter | Type | Required | Default | Description |
3535
|-----------|--------|----------|---------|-------------|
36-
| cat_id | string | No | - | Filter activities by CAT asset ID |
36+
| asset_id | string | No | - | Filter activities by CAT asset ID |
3737
| type | string | No | transfer| Activity type (transfer/mint/burn/melt) |
3838
| count | number | No | 100 | Number of records to return (max: 100) |
3939
| page | number | No | 1 | Page number for pagination |
@@ -46,7 +46,7 @@ Use `api.spacescan.io` for free tier access. See our [API Plans](https://spacesc
4646
Use `pro-api.spacescan.io` with your API key in the `x-api-key` header. See our [API Plans](https://spacescan.io/apis#plans) for details.
4747

4848
```bash
49-
curl -X GET "https://pro-api.spacescan.io/token/activity?cat_id=YOUR_CAT_ID&type=transfer" \
49+
curl -X GET "https://pro-api.spacescan.io/token/activity?asset_id=YOUR_asset_id&type=transfer" \
5050
-H "x-api-key: YOUR_API_KEY"
5151
```
5252
:::
@@ -55,12 +55,12 @@ curl -X GET "https://pro-api.spacescan.io/token/activity?cat_id=YOUR_CAT_ID&type
5555

5656
<Tabs>
5757
<TabItem value="mainnet" label="Mainnet">
58-
<a href="https://api.spacescan.io/token/activity?cat_id=8c77de1427156b98fb15cce77d908f79bd69f6b4b8e3a60d8e051dac481b5365&type=transfer" target="_blank" rel="noopener noreferrer" className="api-test-button">
58+
<a href="https://api.spacescan.io/token/activity?asset_id=8c77de1427156b98fb15cce77d908f79bd69f6b4b8e3a60d8e051dac481b5365&type=transfer" target="_blank" rel="noopener noreferrer" className="api-test-button">
5959
🚀 Test API in Browser
6060
</a>
6161
</TabItem>
6262
<TabItem value="testnet" label="Testnet">
63-
<a href="https://api-testnet11.spacescan.io/token/activity?cat_id=8c77de1427156b98fb15cce77d908f79bd69f6b4b8e3a60d8e051dac481b5365&type=transfer" target="_blank" rel="noopener noreferrer" className="api-test-button">
63+
<a href="https://api-testnet11.spacescan.io/token/activity?asset_id=8c77de1427156b98fb15cce77d908f79bd69f6b4b8e3a60d8e051dac481b5365&type=transfer" target="_blank" rel="noopener noreferrer" className="api-test-button">
6464
🚀 Test API in Browser
6565
</a>
6666
</TabItem>
@@ -73,12 +73,12 @@ curl -X GET "https://pro-api.spacescan.io/token/activity?cat_id=YOUR_CAT_ID&type
7373
<Tabs>
7474
<TabItem value="mainnet" label="Mainnet">
7575
<CodeBlock language="bash">
76-
curl -X GET "https://api.spacescan.io/token/activity?cat_id=8c77de1427156b98fb15cce77d908f79bd69f6b4b8e3a60d8e051dac481b5365&type=transfer&count=10&page=1"
76+
curl -X GET "https://api.spacescan.io/token/activity?asset_id=8c77de1427156b98fb15cce77d908f79bd69f6b4b8e3a60d8e051dac481b5365&type=transfer&count=10&page=1"
7777
</CodeBlock>
7878
</TabItem>
7979
<TabItem value="testnet" label="Testnet">
8080
<CodeBlock language="bash">
81-
curl -X GET "https://api-testnet11.spacescan.io/token/activity?cat_id=8c77de1427156b98fb15cce77d908f79bd69f6b4b8e3a60d8e051dac481b5365&type=transfer&count=10&page=1"
81+
curl -X GET "https://api-testnet11.spacescan.io/token/activity?asset_id=8c77de1427156b98fb15cce77d908f79bd69f6b4b8e3a60d8e051dac481b5365&type=transfer&count=10&page=1"
8282
</CodeBlock>
8383
</TabItem>
8484
</Tabs>
@@ -90,7 +90,7 @@ curl -X GET "https://pro-api.spacescan.io/token/activity?cat_id=YOUR_CAT_ID&type
9090
import requests
9191

9292
params = &#123;
93-
"cat_id": "8c77de1427156b98fb15cce77d908f79bd69f6b4b8e3a60d8e051dac481b5365",
93+
"asset_id": "8c77de1427156b98fb15cce77d908f79bd69f6b4b8e3a60d8e051dac481b5365",
9494
"type": "transfer",
9595
"count": 10,
9696
"page": 1
@@ -107,7 +107,7 @@ curl -X GET "https://pro-api.spacescan.io/token/activity?cat_id=YOUR_CAT_ID&type
107107
import requests
108108

109109
params = &#123;
110-
"cat_id": "8c77de1427156b98fb15cce77d908f79bd69f6b4b8e3a60d8e051dac481b5365",
110+
"asset_id": "8c77de1427156b98fb15cce77d908f79bd69f6b4b8e3a60d8e051dac481b5365",
111111
"type": "transfer",
112112
"count": 10,
113113
"page": 1
@@ -126,7 +126,7 @@ curl -X GET "https://pro-api.spacescan.io/token/activity?cat_id=YOUR_CAT_ID&type
126126
<TabItem value="mainnet" label="Mainnet">
127127
<CodeBlock language="javascript">
128128
const params = new URLSearchParams( &#123;
129-
cat_id: "8c77de1427156b98fb15cce77d908f79bd69f6b4b8e3a60d8e051dac481b5365",
129+
asset_id: "8c77de1427156b98fb15cce77d908f79bd69f6b4b8e3a60d8e051dac481b5365",
130130
type: "transfer",
131131
count: 10,
132132
page: 1
@@ -143,7 +143,7 @@ curl -X GET "https://pro-api.spacescan.io/token/activity?cat_id=YOUR_CAT_ID&type
143143
<TabItem value="testnet" label="Testnet">
144144
<CodeBlock language="javascript">
145145
const params = new URLSearchParams( &#123;
146-
cat_id: "8c77de1427156b98fb15cce77d908f79bd69f6b4b8e3a60d8e051dac481b5365",
146+
asset_id: "8c77de1427156b98fb15cce77d908f79bd69f6b4b8e3a60d8e051dac481b5365",
147147
type: "transfer",
148148
count: 10,
149149
page: 1

api/nft/license.md

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
---
2+
sidebar_position: 6
3+
---
4+
import Tabs from '@theme/Tabs';
5+
import TabItem from '@theme/TabItem';
6+
import CodeBlock from '@theme/CodeBlock';
7+
import ApiCallExample from '@site/src/components/ApiCallExample';
8+
9+
# Get NFT License
10+
11+
This endpoint allows you to fetch the license information/document associated with a specific NFT.
12+
13+
### Endpoint
14+
15+
<Tabs>
16+
<TabItem value="mainnet" label="Mainnet">
17+
18+
```bash
19+
GET https://api.spacescan.io/nfts/{nft_id}/license
20+
```
21+
22+
</TabItem>
23+
<TabItem value="testnet" label="Testnet">
24+
25+
```bash
26+
GET https://api-testnet.spacescan.io/nfts/{nft_id}/license
27+
```
28+
29+
</TabItem>
30+
</Tabs>
31+
32+
### Path Parameters
33+
34+
| Parameter | Type | Description |
35+
|-----------|------|-------------|
36+
| nft_id | string | The unique identifier of the NFT |
37+
38+
### Response Headers
39+
40+
| Header | Description |
41+
|--------|-------------|
42+
| Content-Type | The MIME type of the license document (e.g., `application/pdf`, `text/plain`) |
43+
| Content-Length | Size of the response in bytes |
44+
| Cache-Control | Caching directives for the response |
45+
46+
### Error Responses
47+
48+
| HTTP Status Code | Meaning |
49+
|-----------------|---------|
50+
| 400 | Bad Request -- Your request is invalid |
51+
| 404 | Not Found -- The specified NFT or its license could not be found |
52+
| 429 | Too Many Requests -- You're requesting too many times |
53+
| 500 | Internal Server Error -- We had a problem with our server |
54+
| 503 | Service Unavailable -- We're temporarily offline for maintenance |
55+
56+
### Notes
57+
58+
- The response is the raw license document data
59+
- No JSON wrapping is applied to the response
60+
- Content-Type header indicates the format of the returned license document
61+
- Common license formats include PDF and plain text
62+
- Consider implementing appropriate timeout handling in your client

0 commit comments

Comments
 (0)