Widget Coin Card & Sparkline
curl --request GET \
--url https://api.cryptechtoday.com/api/v1/widget/coin/{symbol}import requests
url = "https://api.cryptechtoday.com/api/v1/widget/coin/{symbol}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.cryptechtoday.com/api/v1/widget/coin/{symbol}', 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.cryptechtoday.com/api/v1/widget/coin/{symbol}",
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.cryptechtoday.com/api/v1/widget/coin/{symbol}"
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.cryptechtoday.com/api/v1/widget/coin/{symbol}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cryptechtoday.com/api/v1/widget/coin/{symbol}")
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_bodyEmbeddable Widgets API
Widget Coin Card & Sparkline
Single-coin card feed with 7-day sparkline coordinates, market cap, and volume
GET
/
api
/
v1
/
widget
/
coin
/
{symbol}
Widget Coin Card & Sparkline
curl --request GET \
--url https://api.cryptechtoday.com/api/v1/widget/coin/{symbol}import requests
url = "https://api.cryptechtoday.com/api/v1/widget/coin/{symbol}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.cryptechtoday.com/api/v1/widget/coin/{symbol}', 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.cryptechtoday.com/api/v1/widget/coin/{symbol}",
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.cryptechtoday.com/api/v1/widget/coin/{symbol}"
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.cryptechtoday.com/api/v1/widget/coin/{symbol}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cryptechtoday.com/api/v1/widget/coin/{symbol}")
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_bodyWidget Coin Card & Sparkline
Provides formatted card telemetry and normalized 7-day SVG sparkline coordinate points for embedding interactive single-token cards on news portals, blog posts, and research reports.Parameters
string
required
Token symbol (e.g.
BTC, ETH, SOL, LINK).Response Structure
{
"symbol": "SOL",
"name": "Solana",
"price": 194.20,
"change_24h": 4.15,
"market_cap": 91400000000,
"volume_24h": 4120000000,
"sparkline_7d": [182.1, 184.5, 181.0, 187.4, 191.0, 189.5, 194.2]
}
Code Examples
curl -X GET "https://api.cryptechtoday.com/api/v1/widget/coin/SOL"
import requests
res = requests.get("https://api.cryptechtoday.com/api/v1/widget/coin/SOL")
coin = res.json()
print(f"{coin['name']}: ${coin['price']} (+{coin['change_24h']}%)")
print(f"Sparkline points: {len(coin['sparkline_7d'])}")
Was this page helpful?