Get Induced Subgraph
curl --request POST \
--url https://api.range.org/v2/connections/subgraph \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"addresses": [
{
"address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"network": "solana"
}
],
"start_time": "<string>",
"end_time": "<string>"
}
'import requests
url = "https://api.range.org/v2/connections/subgraph"
payload = {
"addresses": [
{
"address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"network": "solana"
}
],
"start_time": "<string>",
"end_time": "<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({
addresses: [{address: '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045', network: 'solana'}],
start_time: '<string>',
end_time: '<string>'
})
};
fetch('https://api.range.org/v2/connections/subgraph', 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.range.org/v2/connections/subgraph",
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([
'addresses' => [
[
'address' => '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045',
'network' => 'solana'
]
],
'start_time' => '<string>',
'end_time' => '<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.range.org/v2/connections/subgraph"
payload := strings.NewReader("{\n \"addresses\": [\n {\n \"address\": \"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045\",\n \"network\": \"solana\"\n }\n ],\n \"start_time\": \"<string>\",\n \"end_time\": \"<string>\"\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.range.org/v2/connections/subgraph")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"addresses\": [\n {\n \"address\": \"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045\",\n \"network\": \"solana\"\n }\n ],\n \"start_time\": \"<string>\",\n \"end_time\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.range.org/v2/connections/subgraph")
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 \"addresses\": [\n {\n \"address\": \"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045\",\n \"network\": \"solana\"\n }\n ],\n \"start_time\": \"<string>\",\n \"end_time\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"items": [
{
"address": {
"address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"network": "solana"
},
"counterparty": {
"address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"network": "solana"
},
"total_payments": 12,
"payment_counts": [
{}
],
"earliest_payment": "2024-01-01T00:00:00.000Z",
"latest_payment": "2024-02-01T00:00:00.000Z",
"is_sender": true,
"is_receiver": true,
"total_payments_may_be_incomplete": true
}
],
"meta": {
"failed_nodes": 0
}
}Addresses & Entities
Get Induced Subgraph
Given a set of addresses (e.g. every node currently on a Trail canvas), returns only the edges that exist between addresses in that set — the sibling-to-sibling connections that byAddress cannot express because it only sees one root address at a time.
POST
/
v2
/
connections
/
subgraph
Get Induced Subgraph
curl --request POST \
--url https://api.range.org/v2/connections/subgraph \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"addresses": [
{
"address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"network": "solana"
}
],
"start_time": "<string>",
"end_time": "<string>"
}
'import requests
url = "https://api.range.org/v2/connections/subgraph"
payload = {
"addresses": [
{
"address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"network": "solana"
}
],
"start_time": "<string>",
"end_time": "<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({
addresses: [{address: '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045', network: 'solana'}],
start_time: '<string>',
end_time: '<string>'
})
};
fetch('https://api.range.org/v2/connections/subgraph', 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.range.org/v2/connections/subgraph",
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([
'addresses' => [
[
'address' => '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045',
'network' => 'solana'
]
],
'start_time' => '<string>',
'end_time' => '<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.range.org/v2/connections/subgraph"
payload := strings.NewReader("{\n \"addresses\": [\n {\n \"address\": \"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045\",\n \"network\": \"solana\"\n }\n ],\n \"start_time\": \"<string>\",\n \"end_time\": \"<string>\"\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.range.org/v2/connections/subgraph")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"addresses\": [\n {\n \"address\": \"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045\",\n \"network\": \"solana\"\n }\n ],\n \"start_time\": \"<string>\",\n \"end_time\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.range.org/v2/connections/subgraph")
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 \"addresses\": [\n {\n \"address\": \"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045\",\n \"network\": \"solana\"\n }\n ],\n \"start_time\": \"<string>\",\n \"end_time\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"items": [
{
"address": {
"address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"network": "solana"
},
"counterparty": {
"address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"network": "solana"
},
"total_payments": 12,
"payment_counts": [
{}
],
"earliest_payment": "2024-01-01T00:00:00.000Z",
"latest_payment": "2024-02-01T00:00:00.000Z",
"is_sender": true,
"is_receiver": true,
"total_payments_may_be_incomplete": true
}
],
"meta": {
"failed_nodes": 0
}
}Authorizations
Authorization method required to allow user to access the api endpoints.
Body
application/json
Last modified on August 26, 2026
Was this page helpful?
⌘I