Skip to main content
📌 Note: All SiliconCarbon endpoints require an active subscription. Successful responses are wrapped in a { "meta": {...}, "data": {...} } envelope; the documented response body for each endpoint is returned under the data key.

GET /api/data-hub/carbon/gpu-carbon-intensity

Calculate the carbon intensity of a GPU for a given location, using query parameters.

Authorization

🔒OAuth2: OAuth2PasswordBearer
Flow type: password
Token URL: token

Query Parameters

Request Example

Responses

  • 200: Successful Response
  • 422: Validation Error
  • 500: Business Error (e.g., region not found, GPU not found, or missing GPU identifier)

POST /api/data-hub/carbon/gpu-carbon-intensity

Calculate the carbon intensity of a GPU for a given location, using a JSON request body.

Authorization

🔒OAuth2: OAuth2PasswordBearer
Flow type: password
Token URL: token

Request Body

The request body must be in application/json format.

Request Example

Responses

  • 200: Successful Response
  • 422: Validation Error
  • 500: Business Error (e.g., region not found, GPU not found, or missing GPU identifier)

GET /api/data-hub/carbon/zone-emission-rate

Query the carbon emission rate of a zone by zipcode and country code.

Authorization

🔒OAuth2: OAuth2PasswordBearer
Flow type: password
Token URL: token

Query Parameters

Request Example

Responses

  • 200: Successful Response
When no emission rate is found for the given zone, carbon_emission_rate is returned as null.
  • 422: Validation Error

GET /api/data-hub/carbon/gpu-carbon-provider-intensity

Calculate the carbon intensity of a GPU hosted by a specific cloud provider region.

Authorization

🔒OAuth2: OAuth2PasswordBearer
Flow type: password
Token URL: token

Query Parameters

Request Example

Responses

  • 200: Successful Response
  • 422: Validation Error
  • 500: Business Error (e.g., provider code not found, GPU not found, or missing GPU identifier)

POST /api/data-hub/carbon/batch/gpu-carbon-intensity

Batch query the carbon intensity of multiple GPUs in a single request. A maximum of 50 items may be submitted per request.

Authorization

🔒OAuth2: OAuth2PasswordBearer
Flow type: password
Token URL: token

Request Body

The request body must be in application/json format.

data (Array)

Request Example

Responses

  • 200: Successful Response
When the GPU or the carbon emission data for the given zone is not found, carbon_intensity, carbon_emission_rate, and carbon_data_updated_time are returned as null for that item.
  • 422: Validation Error
  • 500: Business Error (e.g., batch exceeds 50 items, or an item is missing both gpu_slug and gpu_name)

GET /api/data-hub/carbon/country

Query country detail information. Supports fuzzy (prefix) search by country name.

Authorization

🔒OAuth2: OAuth2PasswordBearer
Flow type: password
Token URL: token

Query Parameters

Request Example

Responses

  • 200: Successful Response

GET /api/data-hub/carbon/default-zipcode

Query the default zipcode of a country by country code.

Authorization

🔒OAuth2: OAuth2PasswordBearer
Flow type: password
Token URL: token

Query Parameters

Request Example

Responses

  • 200: Successful Response
The route returns the default zipcode as a string under the data key.
If the country has no zipcodes, data is returned as an empty string.
  • 422: Validation Error

GET /api/data-hub/carbon/providers/

Get the list of all data center providers.

Authorization

🔒OAuth2: OAuth2PasswordBearer
Flow type: password
Token URL: token

Query Parameters

This endpoint takes no query parameters.

Request Example

Responses

  • 200: Successful Response

GET /api/data-hub/carbon/providers//codes

Get the region codes for a given provider by provider name.

Authorization

🔒OAuth2: OAuth2PasswordBearer
Flow type: password
Token URL: token

Path Parameters

Request Example

Responses

  • 200: Successful Response
If the provider is not found, both provider and codes are returned as null.

GET /api/data-hub/carbon/providers_selection//codes

Get the region codes for a given provider, restricted to a fixed set of supported providers.

Authorization

🔒OAuth2: OAuth2PasswordBearer
Flow type: password
Token URL: token

Path Parameters

Request Example

Responses

  • 200: Successful Response
If the provider is not found or has no codes, data is returned as null.

GET /api/data-hub/carbon/providers_with_codes/

Get the list of all providers, each with its associated region codes.

Authorization

🔒OAuth2: OAuth2PasswordBearer
Flow type: password
Token URL: token

Query Parameters

This endpoint takes no query parameters.

Request Example

Responses

  • 200: Successful Response