Open data

initiative

Thanks for plugging into the Celsius Community Documentation. Here you will find all the public APIs that you, and the rest of the world has access to.

Please read through the documentation to achieve the best results and speed along development.

If you experience any bugs, please email apisupport@celsius.network to notify us.

Earn

Live feed of interest earn in CEL interest ratest to understand how interest rates are calculated see here.

Base URL: https://celsius.network/api/community/earn
  • Python

    import http.client
    import mimetypes
    conn = http.client.HTTPSConnection("celsius.network")
    payload = ''
    headers = {
    'x-api-key': 'XXXXXXXXXXXXXXXX'
    }
    conn.request("GET", "/api/community/earn", payload, headers)
    res = conn.getresponse()
    data = res.read()
    print(data.decode("utf-8"))
  • PHP

    $curl = curl_init();
    
    curl_setopt_array($curl, array(
      CURLOPT_URL => "https://celsius.network/api/community/earn",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 0,
      CURLOPT_FOLLOWLOCATION => true,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => "GET",
      CURLOPT_HTTPHEADER => array(
        "x-api-key: XXXXXXXXXXXXXXXX"
      ),
    ));
    
    $response = curl_exec($curl);
    
    curl_close($curl);
    echo $response;
  • Javascript - Fetch

    var myHeaders = new Headers();
    myHeaders.append("x-api-key", "XXXXXXXXXXXXXXXX"
    
    var requestOptions = {
      method: 'GET',
      headers: myHeaders,
      redirect: 'follow'
    };
    
    fetch("https://celsius.network/api/community/earn", requestOptions)
      .then(response => response.text())
      .then(result => console.log(result))
      .catch(error => console.log('error', error));
  • JQuery - Fetch

    var settings = {
      "url": "https://celsius.network/api/community/earn",
      "method": "GET",
      "timeout": 0,
      "headers": {
        "x-api-key": "XXXXXXXXXXXXXXXX"
      },
    };
    
    $.ajax(settings).done(function (response) {
      console.log(response);
    });
  • Node.js - Request

    var request = require('request');
    var options = {
      'method': 'GET',
      'url': 'https://celsius.network/api/community/earn',
      'headers': {
        'x-api-key': 'XXXXXXXXXXXXXXXX'
      }
    };
    request(options, function (error, response) { 
      if (error) throw new Error(error);
      console.log(response.body);
    });
    
  • C# - RestSharp

    var client = new RestClient("https://celsius.network/api/community/earn");
    client.Timeout = -1;
    var request = new RestRequest(Method.GET);
    request.AddHeader("x-api-key", "XXXXXXXXXXXXXXXX");
    IRestResponse response = client.Execute(request);
    Console.WriteLine(response.Content);

Borrow

Live feed of borrowing rates. Interest rates are determined by our institutional lending desk. Trading@celsius.network

Base URL: https://celsius.network/api/community/borrow
  • Python

    import http.client
    import http.client
    import mimetypes
    conn = http.client.HTTPSConnection("celsius.network")
    payload = ''
    headers = {
      'x-api-key': 'XXXXXXXXXXXXXXXX'
    }
    conn.request("GET", "/api/community/borrow", payload, headers)
    res = conn.getresponse()
    data = res.read()
    print(data.decode("utf-8"))
  • PHP

    $curl = curl_init();
    
    curl_setopt_array($curl, array(
      CURLOPT_URL => "https://celsius.network/api/community/borrow",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 0,
      CURLOPT_FOLLOWLOCATION => true,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => "GET",
      CURLOPT_HTTPHEADER => array(
        "x-api-key: XXXXXXXXXXXXXXXX"
      ),
    ));
    
    $response = curl_exec($curl);
    
    curl_close($curl);
    echo $response
  • Javascript - Fetch

    var myHeaders = new Headers();
    myHeaders.append("x-api-key", "XXXXXXXXXXXXXXXX"
    
    var requestOptions = {
      method: 'GET',
      headers: myHeaders,
      redirect: 'follow'
    };
    
    fetch("https://celsius.network/api/community/borrow", requestOptions)
      .then(response => response.text())
      .then(result => console.log(result))
      .catch(error => console.log('error', error));
  • JQuery - Fetch

    var settings = {
      "url": "https://celsius.network/api/community/earn",
      "method": "GET",
      "timeout": 0,
      "headers": {
        "x-api-key": "XXXXXXXXXXXXXXXX"
      },
    };
    
    $.ajax(settings).done(function (response) {
      console.log(response);
    });
  • Node.js - Request

    var request = require('request');
    var options = {
      'method': 'GET',
      'url': 'https://celsius.network/api/community/borrow',
      'headers': {
        'x-api-key': 'XXXXXXXXXXXXXXXX'
      }
    };
    request(options, function (error, response) { 
      if (error) throw new Error(error);
      console.log(response.body);
    });
    
  • C# - RestSharp

    var client = new RestClient("https://celsius.network/api/community/borrow");
    client.Timeout = -1;
    var request = new RestRequest(Method.GET);
    request.AddHeader("x-api-key", "XXXXXXXXXXXXXXXX");
    IRestResponse response = client.Execute(request);
    Console.WriteLine(response.Content);

Community Data

Live feed of community statistics. This is the data used in-app, under community.

Base URL: https://celsius.network/api/community/community
  • Python

    import http.client
    import mimetypes
    conn = http.client.HTTPSConnection("celsius.network")
    payload = ''
    headers = {
      'x-api-key': 'XXXXXXXXXXXXXXXX'
    }
    conn.request("GET", "/api/community/community", payload, headers)
    res = conn.getresponse()
    data = res.read()
    print(data.decode("utf-8"))
  • PHP

    $curl = curl_init();
    
    curl_setopt_array($curl, array(
      CURLOPT_URL => "https://celsius.network/api/community/community",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 0,
      CURLOPT_FOLLOWLOCATION => true,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => "GET",
      CURLOPT_HTTPHEADER => array(
        "x-api-key: XXXXXXXXXXXXXXXX"
      ),
    ));
    
    $response = curl_exec($curl);
    
    curl_close($curl);
    echo $response;
  • Javascript - Fetch

    var myHeaders = new Headers();
    myHeaders.append("x-api-key", "XXXXXXXXXXXXXXXX"
    
    var requestOptions = {
      method: 'GET',
      headers: myHeaders,
      redirect: 'follow'
    };
    
    fetch("https://celsius.network/api/community/community", requestOptions)
      .then(response => response.text())
      .then(result => console.log(result))
      .catch(error => console.log('error', error));
  • JQuery - Fetch

    var settings = {
      "url": "https://celsius.network/api/community/community",
      "method": "GET",
      "timeout": 0,
      "headers": {
        "x-api-key": "XXXXXXXXXXXXXXXX"
      },
    };
    
    $.ajax(settings).done(function (response) {
      console.log(response);
    });
  • Node.js - Request

    var request = require('request');
    var options = {
      'method': 'GET',
      'url': 'https://celsius.network/api/community/community',
      'headers': {
        'x-api-key': 'XXXXXXXXXXXXXXXX'
      }
    };
    request(options, function (error, response) { 
      if (error) throw new Error(error);
      console.log(response.body);
    });
    
  • C# - RestSharp

    var client = new RestClient("https://celsius.network/api/community/community");
    client.Timeout = -1;
    var request = new RestRequest(Method.GET);
    request.AddHeader("x-api-key", "XXXXXXXXXXXXXXXX");
    IRestResponse response = client.Execute(request);
    Console.WriteLine(response.Content);

Supported Tokens

Live feed of support coins in-app. To view the current support coins, view here.

Base URL: https://celsius.network/api/community/coins
  • Python

    import http.client
    import mimetypes
    conn = http.client.HTTPSConnection("celsius.network")
    payload = ''
    headers = {
      'x-api-key': 'XXXXXXXXXXXXXXXX'
    }
    conn.request("GET", "/api/community/coins", payload, headers)
    res = conn.getresponse()
    data = res.read()
    print(data.decode("utf-8"))
  • PHP

    $curl = curl_init();
    
    curl_setopt_array($curl, array(
      CURLOPT_URL => "https://celsius.network/api/community/coins",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 0,
      CURLOPT_FOLLOWLOCATION => true,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => "GET",
      CURLOPT_HTTPHEADER => array(
        "x-api-key: XXXXXXXXXXXXXXXX"
      ),
    ));
    
    $response = curl_exec($curl);
    
    curl_close($curl);
    echo $response;
  • Javascript - Fetch

    var myHeaders = new Headers();
    myHeaders.append("x-api-key", "XXXXXXXXXXXXXXXX"
    
    var requestOptions = {
      method: 'GET',
      headers: myHeaders,
      redirect: 'follow'
    };
    
    fetch("https://celsius.network/api/community/coins", requestOptions)
      .then(response => response.text())
      .then(result => console.log(result))
      .catch(error => console.log('error', error));
  • JQuery - Fetch

    var settings = {
      "url": "https://celsius.network/api/community/coins",
      "method": "GET",
      "timeout": 0,
      "headers": {
        "x-api-key": "XXXXXXXXXXXXXXXX"
      },
    };
    
    $.ajax(settings).done(function (response) {
      console.log(response);
    });
  • Node.js - Request

    var request = require('request');
    var options = {
      'method': 'GET',
      'url': 'https://celsius.network/api/community/coins',
      'headers': {
        'x-api-key': 'XXXXXXXXXXXXXXXX'
      }
    };
    request(options, function (error, response) { 
      if (error) throw new Error(error);
      console.log(response.body);
    });
    
  • C# - RestSharp

    var client = new RestClient("https://celsius.network/api/community/coins");
    client.Timeout = -1;
    var request = new RestRequest(Method.GET);
    request.AddHeader("x-api-key", "XXXXXXXXXXXXXXXX");
    IRestResponse response = client.Execute(request);
    Console.WriteLine(response.Content);

Top 200

Live feed of Top200 Hodlers. The Top200 list is updated nightly on Friday EST.

Base URL: https://celsius.network/api/community/top200
  • Python

    import http.client
    import mimetypes
    conn = http.client.HTTPSConnection("celsius.network")
    payload = ''
    headers = {
      'x-api-key': 'XXXXXXXXXXXXXXXX'
    }
    conn.request("GET", "/api/community/top200", payload, headers)
    res = conn.getresponse()
    data = res.read()
    print(data.decode("utf-8"))
  • PHP

    $curl = curl_init();
    
    curl_setopt_array($curl, array(
      CURLOPT_URL => "https://celsius.network/api/community/top200",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 0,
      CURLOPT_FOLLOWLOCATION => true,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => "GET",
      CURLOPT_HTTPHEADER => array(
        "x-api-key: XXXXXXXXXXXXXXXX"
      ),
    ));
    
    $response = curl_exec($curl);
    
    curl_close($curl);
    echo $response;
  • Javascript - Fetch

    var myHeaders = new Headers();
    myHeaders.append("x-api-key", "XXXXXXXXXXXXXXXX"
    
    var requestOptions = {
      method: 'GET',
      headers: myHeaders,
      redirect: 'follow'
    };
    
    fetch("https://celsius.network/api/community/top200", requestOptions)
      .then(response => response.text())
      .then(result => console.log(result))
      .catch(error => console.log('error', error));
  • JQuery - Fetch

    var settings = {
      "url": "https://celsius.network/api/community/top200",
      "method": "GET",
      "timeout": 0,
      "headers": {
        "x-api-key": "XXXXXXXXXXXXXXXX"
      },
    };
    
    $.ajax(settings).done(function (response) {
      console.log(response);
    });
  • Node.js - Request

    var request = require('request');
    var options = {
    'method': 'GET',
    'url': 'https://celsius.network/api/community/top200',
    'headers': {
    'x-api-key': 'XXXXXXXXXXXXXXXX'
    }
    };
    request(options, function (error, response) { 
    if (error) throw new Error(error);
    console.log(response.body);
    });
    
  • C# - RestSharp

    var client = new RestClient("https://celsius.network/api/community/top200");
    client.Timeout = -1;
    var request = new RestRequest(Method.GET);
    request.AddHeader("x-api-key", "XXXXXXXXXXXXXXXX");
    IRestResponse response = client.Execute(request);
    Console.WriteLine(response.Content);