Skip to main content
GET
/
v1
/
coins
/
{id}
Get coin by ID
import { ParagraphAPI } from "@paragraph-com/sdk"

const api = new ParagraphAPI()
const coin = await api.coins.get({ id: "S2AlaNG5Hw0NdNptmLTw" }).single()
curl --request GET \
--url https://public.api.paragraph.com/api/v1/coins/{id}
import requests

url = "https://public.api.paragraph.com/api/v1/coins/{id}"

response = requests.get(url)

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

fetch('https://public.api.paragraph.com/api/v1/coins/{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://public.api.paragraph.com/api/v1/coins/{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://public.api.paragraph.com/api/v1/coins/{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://public.api.paragraph.com/api/v1/coins/{id}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://public.api.paragraph.com/api/v1/coins/{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_body
{
  "id": "<string>",
  "contractAddress": "<string>",
  "metadata": {
    "name": "<string>",
    "symbol": "<string>",
    "decimals": 123,
    "description": "<string>",
    "chainId": 123,
    "external_url": "<string>",
    "links": [
      {
        "name": "<string>",
        "url": "<string>"
      }
    ],
    "tags": [
      "<string>"
    ],
    "extensions": {
      "coinType": "<string>",
      "paragraph": {
        "blogId": "<string>",
        "blogUrl": "<string>",
        "authorName": "<string>",
        "noteId": "<string>",
        "postSlug": "<string>"
      }
    },
    "attributes": [
      {
        "trait_type": "<string>",
        "value": "<string>"
      }
    ],
    "image": "<string>",
    "logoURI": "<string>"
  }
}
{
"success": false,
"msg": "<string>"
}
{
"success": false,
"msg": "<string>"
}

Path Parameters

id
string
required

Paragraph-internal unique identifier for the coin

Response

Coin details retrieved successfully

id
string
required

Unique identifier for the coin

contractAddress
string
required

Base contract address for the coin

Pattern: ^0x[a-fA-F0-9]{40}$
metadata
object
required