Download OpenAPI specification:Download
SatArchive acts as a one-stop shop for accessing KisanHub's satellite data. It provides an intuitive set of APIs for managing the downloading and processing of satellite imagery for ingestion into the KisanHub webapp, as well as for use in research activities.
mission required | string (Mission) Mission shortcode |
date required | string <date> (Date) Date of entry |
band required | string (Band) Band shortcode |
key required | string (Key) File key on storage |
rowcol_id required | integer (PrimaryKey) >= 1 Primary key |
OK
SatArchive server
{- "mission": "string",
- "date": "2020-04-09",
- "band": "string",
- "key": "string",
- "rowcol_id": 1
}
{- "id": 1,
- "rowcol_id": {
- "id": 1,
- "row": 0,
- "col": 0
}, - "mission": "string",
- "date": "2020-04-09",
- "band": "string",
- "key": "string"
}
rowcol_id | integer ID of the rowcol to query |
OK
SatArchive server
[- {
- "id": 1,
- "rowcol_id": {
- "id": 1,
- "row": 0,
- "col": 0
}, - "mission": "string",
- "date": "2020-04-09",
- "band": "string",
- "key": "string"
}
]
id required | integer ID of the dateband to query |
OK
SatArchive server
{- "id": 1,
- "rowcol_id": {
- "id": 1,
- "row": 0,
- "col": 0
}, - "mission": "string",
- "date": "2020-04-09",
- "band": "string",
- "key": "string"
}
rowcol_id required | integer ID of the rowcol to query |
OK
SatArchive server
{- "S1": [
- "2018-03-01",
- "2018-04-01"
], - "S2": [
- "2018-06-01",
- "2018-07-01"
]
}
rowcol_id required | integer ID of the rowcol to query |
start_date required | string <date> Example: 2018-02-01 Start date to search from |
end_date required | string <date> Example: 2018-05-01 End date to search to |
OK
SatArchive server
{- "S1": [
- "2018-03-01",
- "2018-04-01"
], - "S2": [
- "2018-06-01",
- "2018-07-01"
]
}
geojson | object (Polygon) A geojson polygon |
OK
Bad request
SatArchive server
{- "geojson": {
- "type": "Polygon",
- "coordinates": [
- [
- [
- -2.10113525390625,
- 53.51418452077113
], - [
- -2.116241455078125,
- 53.477421969613324
], - [
- -2.055816650390625,
- 53.48232548469942
], - [
- -2.0489501953125,
- 53.51418452077113
], - [
- -2.10113525390625,
- 53.51418452077113
]
]
]
}
}
{- "rowcol_ids": [
- 100,
- 200
]
}
band required | string (Band) Band shortcode |
date required | string <date> (Date) Date of entry |
rowcol_id required | integer (PrimaryKey) >= 1 Primary key |
mission required | string (Mission) Mission shortcode |
OK
Bad request
SatArchive server
{- "band": "string",
- "date": "2020-04-09",
- "rowcol_id": 1,
- "mission": "string"
}
{- "key": "file_key.tif"
}
band required | string (Band) Band shortcode |
date required | string <date> (Date) Date of entry |
rowcol_id required | integer (PrimaryKey) >= 1 Primary key |
mission required | string (Mission) Mission shortcode |
OK
Bad request
SatArchive server
{- "band": "string",
- "date": "2020-04-09",
- "rowcol_id": 1,
- "mission": "string"
}
{- "key": "file_key.tif"
}
start_date required | string <date> (StartDate) Start date of search |
end_date required | string <date> (EndDate) End date of search |
rowcol_id required | integer (PrimaryKey) >= 1 Primary key |
bands required | object (BandsParam) Dictionary specifying which bands to provision for the request |
OK
Bad request
SatArchive server
{- "start_date": "2020-04-09",
- "end_date": "2020-04-09",
- "rowcol_id": 1,
- "bands": {
- "S1": [
- "VV"
], - "S2": [
- "B01",
- "B02"
]
}
}
{- "key": "file_key.tif"
}
geojson required | object (Polygon) A geojson polygon |
poly_id required | string Id of the polygon for use in creating the path to save to |
dst_bucket required | string Bucket to write the clipped files to |
bands required | object (BandsParam) Dictionary specifying which bands to provision for the request |
date_range | Array of strings <date> Start and end date to provision |
OK
Bad request
SatArchive server
{- "geojson": {
- "type": "Polygon",
- "coordinates": [
- [
- [
- -2.10113525390625,
- 53.51418452077113
], - [
- -2.116241455078125,
- 53.477421969613324
], - [
- -2.055816650390625,
- 53.48232548469942
], - [
- -2.0489501953125,
- 53.51418452077113
], - [
- -2.10113525390625,
- 53.51418452077113
]
]
]
}, - "poly_id": "string",
- "dst_bucket": "string",
- "bands": {
- "S1": [
- "VV"
], - "S2": [
- "B01",
- "B02"
]
}, - "date_range": [
- [
- "2020-04-01",
- "2020-04-07"
]
]
}
{- "file_keys": [
- "file1.tif",
- "file2.tif"
]
}
id required | string ID of the rowcol to query |
OK
SatArchive server
{- "id": 1,
- "row": 0,
- "col": 0,
- "geom": {
- "type": "Polygon",
- "coordinates": [
- [
- [
- -2.10113525390625,
- 53.51418452077113
], - [
- -2.116241455078125,
- 53.477421969613324
], - [
- -2.055816650390625,
- 53.48232548469942
], - [
- -2.0489501953125,
- 53.51418452077113
], - [
- -2.10113525390625,
- 53.51418452077113
]
]
]
}
}
Patch endpoint to activate a given gridcell
rowcol_id required | integer |
OK
Bad request
SatArchive server
{- "rowcol_id": 100
}
{- "message": "rowcol 100 activated"
}
Patch endpoint to deactivate a given gridcell
rowcol_id required | integer |
OK
Bad request
SatArchive server
{- "rowcol_id": 100
}
{- "message": "rowcol 100 deactivated"
}
bands | object (BandsParam) Dictionary specifying which bands to provision for the request |
OK
SatArchive server
{- "bands": {
- "S1": [
- "VV"
], - "S2": [
- "B01",
- "B02"
]
}
}
{- "message": "100 cloud tasks created"
}