Base URL: /api, Version: 1.1, The USEEIO API Wiki on github provides more information on using the API.
A RESTful API that provides access to versions of the USEEIO model. Results are returned as JSON objects or csv files.
Path | Operation | Description |
---|---|---|
/models | GET |
Get the available models from the server. |
/sectorcrosswalk.csv | GET |
Provide a crosswalk of sector codes from the BEA and NAICS schemas. Field names are in a 'SchemaName_Year_SchemaLevel_Code' pattern, e.g. 'BEA_2012_Sector_Code' |
/{model}/calculate | POST |
Calculate the result for a given demand and perspective. |
/{model}/demands | GET |
Returns a list with all available demand vectors from a model |
/{model}/demands/{demandID} | GET |
Returns a demand vector from the model |
/{model}/flows | GET |
Get all flows of the model. |
/{model}/flows/{flowID} | GET |
Get flow information by ID. |
/{model}/indicators | GET |
Get all indicators of the model. |
/{model}/indicators/{indicatorID} | GET |
Get indicator information by ID. |
/{model}/matrix/A | GET |
Get the direct requirements matrix of the IO model. |
/{model}/matrix/A_d | GET |
Get the domestic direct requirements matrix of the IO model. |
/{model}/matrix/B | GET |
Get the satellite matrix of the IO model. |
/{model}/matrix/B_dqi | GET |
Get the data quality entries of the satellite matrix. |
/{model}/matrix/C | GET |
Get the characterization factors. |
/{model}/matrix/D | GET |
Get the direct impact assessment results. |
/{model}/matrix/D_dqi | GET |
Get the data quality results of the direct impact assessment results. |
/{model}/matrix/L | GET |
Get the Leontief inverse of the IO model. |
/{model}/matrix/L_d | GET |
Get the domestic Leontief inverse of the IO model. |
/{model}/matrix/M | GET |
Get the direct + indirect impact results. |
/{model}/matrix/M_d | GET |
Get the direct + indirect domestic impact results. |
/{model}/matrix/N | GET |
Get the direct + indirect impact results. |
/{model}/matrix/N_d | GET |
Get the direct + indirect domestic impact results. |
/{model}/matrix/N_dqi | GET |
Get the data quality results of the total impact assessment results. |
/{model}/matrix/Phi | GET |
Get the price type adjustment ratios by year. |
/{model}/matrix/q | GET |
Get the commodity output vector |
/{model}/matrix/Rho | GET |
Get the currency year adjustment factors. |
/{model}/matrix/{name} | GET |
Get a row or column of a matrix. |
/{model}/sectors | GET |
Get all sectors of the IO model. |
/{model}/sectors/{sectorID} | GET |
Get the information of the sector with the given ID. |
/{model}/years | GET |
Get all years with data for Phi and Rho matrices. |
application/json
Successfully returned an array of model names.
All models sectors are associated with codes. These codes are derived from the BEA or NAICS. This crosswalk can be used to relate other data using these classifications.
text/csv; charset=utf-8
Successfully returned the sector crosswalk.
model | The ID of the input-output model to use. |
path | string |
application/json
Successfully returned an array of available demand vectors.
model | The ID of the input-output model to use. |
path | string | |
demandID | The ID of the demand vector. |
path | string |
application/json
Successfully returned a demand vector for the given model.
model | The ID of the input-output model to use. |
path | string |
application/json
Successfully returned an array of flows in the given model.
model | The ID of the input-output model to use. |
path | string | |
flowID | The ID of the flow. |
path | string |
application/json
Successfully returned an array with data on the given flow in the given model.
Flow not found.
model | The ID of the input-output model to use. |
path | string |
application/json
Successfully returned an array of indicators in the given model.
model | The ID of the input-output model to use. |
path | string | |
indicatorID | The ID of the indicator. |
path | string |
application/json
Successfully returned an array with data on the given indicator in the given model.
Indicator not found.
The matrix A
is a sector x sector
matrix and contains in each column i
the direct sector inputs that are required to produce 1 USD dollar of output from sector i
.
model | The ID of the input-output model to use. |
path | string |
application/json
Successfully returned the direct requirements matrix for the given model.
if the server failed to load the matrix file
The matrix A_d
is a sector x sector
matrix and contains in each column i
the domestic direct sector inputs that are required to produce 1 USD dollar of output from sector i
.
model | The ID of the input-output model to use. |
path | string |
application/json
Successfully returned the domestic direct requirements matrix for the given model.
A_d matrix not present for the given model
The satellite matrix B
is a flow x sector
matrix and contains in each column i
the amount of a flow given in the reference unit of the respective flow per 1 USD output from sector i
.
model | The ID of the input-output model to use. |
path | string |
application/json
Successfully returned the satellite matrix for the given model.
if the server failed to load the matrix file
The matrix B_dqi
contains the corresponding data quality entries of the satellite matrix B
in the same matrix dimensions of flows x sector. These entries are in the form of 5 data quality scores (values for each ranging from 1 to 5) for the five EPA LCA flow data quality indicators in this order: (Data reliability, Temporal correlation, Technological correlation,
Technological correlation). For example '(3,1,1,4,5)'. For more information on the data quality indicators and score, see the US EPA 2016 Report 'Guidance on Data Quality Assessment for Life Cycle Inventory Data'.
model | The ID of the input-output model to use. |
path | string |
application/json
Successfully returned the data quality entries for the satellite matrix for the given model.
B_dqi matrix not present for the given model
In the matrix C
, each column k
contains the characterization factors of the different LCIA categories related to one reference unit of flow k
.
model | The ID of the input-output model to use. |
path | string |
application/json
Successfully returned the characterization factor matrix for the given model.
if the server failed to load the matrix file
The matrix D
contains in each column i
the impact assessment result that is related to the direct emissions and resources for 1 USD output from sector i
. From the matrices B
and C
the direct impact matrix can be calculated via: D = C * B
model | The ID of the input-output model to use. |
path | string |
application/json
Successfully returned a matrix of direct impact results for the given model.
if the server failed to load the matrix file
The matrix D_dqi
contains the corresponding data quality entries of the direct impact results matrix D
in the same matrix dimensions of impacts x sector. These entries are in the form of 5 data quality scores (values for each ranging from 1 to 5) for the five EPA flow data quality indicators in this order, (Data reliability, Temporal correlation, Technological correlation, Technological correlation). For example '(3,1,1,4,5)'. For more information on the data quality indicators and scores, see the US EPA 2016 Report 'Guidance on Data Quality Assessment for Life Cycle Inventory Data'.
model | The ID of the input-output model to use. |
path | string |
application/json
Successfully returned a matrix of data quality entries for the direct impact results for the given model.
D_dqi matrix not present for the given model
The Leontief inverse L
is calculated via L = (I - A)^-1
. L
is also a sector x sector
matrix and contains in each column i
the total requirements of the respective sectors inputs to produce 1 USD of output from sector i
.
model | The ID of the input-output model to use. |
path | string |
application/json
Successfully returned the matrix.
if the server failed to load the matrix file
The domestic Leontief inverse L_d
is calculated via L_d = (I - A_d)^-1
. L_d
is also a sector x sector
matrix and contains in each column i
the direct + indirect domestic requirements of the respective sectors inputs to produce 1 USD of output from sector i
.
model | The ID of the input-output model to use. |
path | string |
application/json
Successfully returned the matrix.
L_d matrix not present for the given model
The matrix M
is a flow x sector
matrix and contains in each column i
the direct + indirect flow per 1 USD output of sector i
. With the B
and the total requirements L
, the matrix M
which contains the direct + indirect flow totals can be calculated via M = B * L
.
model | The ID of the input-output model to use. |
path | string |
application/json
Successfully returned the matrix.
if the server failed to load the matrix file
The matrix M_d
is a flow x sector
matrix and contains in each column i
the direct + indirect flow per 1 USD output of sector i
. With the B
and the total domestic requirements L_d
, the matrix M_d
which contains the direct + indirect flow totals can be calculated via M_d = B * L_d
.
model | The ID of the input-output model to use. |
path | string |
application/json
Successfully returned the matrix.
M_d matrix not present for the given model
The matrix N
is a indicator x sector
matrix and contains in each column i
the direct and indirect impact result per 1 USD output of sector i
. With the direct impacts D
and the total requirements L
, the matrix N
can be calculated via N = D * L
.
model | The ID of the input-output model to use. |
path | string |
application/json
Successfully returned the matrix.
if the server failed to load the matrix file
The matrix N_d
is a indicator x sector
matrix and contains in each column i
the direct and indirect domestic impact result per 1 USD output of sector i
. With the direct impacts D
and the total domestic requirements L_d
, the matrix N_d
can be calculated via N_d = D * L_d
.
model | The ID of the input-output model to use. |
path | string |
application/json
Successfully returned the matrix.
M_d matrix not present for the given model
The matrix N_dqi
contains the corresponding data quality entries of the direct + indirect impact results matrix N
in the same matrix dimensions of impacts x sector. These entries are in the form of 5 data quality scores (values for each ranging from 1 to 5) for the five EPA flow data quality indicators in this order, (Data reliability, Temporal correlation, Technological correlation, Technological correlation). For example '(3,1,1,4,5)'. For more information on the data quality indicators and scores, see the US EPA 2016 Report 'Guidance on Data Quality Assessment for Life Cycle Inventory Data'.
model | The ID of the input-output model to use. |
path | string |
application/json
Successfully returned a matrix of data quality entries for the total impact results for the given model.
N_dqi matrix not present for the given model
The matrix Phi
is a sector x year
matrix of producer:purchaser price type adjustment ratios that can be used to put model results in purchaser price. By default, all USEEIO model results are in producer price.
model | The ID of the input-output model to use. |
path | string |
application/json
Successfully returned the matrix.
if the server failed to load the matrix file
The matrix q
is a sector
indexed single column matrix (or vector) with the annual commodity output in the model dollar year. Available only for commodity models.
model | The ID of the input-output model to use. |
path | string |
application/json
Successfully returned the matrix.
if the server failed to load the matrix file
The matrix Rho
is a sector x year
matrix of sector-specific currency deflation ratios that can be used to put results into another currency year.
model | The ID of the input-output model to use. |
path | string |
application/json
Successfully returned the matrix.
if the server failed to load the matrix file
Returns the row or column with the given index passed in the query parameter, from the given matrix. See the other matrix descriptions to understand. This function is currently only available for numeric matrices and not the data quality matrices, B_dqi, D_dqi, and U_dqi.
model | The ID of the input-output model to use. |
path | string | |
name | The name of the matrix. |
path | string | |
col | The zero-based index of the column. |
query | integer | |
row | The zero-based index of the row. |
query | integer |
application/json
Successfully returned an array for the given column or row of the given matrix and given model.
if the column or row index is not a valid integer
if the server failed to load the matrix file or column
model | The ID of the IO model to use. |
path | string |
application/json
Successfully returned an array of sectors in the given model.
model | The ID of the input-output model to use. |
path | string | |
sectorID | The ID of the sector. |
path | string |
application/json
Successfully returned an array with data on the given sector in the given model.
Sector not found.
model | The ID of the input-output model to use. |
path | string |
application/json
Successfully returned an array of years in the given model.
{
"amount": 42.42,
"sector": "112120/US"
}
The sector ID.
The meta information of a demand vector ...
The matrix index of the flow.
The name of the flow, e.g., 'Sulfuric acid'.
A path-like set of context compartments in the form of directionality/environmental media/environmental compartment... e.g. 'emission/air/tropophere'
a unit name, e.g. 'kg'
Unique hexadecimal ID for the flow
The matrix index of the indicator.
Display name of the indicator
3 or 4 letter indicator code which is also as label in the user interface
The reference unit of the indicator.
Model region acryonyms.
The sector schema name of the model corresponding to schemas in sectorcrosswalk.csv.
A SHA-256 bit hash of the model used as a model build identifier.
List of indicator IDs (row index of the result matrix).
List of sector IDs (column index of the result matrix).
The result totals for the normalization.
The matrix index of the sector.
Display name of the sector.
Sector code in the underlying input-output model.
ID/code of the sector location.