AMEE API / URL Architecture
Overview
The base URL is supplied to you along with your access credentials.
Note: UIDs (e.g. '2B07C4082E5E') and categories shown on this page are dummy.
Data Resource Structure
All raw data can be accessed and manipulated via the API. Each node in the resource structure has a unique URL organised in a hierarchy.
Paging
Paging is used when AMEE needs to give a lengthy response to a query. So, for example, /data/home/heating contains a very large number of data items. The response will only show the first page of these. To see the next page, use data/home/heating?page=2. The response will contain these xml elements [or json equivalents] <CurrentPage?>, <PreviousPage?>, <NextPage?>, <LastPage?> to help with navigating the data.
Structure of Data resources
- /data
- /data/{itemPath|categoryPath}
- /data/{categoryPath}/
- /data/{categoryPath}/drill
- /data/{categoryPath}/{itemPath}
- /data/{categoryPath}/{itemPath}/{valuePath}
- /data/{categoryPath}/{categoryPath}
Notes on this structure
- Root Data Category with response containing list of children.
- Potential children of any Data Category are addressed by their path.
- A top level Data Category with a list of its children.
- A drill down resource for this Data Category.
- A Data Item with list of its Data Item Values.
- An Item Value.
- Further child Data Categories.
Concrete examples
Below is a nested structure leading to a Data Item describing the type of fuel for a home.
- /data/
- /data/home
- /data/home/domicile
- /data/home/domicile/drill
- /data/home/domicile/8049AACD53C9
- /data/home/domicile/8049AACD53C9/homeFuel
Profile resource structure
Profile resources mirror the Data Category structure of the CO2 data. Data Category paths are prefixed by /profiles and the profile key. Profile Items are addressed by their UID with child Item Values addressed by their Item Value Definition path.
Structure of Profile resources
- /profiles
- /profiles/{profileKey}
- /profiles/{profileKey}/{categoryPath|itemPath}
- /profiles/{profileKey}/{categoryPath}
- /profiles/{profileKey}/{categoryPath}/{itemPath}
- /profiles/{profileKey}/{categoryPath}/{itemPath}/{valuePath}
- /profiles/{profileKey}/{categoryPath}/{categoryPath}
Notes on this structure
- A list of Profiles.
- Home for a Profile listing its children.
- Potential children of Profiles and Profile Categories are addressed by their path.
- A Profile Category containing Profile Items and/or further Profile Categories.
- A Profile Item with list of its Item Values.
- An Item Value belonging to a Profile Item.
- A nested Profile Category. Further nesting of paths as described above is possible.
Concrete examples
Below is listed the nested structure leading to a Profile Item describing a type of home for an individual.
- /profiles/
- /profiles/2B07C4082E5E
- /profiles/2B07C4082E5E/home
- /profiles/2B07C4082E5E/home/domicile/4F7A8289D7A9

