List IP Asset Edges
curl --request POST \
--url https://api.storyapis.com/api/v4/assets/edges \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"orderBy": "blockNumber",
"orderDirection": "desc",
"pagination": {
"limit": 20,
"offset": 0
},
"where": {
"blockNumber": 1,
"childIpId": "<string>",
"parentIpId": "<string>",
"txHash": "<string>"
}
}
'import requests
url = "https://api.storyapis.com/api/v4/assets/edges"
payload = {
"orderBy": "blockNumber",
"orderDirection": "desc",
"pagination": {
"limit": 20,
"offset": 0
},
"where": {
"blockNumber": 1,
"childIpId": "<string>",
"parentIpId": "<string>",
"txHash": "<string>"
}
}
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
orderBy: 'blockNumber',
orderDirection: 'desc',
pagination: {limit: 20, offset: 0},
where: {
blockNumber: 1,
childIpId: '<string>',
parentIpId: '<string>',
txHash: '<string>'
}
})
};
fetch('https://api.storyapis.com/api/v4/assets/edges', 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.storyapis.com/api/v4/assets/edges",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'orderBy' => 'blockNumber',
'orderDirection' => 'desc',
'pagination' => [
'limit' => 20,
'offset' => 0
],
'where' => [
'blockNumber' => 1,
'childIpId' => '<string>',
'parentIpId' => '<string>',
'txHash' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.storyapis.com/api/v4/assets/edges"
payload := strings.NewReader("{\n \"orderBy\": \"blockNumber\",\n \"orderDirection\": \"desc\",\n \"pagination\": {\n \"limit\": 20,\n \"offset\": 0\n },\n \"where\": {\n \"blockNumber\": 1,\n \"childIpId\": \"<string>\",\n \"parentIpId\": \"<string>\",\n \"txHash\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.storyapis.com/api/v4/assets/edges")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"orderBy\": \"blockNumber\",\n \"orderDirection\": \"desc\",\n \"pagination\": {\n \"limit\": 20,\n \"offset\": 0\n },\n \"where\": {\n \"blockNumber\": 1,\n \"childIpId\": \"<string>\",\n \"parentIpId\": \"<string>\",\n \"txHash\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.storyapis.com/api/v4/assets/edges")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"orderBy\": \"blockNumber\",\n \"orderDirection\": \"desc\",\n \"pagination\": {\n \"limit\": 20,\n \"offset\": 0\n },\n \"where\": {\n \"blockNumber\": 1,\n \"childIpId\": \"<string>\",\n \"parentIpId\": \"<string>\",\n \"txHash\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"blockNumber": 123,
"blockTimestamp": "2023-11-07T05:31:56Z",
"caller": "<string>",
"childIpId": "<string>",
"id": 123,
"licenseTemplate": "<string>",
"licenseTermsId": "<string>",
"licenseTokenId": "<string>",
"logIndex": 123,
"parentIpId": "<string>",
"processedAt": "2023-11-07T05:31:56Z",
"txHash": "<string>"
}
],
"$schema": "<string>",
"pagination": {
"hasMore": true,
"limit": 123,
"offset": 123,
"total": 123
}
}{
"$schema": "<string>",
"detail": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "about:blank"
}Endpoints
List IP Asset Edges
Retrieve a list of edges (derivative registered events) that represent relationships between IP assets. These edges show parent-child relationships formed through licensing.
POST
/
assets
/
edges
List IP Asset Edges
curl --request POST \
--url https://api.storyapis.com/api/v4/assets/edges \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"orderBy": "blockNumber",
"orderDirection": "desc",
"pagination": {
"limit": 20,
"offset": 0
},
"where": {
"blockNumber": 1,
"childIpId": "<string>",
"parentIpId": "<string>",
"txHash": "<string>"
}
}
'import requests
url = "https://api.storyapis.com/api/v4/assets/edges"
payload = {
"orderBy": "blockNumber",
"orderDirection": "desc",
"pagination": {
"limit": 20,
"offset": 0
},
"where": {
"blockNumber": 1,
"childIpId": "<string>",
"parentIpId": "<string>",
"txHash": "<string>"
}
}
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
orderBy: 'blockNumber',
orderDirection: 'desc',
pagination: {limit: 20, offset: 0},
where: {
blockNumber: 1,
childIpId: '<string>',
parentIpId: '<string>',
txHash: '<string>'
}
})
};
fetch('https://api.storyapis.com/api/v4/assets/edges', 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.storyapis.com/api/v4/assets/edges",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'orderBy' => 'blockNumber',
'orderDirection' => 'desc',
'pagination' => [
'limit' => 20,
'offset' => 0
],
'where' => [
'blockNumber' => 1,
'childIpId' => '<string>',
'parentIpId' => '<string>',
'txHash' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.storyapis.com/api/v4/assets/edges"
payload := strings.NewReader("{\n \"orderBy\": \"blockNumber\",\n \"orderDirection\": \"desc\",\n \"pagination\": {\n \"limit\": 20,\n \"offset\": 0\n },\n \"where\": {\n \"blockNumber\": 1,\n \"childIpId\": \"<string>\",\n \"parentIpId\": \"<string>\",\n \"txHash\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.storyapis.com/api/v4/assets/edges")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"orderBy\": \"blockNumber\",\n \"orderDirection\": \"desc\",\n \"pagination\": {\n \"limit\": 20,\n \"offset\": 0\n },\n \"where\": {\n \"blockNumber\": 1,\n \"childIpId\": \"<string>\",\n \"parentIpId\": \"<string>\",\n \"txHash\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.storyapis.com/api/v4/assets/edges")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"orderBy\": \"blockNumber\",\n \"orderDirection\": \"desc\",\n \"pagination\": {\n \"limit\": 20,\n \"offset\": 0\n },\n \"where\": {\n \"blockNumber\": 1,\n \"childIpId\": \"<string>\",\n \"parentIpId\": \"<string>\",\n \"txHash\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"blockNumber": 123,
"blockTimestamp": "2023-11-07T05:31:56Z",
"caller": "<string>",
"childIpId": "<string>",
"id": 123,
"licenseTemplate": "<string>",
"licenseTermsId": "<string>",
"licenseTokenId": "<string>",
"logIndex": 123,
"parentIpId": "<string>",
"processedAt": "2023-11-07T05:31:56Z",
"txHash": "<string>"
}
],
"$schema": "<string>",
"pagination": {
"hasMore": true,
"limit": 123,
"offset": 123,
"total": 123
}
}{
"$schema": "<string>",
"detail": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "about:blank"
}Authorizations
Body
application/json
Field to order results by (currently only blockNumber is supported)
Available options:
blockNumber Order direction for results
Available options:
asc, desc Pagination configuration
Show child attributes
Show child attributes
Filter options for edges
Show child attributes
Show child attributes
⌘I