MobiCycle Consulting Demo API API Reference
Welcome to MobiCycle's Demo API. More Description to come here.
API Endpoints
Demo Server:
https://api-consulting.mobicycle.workers.dev
Contact: [email protected]
Version: 1.0.0
Paths
Fetch Aerosols
A list of Aerosol readings over North America
Example
Request Content-Types:
application/json
Query
query aerosols{
aerosols{
producer_granule_id
time_start
updated
dataset_id
data_center
title
coordinate_system
day_night_flag
time_end
id
original_format
granule_size
}
}
Try it now
query aerosols{
aerosols{
producer_granule_id
time_start
updated
dataset_id
data_center
title
coordinate_system
day_night_flag
time_end
id
original_format
granule_size
}
}
Successful operation
Response Content-Types: application/json
Response Example (200 OK)
{
"data": {
"aerosols": [
{
"producer_granule_id": "string",
"time_start": "string",
"updated": "string",
"dataset_id": "string",
"data_center": "string",
"title": "string",
"coordinate_system": "string",
"day_night_flag": "string",
"time_end": "string",
"id": "string",
"original_format": "string",
"granule_size": "number"
}
]
}
}
Fetch Methane Readings
A list of methane emissions for various countries
Example
Request Content-Types:
application/json
Query
query methane{
methane{
id
emissions
country
}
}
Try it now
query methane{
methane{
id
emissions
country
}
}
Successful operation
Response Content-Types: application/json
Response Example (200 OK)
{
"data": {
"methane": [
{
"id": "string",
"emissions": "number",
"country": "string"
}
]
}
}
Fetch Extinction Metrics
A breakdown of the number of extinct species per continent
Example
Request Content-Types:
application/json
Query
query species_extinction{
species_extinction{
continent
species
}
}
Try it now
query species_extinction{
species_extinction{
continent
species
}
}
Successful operation
Response Content-Types: application/json
Response Example (200 OK)
{
"data": {
"species_extinction": [
{
"continent": "string",
"species": "integer"
}
]
}
}
Fetch Toxic Waste Flooding Metrics
A breakdown of toxic waste flooding by city
Example
Request Content-Types:
application/json
Query
query toxic_waste_flooding{
toxic_waste_flooding{
id
city
water_level
warning
}
}
Try it now
query toxic_waste_flooding{
toxic_waste_flooding{
id
city
water_level
warning
}
}
Successful operation
Response Content-Types: application/json
Response Example (200 OK)
{
"data": {
"toxic_waste_flooding": [
{
"id": "string",
"city": "string",
"water_level": "number",
"warning": "string"
}
]
}
}
Fetch Tracking Data
Tracking data on various recycling shipments from our other service, WhereAREWEEE
Example
Request Content-Types:
application/json
Query
query where_are_weee{
where_are_weee{
device_id
lat
lon
destination
reached_destination
source
}
}
Try it now
query where_are_weee{
where_are_weee{
device_id
lat
lon
destination
reached_destination
source
}
}
Successful operation
Response Content-Types: application/json
Response Example (200 OK)
{
"data": {
"where_are_weee": [
{
"device_id": "string",
"lat": "number",
"lon": "number",
"destination": "string",
"reached_destination": "boolean",
"source": "string"
}
]
}
}
Fetch Mineral Deposits
A list of mineral deposits and their various minerals
Example
Request Content-Types:
application/json
Query
query minerals{
minerals{
deposit_id
lat
lon
gold
silver
lithium
beryllium
name
}
}
Try it now
query minerals{
minerals{
deposit_id
lat
lon
gold
silver
lithium
beryllium
name
}
}
Successful operation
Response Content-Types: application/json
Response Example (200 OK)
{
"data": {
"minerals": [
{
"deposit_id": "string",
"lat": "number",
"lon": "number",
"gold": "number",
"silver": "number",
"lithium": "number",
"beryllium": "number",
"name": "string"
}
]
}
}
Fetch GHG Readings
Readings for Greenhouse Gases (GHG) over a period of time
Example
Request Content-Types:
application/json
Query
query ghg{
ghg{
id
time_start
time_end
lat
lon
tonnes
}
}
Try it now
query ghg{
ghg{
id
time_start
time_end
lat
lon
tonnes
}
}
Successful operation
Response Content-Types: application/json
Response Example (200 OK)
{
"data": {
"ghg": [
{
"id": "string",
"time_start": "string",
"time_end": "string",
"lat": "number",
"lon": "number",
"tonnes": "number"
}
]
}
}
Schema Definitions
Aerosol: object
-
producer_granule_id:
object
-
- return:
-
arguments:
object
-
-
time_start:
object
-
- return:
-
arguments:
object
-
-
updated:
object
-
- return:
-
arguments:
object
-
-
dataset_id:
object
-
- return:
-
arguments:
object
-
-
data_center:
object
-
- return:
-
arguments:
object
-
-
title:
object
-
- return:
-
arguments:
object
-
-
coordinate_system:
object
-
- return:
-
arguments:
object
-
-
day_night_flag:
object
-
- return:
-
arguments:
object
-
-
time_end:
object
-
- return:
-
arguments:
object
-
-
id:
object
-
- return:
-
arguments:
object
-
-
original_format:
object
-
- return:
-
arguments:
object
-
-
granule_size:
object
-
- return:
-
arguments:
object
-
Example
{
"producer_granule_id": {
"return": "object",
"arguments": {}
},
"time_start": {
"return": "string",
"arguments": {}
},
"updated": {
"return": "string",
"arguments": {}
},
"dataset_id": {
"return": "object",
"arguments": {}
},
"data_center": {
"return": "string",
"arguments": {}
},
"title": {
"return": "string",
"arguments": {}
},
"coordinate_system": {
"return": "string",
"arguments": {}
},
"day_night_flag": {
"return": "string",
"arguments": {}
},
"time_end": {
"return": "string",
"arguments": {}
},
"id": {
"return": "object",
"arguments": {}
},
"original_format": {
"return": "string",
"arguments": {}
},
"granule_size": {
"return": "number",
"arguments": {}
}
}
Float: number
The Float
scalar type represents signed double-precision fractional values as specified by
IEEE 754.
Example
number
GHG: object
-
id:
object
-
- return:
-
arguments:
object
-
-
time_start:
object
-
- return:
-
arguments:
object
-
-
time_end:
object
-
- return:
-
arguments:
object
-
-
lat:
object
-
- return:
-
arguments:
object
-
-
lon:
object
-
- return:
-
arguments:
object
-
-
tonnes:
object
-
- return:
-
arguments:
object
-
Example
{
"id": {
"return": "object",
"arguments": {}
},
"time_start": {
"return": "string",
"arguments": {}
},
"time_end": {
"return": "string",
"arguments": {}
},
"lat": {
"return": "number",
"arguments": {}
},
"lon": {
"return": "number",
"arguments": {}
},
"tonnes": {
"return": "number",
"arguments": {}
}
}
ID: object
The ID
scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as "4"
) or integer (such as 4
) input value will be accepted as an ID.
Example
object
Int: number
The Int
scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
Example
number
Methane: object
-
id:
object
-
- return:
-
arguments:
object
-
-
emissions:
object
-
- return:
-
arguments:
object
-
-
country:
object
-
- return:
-
arguments:
object
-
Example
{
"id": {
"return": "object",
"arguments": {}
},
"emissions": {
"return": "number",
"arguments": {}
},
"country": {
"return": "string",
"arguments": {}
}
}
Mineral: object
-
deposit_id:
object
-
- return:
-
arguments:
object
-
-
lat:
object
-
- return:
-
arguments:
object
-
-
lon:
object
-
- return:
-
arguments:
object
-
-
gold:
object
-
- return:
-
arguments:
object
-
-
silver:
object
-
- return:
-
arguments:
object
-
-
lithium:
object
-
- return:
-
arguments:
object
-
-
beryllium:
object
-
- return:
-
arguments:
object
-
-
name:
object
-
- return:
-
arguments:
object
-
Example
{
"deposit_id": {
"return": "object",
"arguments": {}
},
"lat": {
"return": "number",
"arguments": {}
},
"lon": {
"return": "number",
"arguments": {}
},
"gold": {
"return": "number",
"arguments": {}
},
"silver": {
"return": "number",
"arguments": {}
},
"lithium": {
"return": "number",
"arguments": {}
},
"beryllium": {
"return": "number",
"arguments": {}
},
"name": {
"return": "string",
"arguments": {}
}
}
String: string
The String
scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
ToxicWasteFlooding: object
-
id:
object
-
- return:
-
arguments:
object
-
-
city:
object
-
- return:
-
arguments:
object
-
-
water_level:
object
-
- return:
-
arguments:
object
-
-
warning:
object
-
- return:
-
arguments:
object
-
Example
{
"id": {
"return": "object",
"arguments": {}
},
"city": {
"return": "string",
"arguments": {}
},
"water_level": {
"return": "number",
"arguments": {}
},
"warning": {
"return": "string",
"arguments": {}
}
}
WhereAreWEEE: object
-
device_id:
object
-
- return:
-
arguments:
object
-
-
lat:
object
-
- return:
-
arguments:
object
-
-
lon:
object
-
- return:
-
arguments:
object
-
-
destination:
object
-
- return:
-
arguments:
object
-
-
reached_destination:
object
-
- return:
-
arguments:
object
-
-
source:
object
-
- return:
-
arguments:
object
-
Example
{
"device_id": {
"return": "object",
"arguments": {}
},
"lat": {
"return": "number",
"arguments": {}
},
"lon": {
"return": "number",
"arguments": {}
},
"destination": {
"return": "object",
"arguments": {}
},
"reached_destination": {
"return": "boolean",
"arguments": {}
},
"source": {
"return": "object",
"arguments": {}
}
}
eWasteCodesResponse: object
-
id:
object
-
- return:
-
arguments:
object
-
-
category:
object
-
- return:
-
arguments:
object
-
-
title:
object
-
- return:
-
arguments:
object
-
-
description:
object
-
- return:
-
arguments:
object
-
-
url:
object
-
- return:
-
arguments:
object
-
-
keywords:
object
-
- return:
-
arguments:
object
-
Example
{
"id": {
"return": "object",
"arguments": {}
},
"category": {
"return": "string",
"arguments": {}
},
"title": {
"return": "string",
"arguments": {}
},
"description": {
"return": "string",
"arguments": {}
},
"url": {
"return": "string",
"arguments": {}
},
"keywords": {
"return": [
"string"
],
"arguments": {}
}
}