Get Venue
curl --request GET \
--url https://api.example.com/v1/venues/{id}import requests
url = "https://api.example.com/v1/venues/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/venues/{id}', 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.example.com/v1/venues/{id}",
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.example.com/v1/venues/{id}"
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.example.com/v1/venues/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/venues/{id}")
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_bodyVenues
Get Venue
GET /v1/venues/:id — Get a specific venue by ID
GET
/
v1
/
venues
/
{id}
Get Venue
curl --request GET \
--url https://api.example.com/v1/venues/{id}import requests
url = "https://api.example.com/v1/venues/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/venues/{id}', 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.example.com/v1/venues/{id}",
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.example.com/v1/venues/{id}"
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.example.com/v1/venues/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/venues/{id}")
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_bodyEndpoint:
GET https://api.rebelfi.io/v1/venues/:idPath Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Venue ID |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
supportsGasSponsorship | boolean | No | When true, only returns strategies compatible with gas-sponsored wallets |
Example Request
curl -X GET "https://api.rebelfi.io/v1/venues/1" \
-H "x-api-key: your_api_key"
const venue = await client.venues.get(1);
Example Response
{
"id": 3,
"name": "AAVE V3",
"protocol": "aave-v3",
"blockchain": "ethereum",
"iconUrl": "https://cdn.rebelfi.io/venues/aave.svg",
"status": "active",
"strategies": [
{
"strategyId": 5,
"name": "USDC Lending",
"token": "USDC",
"tokenAddress": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"apy": 0.052,
"tvl": "2500000000000000",
"minDeposit": "1000000",
"maxDeposit": null,
"status": "active",
"supportsGasSponsorship": false
}
]
}
Errors
| Code | Description |
|---|---|
VENUE_NOT_FOUND | Venue with given ID doesn’t exist |
⌘I