India API - Purified Bytes (1.0.0)

This API will expose various data related to India. As of now Cost Inflation Index data, Gold and Silver date are available.

Base API URL: https://india.purifiedbytes.com/api

Get Cost Inflation Index

Get the new Cost Inflation Index

Responses

Response Schema: application/json
Array of objects (CIIV2) [ items ]
Array
financial_year
required
string
cost_inflation_index
required
integer >= 100

Response samples

Content type
application/json
{
  • "data": [
    • {
      • "financial_year": "2001-02",
      • "cost_inflation_index": 100
      }
    ]
}

List of Metals

Get the list of available Codes. The number in the code represents the purity of the metal

Responses

Response Schema: application/json
Array of objects[ items ]
Array
code
required
string
metal
required
string
Enum: "gold" "silver"
purity
required
integer
unit
required
string
source
required
string
Value: "IBJA"

Response samples

Content type
application/json
{
  • "data": [
    • {
      • "code": "gold-916",
      • "metal": "gold",
      • "purity": 916,
      • "unit": "per 10 grams",
      • "source": "IBJA"
      }
    ]
}

Metal Rate history

Get the Metal price history of the given code.

Responses

Response Schema: application/json
Array of objects[ items ]
Array
open
required
number
close
required
number
date
required
string <date>

Response samples

Content type
application/json
{
  • "data": [
    • {
      • "open": 46240,
      • "close": 46237,
      • "date": "2022-10-31"
      }
    ]
}