Skip to main content

Example Code

An API only makes sense once it's integrated into your application — below is a selection of programming languages you can use alongside the CCRI API, generated live in every language the API Reference itself offers, so these always match the reference's own code samples. Each example uses the same authentication mechanism as the rest of the reference (an API key as key, here as a query parameter).

Get MiCA disclosure tables for a currency​

A GET request against the MiCA Art. 66(5) endpoint Get Disclosure Tables — the sustainability disclosure as defined in Tables 2 and 3 of Delegated Regulation (EU) 2025/422.

Loading code samples…

Get the power demand of the Bitcoin network​

A GET request against the Carbon Accounting endpoint Get Network Power.

Loading code samples…

100 Bitcoins for Yesterday​

A POST request against the Carbon Accounting endpoint Attribute Emissions, using the hybrid allocation strategy -- the GHG emissions of holding 100 Bitcoin for yesterday (UTC).

Loading code samples…