Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save wvovaw/363b98fdc034bd4a03c09ab102328943 to your computer and use it in GitHub Desktop.
Save wvovaw/363b98fdc034bd4a03c09ab102328943 to your computer and use it in GitHub Desktop.
Original NASA Mars photos API schema for Perseverance and Curiosity rovers
{
"info": {
"_postman_id": "5be5d43b-8bce-418d-a8f8-9eb7a42c2911",
"name": "NASA original API",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "14509461"
},
"item": [
{
"name": "Mars2020,ingenuity",
"item": [
{
"name": "Get latest sols, total photos count",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "https://mars.nasa.gov/rss/api/?ver=1.2&feed=raw_images&feedtype=json&category=mars2020,ingenuity&latest=true",
"protocol": "https",
"host": [
"mars",
"nasa",
"gov"
],
"path": [
"rss",
"api",
""
],
"query": [
{
"key": "ver",
"value": "1.2"
},
{
"key": "feed",
"value": "raw_images"
},
{
"key": "feedtype",
"value": "json"
},
{
"key": "category",
"value": "mars2020,ingenuity"
},
{
"key": "latest",
"value": "true"
}
]
}
},
"response": []
},
{
"name": "Get images with pagination, filters by sols (range/starts/ends/list of sols), cameras",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "https://mars.nasa.gov/rss/api/?ver=1.2&feed=raw_images&feedtype=json&category=mars2020,ingenuity&num=100&page=0&order=sol+asc&condition_2=123:sol:gte&condition_3=124:sol:lte&search=|NAVCAM_LEFT|NAVCAM_RIGHT|FRONT_HAZCAM_LEFT_A|FRONT_HAZCAM_LEFT_B|FRONT_HAZCAM_RIGHT_A|FRONT_HAZCAM_RIGHT_B|REAR_HAZCAM_LEFT|REAR_HAZCAM_RIGHT|CACHECAM|MCZ_LEFT|MCZ_RIGHT|SKYCAM|PIXL_MCC|SHERLOC_WATSON|SHERLOC_ACI|SUPERCAM_RMI|EDL_PUCAM1|EDL_PUCAM2|EDL_DDCAM|EDL_RUCAM|EDL_RDCAM|LCAM|HELI_NAV|HELI_RTE",
"protocol": "https",
"host": [
"mars",
"nasa",
"gov"
],
"path": [
"rss",
"api",
""
],
"query": [
{
"key": "ver",
"value": "1.2"
},
{
"key": "feed",
"value": "raw_images"
},
{
"key": "feedtype",
"value": "json"
},
{
"key": "category",
"value": "mars2020,ingenuity",
"description": "Perseverance and its helicopter photos included"
},
{
"key": "num",
"value": "100",
"description": "Items per page (1..100)"
},
{
"key": "page",
"value": "0",
"description": "Number of page (ceil(total_results / num)) "
},
{
"key": "order",
"value": "sol+asc",
"description": "sol+[asc,desc] Sorting by sol"
},
{
"key": "condition_3",
"value": "100,205:sol:in",
"description": "Get particular sols",
"disabled": true
},
{
"key": "condition_2",
"value": "123:sol:gte",
"description": "Bottom sol limit (GTE - greater than or equal)"
},
{
"key": "condition_3",
"value": "124:sol:lte",
"description": "Top sol limit (LTE - less than or equal)"
},
{
"key": "search",
"value": "|NAVCAM_LEFT|NAVCAM_RIGHT|FRONT_HAZCAM_LEFT_A|FRONT_HAZCAM_LEFT_B|FRONT_HAZCAM_RIGHT_A|FRONT_HAZCAM_RIGHT_B|REAR_HAZCAM_LEFT|REAR_HAZCAM_RIGHT|CACHECAM|MCZ_LEFT|MCZ_RIGHT|SKYCAM|PIXL_MCC|SHERLOC_WATSON|SHERLOC_ACI|SUPERCAM_RMI|EDL_PUCAM1|EDL_PUCAM2|EDL_DDCAM|EDL_RUCAM|EDL_RDCAM|LCAM|HELI_NAV|HELI_RTE",
"description": "All available cameras (Group them)"
},
{
"key": "extended",
"value": "sample_type::full,product_id::ecv,",
"description": "Include video frames",
"disabled": true
}
]
}
},
"response": []
},
{
"name": "Get image by id",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "https://mars.nasa.gov/rss/api/?feed=raw_images&category=mars2020,ingenuity&feedtype=json&id=WSM_0123_0677846282_000ECM_N0041644MEDA03445_0000LUJ",
"protocol": "https",
"host": [
"mars",
"nasa",
"gov"
],
"path": [
"rss",
"api",
""
],
"query": [
{
"key": "feed",
"value": "raw_images"
},
{
"key": "category",
"value": "mars2020,ingenuity"
},
{
"key": "feedtype",
"value": "json"
},
{
"key": "id",
"value": "WSM_0123_0677846282_000ECM_N0041644MEDA03445_0000LUJ"
}
]
}
},
"response": []
}
]
},
{
"name": "Mars Science Laboratory",
"item": [
{
"name": "Get latest sols, total photos",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "https://mars.nasa.gov/api/v1/raw_image_items/msl/latest/",
"protocol": "https",
"host": [
"mars",
"nasa",
"gov"
],
"path": [
"api",
"v1",
"raw_image_items",
"msl",
"latest",
""
]
}
},
"response": []
},
{
"name": "Get images with pagination",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "https://mars.nasa.gov/api/v1/raw_image_items/?order=sol+asc,instrument_sort+desc,sample_type_sort+desc,date_taken+asc&per_page=100&page=0&extended=thumbnail::sample_type::noteq&search=|FHAZ_RIGHT_A|FHAZ_LEFT_A|FHAZ_RIGHT_B|FHAZ_LEFT_B|RHAZ_RIGHT_A|RHAZ_LEFT_A|RHAZ_RIGHT_B|RHAZ_LEFT_B|NAV_LEFT_A|NAV_LEFT_B|NAV_RIGHT_A|NAV_RIGHT_B|CHEMCAM_RMI|MARDI|MAHLI|MAST_LEFT|MAST_RIGHT&condition_2=123:sol:gte&condition_3=124:sol:lte",
"protocol": "https",
"host": [
"mars",
"nasa",
"gov"
],
"path": [
"api",
"v1",
"raw_image_items",
""
],
"query": [
{
"key": "order",
"value": "sol+asc,instrument_sort+desc,sample_type_sort+desc,date_taken+asc",
"description": "Rich sorting options"
},
{
"key": "per_page",
"value": "100",
"description": "Items per page (1..inf)"
},
{
"key": "page",
"value": "0",
"description": "Number of page (ceil(total_results / num)) "
},
{
"key": "condition_1",
"value": "msl:mission",
"disabled": true
},
{
"key": "extended",
"value": "full::sample_type,%25product_category:focus_merge%25::filter_name::ilike,%25product_category:image%25::filter_name::ilike,downsampled::sample_type,mixed::sample_type,chemcam+prc::sample_type,subframe::sample_type,thumbnail::sample_type",
"description": "I'm not sure how to use all of it",
"disabled": true
},
{
"key": "extended",
"value": "thumbnail::sample_type::eq",
"description": "Use thumbnails",
"disabled": true
},
{
"key": "extended",
"value": "thumbnail::sample_type::noteq",
"description": "Don't use thumbnails !NECESSARY!"
},
{
"key": "search",
"value": "|FHAZ_RIGHT_A|FHAZ_LEFT_A|FHAZ_RIGHT_B|FHAZ_LEFT_B|RHAZ_RIGHT_A|RHAZ_LEFT_A|RHAZ_RIGHT_B|RHAZ_LEFT_B|NAV_LEFT_A|NAV_LEFT_B|NAV_RIGHT_A|NAV_RIGHT_B|CHEMCAM_RMI|MARDI|MAHLI|MAST_LEFT|MAST_RIGHT"
},
{
"key": "condition_2",
"value": "123:sol:gte",
"description": "Bottom sol limit (GTE - greater than or equal)"
},
{
"key": "condition_3",
"value": "124:sol:lte",
"description": "Top sol limit (LTE - less than or equal)"
}
]
}
},
"response": []
},
{
"name": "Get image by id",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "https://mars.nasa.gov/api/v1/raw_image_items/?condition_1=NRA_408414117EDR_D0050938TRAV00032M_:imageid:eq",
"protocol": "https",
"host": [
"mars",
"nasa",
"gov"
],
"path": [
"api",
"v1",
"raw_image_items",
""
],
"query": [
{
"key": "condition_1",
"value": "NRA_408414117EDR_D0050938TRAV00032M_:imageid:eq"
}
]
}
},
"response": []
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment