Alan Chand Web Service

Alan Chand Real-Time Price API

AlanChand API provides real-time prices for currency, gold, and cryptocurrencies in JSON format. It is available for testing once per hour per user. For unlimited access, please contact us.

Request Free API

Input Parameters

ParameterTypeDescription
type string Desired category: currency, gold, crypto
symbols comma-separated list Symbols from the selected category. Example: usd,eur or btc,eth

All requests must include a valid token in the header:

Authorization: Bearer YOUR_API_TOKEN

Request format:

GET https://api.alanchand.com?type=crypto&symbols=btc,eth

Code Samples in Different Languages

Code Samples in Different Languages

JavaScript

fetch('https://api.alanchand.com?type=crypto&symbols=btc,eth', {
  headers: {
    'Authorization': 'Bearer YOUR_API_TOKEN'
  }
})
.then(res => res.json())
.then(data => console.log(data));
      

PHP

$curl = curl_init();
curl_setopt_array($curl, [
  CURLOPT_URL => "https://api.alanchand.com?type=gold&symbols=sekkeh",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_HTTPHEADER => [
    "Authorization: Bearer YOUR_API_TOKEN"
  ],
]);
$response = curl_exec($curl);
curl_close($curl);
echo $response;
      

Python

import requests
headers = {'Authorization': 'Bearer YOUR_API_TOKEN'}
res = requests.get('https://api.alanchand.com?type=currency&symbols=usd', headers=headers)
print(res.json())
      

C#

var client = new HttpClient();
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", "YOUR_API_TOKEN");
var response = await client.GetAsync("https://api.alanchand.com?type=crypto&symbols=btc");
Console.WriteLine(await response.Content.ReadAsStringAsync());
      

FAQ