Skip to main content
GET
/
1
/
all
Get all assets
curl --request GET \
  --url https://demo-api.mobula.io/api/1/all
import requests

url = "https://demo-api.mobula.io/api/1/all"

response = requests.get(url)

print(response.text)
const options = {method: 'GET'};

fetch('https://demo-api.mobula.io/api/1/all', 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://demo-api.mobula.io/api/1/all",
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://demo-api.mobula.io/api/1/all"

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://demo-api.mobula.io/api/1/all")
.asString();
require 'uri'
require 'net/http'

url = URI("https://demo-api.mobula.io/api/1/all")

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_body
{
  "data": [
    {
      "id": 123,
      "name": "<string>",
      "symbol": "<string>",
      "logo": "<string>",
      "price": 123,
      "price_change_1h": 123,
      "price_change_24h": 123,
      "price_change_7d": 123,
      "price_change_1m": 123,
      "price_change_1y": 123,
      "market_cap": 123,
      "liquidity": 123,
      "volume": 123,
      "blockchains": [
        "<string>"
      ],
      "contracts": [
        "<string>"
      ],
      "decimals": [
        123
      ],
      "website": "<string>",
      "twitter": "<string>",
      "chat": "<string>"
    }
  ]
}
Due to heavy data load, the docs might crash on your computer if you try this endpoint in the playground. Try running it on a codebase, Postman, or your browser instead.

Query details

The fields query parameter allows you to specify which fields you want to receive:
  • id - the cryptocurrency ID
  • symbol - the cryptocurrency symbol
  • name - the cryptocurrency name
  • logo - the cryptocurrency logo image URL
  • price - the current price of the cryptocurrency
  • price_change_1h - the price change in the last 1 hour
  • price_change_24h - the price change in the last 24 hours
  • price_change_7d - the price change in the last 7 days
  • price_change_30d - the price change in the last 30 days
  • price_change_1y - the price change in the last 1 year
  • market_cap - the market cap of the cryptocurrency
  • liquidity - the liquidity of the cryptocurrency
  • contracts - the contracts of the cryptocurrency
  • blockchains - the blockchains of the cryptocurrency
  • chat - the chat URL of the cryptocurrency
  • twitter - the Twitter URL of the cryptocurrency
  • website - the website URL of the cryptocurrency
  • rank - the rank of the cryptocurrency
Fields are comma-separated. For market data usage, please note that /all endpoint caches data for 1 hour - if you want real-time data, use market/multi-data or market/data endpoints.

Usage Examples

  • Query all data with default fields
curl -X GET "https://demo-api.mobula.io/api/1/all"
  • Query all data with the logo field
curl -X GET "https://demo-api.mobula.io/api/1/all?fields=logo"
  • Query all data with the price field
curl -X GET "https://demo-api.mobula.io/api/1/all?fields=price"

Query Parameters

fields
string
default:""

Response

200 - application/json

All response

data
object[]
required