Get time series GeoJSON for river reach¶
Search for a single river reach by reach ID:
Will return GeoJSON:
{
"status": "200 OK",
"time": 95.289,
"hits": 12,
"results": {
"csv": "",
"geojson": {
"type": "FeatureCollection",
"features": [
{
"id": "0",
"type": "Feature",
"properties": {
"reach_id": "78340600051",
"time_str": "2024-01-30T09:38:35Z",
"wse": "386.0336",
"slope": "-0.0021629125",
"wse_units": "m",
"slope_units": "m/m"
},
"geometry": {
"type": "LineString",
"coordinates": [
[-127.330039, 54.99239],
[-127.32957, 54.992383],
"...",
[-127.285739, 54.942484]
]
}
},
{
"id": "1",
"type": "Feature",
"properties": {
"reach_id": "78340600051",
"time_str": "2024-02-03T18:34:05Z",
"wse": "386.9557",
"slope": "-0.0019823218",
"wse_units": "m",
"slope_units": "m/m"
},
"geometry": {
"type": "LineString",
"coordinates": [
[-127.330039, 54.99239],
[-127.32957, 54.992383],
"...",
[-127.285739, 54.942484]
]
}
},
{
"id": "2",
"type": "Feature",
"properties": {
"reach_id": "78340600051",
"time_str": "2024-02-09T08:00:46Z",
"wse": "-999999999999.0",
"slope": "-999999999999.0",
"wse_units": "m",
"slope_units": "m/m"
},
"geometry": {
"type": "LineString",
"coordinates": [
[-127.330039, 54.99239],
[-127.32957, 54.992383],
"...",
[-127.285739, 54.942484]
]
}
}
]
}
}
}Note: Shortened for this example: only the first 3 of 12 features are shown, and each geometry shows 3 of its 329 coordinates.
Get time series GeoJSON for river reach with discharge¶
Search for a single river reach by reach ID, requesting the SoS Discharge fields. Discharge fields are only available for the Version 2.0 river collection, so collection_name=SWOT_L2_HR_RiverSP_2.0 is specified. Version 2.0 reaches serve only the Version 2.0 reach fields, so L2 measurements such as wse can’t be requested with it.
Will return GeoJSON:
{
"status": "200 OK",
"time": 76.701,
"hits": 3,
"results": {
"csv": "",
"geojson": {
"type": "FeatureCollection",
"features": [
{
"id": "0",
"type": "Feature",
"properties": {
"reach_id": "18180900091",
"time_str": "2025-04-08T01:01:01Z",
"sos_consensus_q": "72.91022466338953",
"sos_hivdi_q": "-999999999999.0",
"sos_metroman_q": "-999999999999.0",
"sos_momma_q": "-999999999999.0",
"sos_sad_q": "-999999999999.0",
"sos_sic4dvar_q": "72.91022466338953",
"sos_lakeflow_q": "-999999999999.0",
"swot_discharge_reanalysis": "72.91022466338953",
"sos_consensus_q_units": "m^3/s",
"sos_hivdi_q_units": "m^3/s",
"sos_metroman_q_units": "m^3/s",
"sos_momma_q_units": "m^3/s",
"sos_sad_q_units": "m^3/s",
"sos_sic4dvar_q_units": "m^3/s",
"sos_lakeflow_q_units": "m^3/s",
"swot_discharge_reanalysis_units": "m^3/s"
},
"geometry": {
"type": "LineString",
"coordinates": [
[46.935083, -18.315388],
[46.935312, -18.315548],
"...",
[46.927729, -18.384032]
]
}
},
{
"id": "1",
"type": "Feature",
"properties": {
"reach_id": "18180900091",
"time_str": "2025-04-15T12:24:12Z",
"sos_consensus_q": "1060.3418312796152",
"sos_hivdi_q": "-999999999999.0",
"sos_metroman_q": "-999999999999.0",
"sos_momma_q": "-999999999999.0",
"sos_sad_q": "-999999999999.0",
"sos_sic4dvar_q": "1060.3418312796152",
"sos_lakeflow_q": "-999999999999.0",
"swot_discharge_reanalysis": "1060.3418312796152",
"sos_consensus_q_units": "m^3/s",
"sos_hivdi_q_units": "m^3/s",
"sos_metroman_q_units": "m^3/s",
"sos_momma_q_units": "m^3/s",
"sos_sad_q_units": "m^3/s",
"sos_sic4dvar_q_units": "m^3/s",
"sos_lakeflow_q_units": "m^3/s",
"swot_discharge_reanalysis_units": "m^3/s"
},
"geometry": {
"type": "LineString",
"coordinates": [
[46.935083, -18.315388],
[46.935312, -18.315548],
"...",
[46.927729, -18.384032]
]
}
},
{
"id": "2",
"type": "Feature",
"properties": {
"reach_id": "18180900091",
"time_str": "2025-04-28T21:46:06Z",
"sos_consensus_q": "179.12798112357618",
"sos_hivdi_q": "-999999999999.0",
"sos_metroman_q": "295.7076800569933",
"sos_momma_q": "139.43628483322104",
"sos_sad_q": "-999999999999.0",
"sos_sic4dvar_q": "62.548282190159064",
"sos_lakeflow_q": "-999999999999.0",
"swot_discharge_reanalysis": "179.12798112357618",
"sos_consensus_q_units": "m^3/s",
"sos_hivdi_q_units": "m^3/s",
"sos_metroman_q_units": "m^3/s",
"sos_momma_q_units": "m^3/s",
"sos_sad_q_units": "m^3/s",
"sos_sic4dvar_q_units": "m^3/s",
"sos_lakeflow_q_units": "m^3/s",
"swot_discharge_reanalysis_units": "m^3/s"
},
"geometry": {
"type": "LineString",
"coordinates": [
[46.935083, -18.315388],
[46.935312, -18.315548],
"...",
[46.927729, -18.384032]
]
}
}
]
}
}
}Note: Geometry coordinates simplified for this example (284 total coordinates per feature).
Get time series GeoJSON for river node¶
Search for a single river node by ID:
Will return GeoJSON:
{
"status": "200 OK",
"time": 482.824,
"hits": 4,
"results": {
"csv": "",
"geojson": {
"type": "FeatureCollection",
"features": [
{
"id": "0",
"type": "Feature",
"properties": {
"reach_id": "44404000151",
"node_id": "44404000150591",
"time_str": "2024-01-09T08:18:57Z",
"wse": "24.89255",
"wse_units": "m"
},
"geometry": {
"type": "Point",
"coordinates": [
102.543408,
3.40867
]
}
},
{
"id": "1",
"type": "Feature",
"properties": {
"reach_id": "44404000151",
"node_id": "44404000150591",
"time_str": "2024-01-14T19:32:23Z",
"wse": "22.06794",
"wse_units": "m"
},
"geometry": {
"type": "Point",
"coordinates": [
102.543408,
3.40867
]
}
},
{
"id": "2",
"type": "Feature",
"properties": {
"reach_id": "44404000151",
"node_id": "44404000150591",
"time_str": "2024-01-30T05:04:03Z",
"wse": "23.0522",
"wse_units": "m"
},
"geometry": {
"type": "Point",
"coordinates": [
102.543408,
3.40867
]
}
},
{
"id": "3",
"type": "Feature",
"properties": {
"reach_id": "44404000151",
"node_id": "44404000150591",
"time_str": "2024-02-04T16:17:29Z",
"wse": "21.68793",
"wse_units": "m"
},
"geometry": {
"type": "Point",
"coordinates": [
102.543408,
3.40867
]
}
}
]
}
}
}Get time series GeoJSON for river reach and its nodes¶
Search for a river reach and all of its nodes in one request. fields sets the reach fields and node_fields sets the node fields. See Reach and node responses for the response layout.
Will return GeoJSON (1 reach Feature and 52 node Features; 2 nodes shown):
{
"status": "200 OK",
"time": 846.187,
"hits": 53,
"results": {
"csv": "",
"geojson": {
"type": "FeatureCollection",
"features": [
{
"id": "0",
"type": "Feature",
"properties": {
"feature_type": "Reach",
"reach_id": "57203000041",
"time_str": "2026-04-19T19:08:16Z",
"wse": "7.6096",
"slope": "0.00135545806",
"wse_units": "m",
"slope_units": "m/m"
},
"geometry": {
"type": "LineString",
"coordinates": [
[171.24103, -42.454014],
[171.241175, -42.453743],
"...",
[171.341708, -42.437007]
]
}
},
{
"id": "1",
"type": "Feature",
"properties": {
"feature_type": "Node",
"reach_id": "57203000041",
"node_id": "57203000040011",
"time_str": "no_data",
"wse": "-999999999999.0",
"node_q": "3",
"wse_units": "m"
},
"geometry": {
"type": "Point",
"coordinates": [
171.241318,
-42.452933
]
}
},
"...",
{
"id": "20",
"type": "Feature",
"properties": {
"feature_type": "Node",
"reach_id": "57203000041",
"node_id": "57203000040201",
"time_str": "2026-04-19T19:08:16Z",
"wse": "6.06841",
"node_q": "0",
"wse_units": "m"
},
"geometry": {
"type": "Point",
"coordinates": [
171.280862,
-42.452075
]
}
},
"..."
]
}
}
}Note: Geometry coordinates simplified for this example (324 total coordinates for the reach). Each Feature has only its own feature type’s properties (e.g. no node_id or node_q on the reach, no slope on nodes).
Get time series GeoJSON for a lake¶
Search for a single lake by ID.
Will return GeoJSON:
{
"status": "200 OK",
"time": 410.161,
"hits": 2,
"results": {
"csv": "",
"geojson": {
"type": "FeatureCollection",
"features": [
{
"id": "0",
"type": "Feature",
"properties": {
"lake_id": "6350036102",
"time_str": "2024-07-23T11:50:03Z",
"wse": "260.893",
"area_total": "0.483733",
"quality_f": "1",
"collection_shortname": "SWOT_L2_HR_LakeSP_D",
"crid": "PGD0",
"PLD_version": "202",
"range_start_time": "2024-07-23T11:44:34Z",
"wse_units": "m",
"area_total_units": "km^2"
},
"geometry": {
"type": "Point",
"coordinates": [
-42.592754,
-19.822244
]
}
},
{
"id": "1",
"type": "Feature",
"properties": {
"lake_id": "6350036102",
"time_str": "2024-07-25T22:48:23Z",
"wse": "260.803",
"area_total": "0.470057",
"quality_f": "1",
"collection_shortname": "SWOT_L2_HR_LakeSP_D",
"crid": "PGD0",
"PLD_version": "202",
"range_start_time": "2024-07-25T22:47:27Z",
"wse_units": "m",
"area_total_units": "km^2"
},
"geometry": {
"type": "Point",
"coordinates": [
-42.591732,
-19.822285
]
}
}
]
}
}
}NOTE: Due to the size of the original polygon in the lake (L2_HR_LakeSP) shapefiles, we are only returning the calculated center point of the lake. This is to facilitate conformance with the GeoJSON specification and center points should not be considered accurate.
Get time series CSV for river reach¶
Search for a single river reach by ID.
Will return CSV:
{
"status": "200 OK",
"time": 88.002,
"hits": 12,
"results": {
"csv": "reach_id,time_str,wse,slope,wse_units,slope_units\n78340600051,2024-01-30T09:38:35Z,386.0336,-0.0021629125,m,m/m\n78340600051,2024-02-03T18:34:05Z,386.9557,-0.0019823218,m,m/m\n78340600051,2024-02-09T08:00:46Z,-999999999999.0,-999999999999.0,m,m/m\n78340600051,2024-02-13T16:56:18Z,387.0513,-0.0021583661,m,m/m\n78340600051,2024-02-20T06:23:40Z,386.5979,-0.0021285298,m,m/m\n78340600051,2024-02-24T15:19:10Z,386.6074,-0.00197282,m,m/m\n78340600051,no_data,-999999999999.0,-999999999999.0,m,m/m\n78340600051,2024-03-05T13:41:22Z,387.0104,-0.0020154178,m,m/m\n78340600051,2024-03-12T03:08:43Z,386.5742,-0.0021428208,m,m/m\n78340600051,2024-03-16T12:04:12Z,386.5983,-0.0019235693,m,m/m\n78340600051,no_data,-999999999999.0,-999999999999.0,m,m/m\n78340600051,2024-03-26T10:26:26Z,386.3501,-0.0021486242,m,m/m\n",
"geojson": {}
}
}Get time series CSV for river reach with discharge¶
Search for a single river reach by reach ID, requesting the SoS Discharge fields in CSV format. As with the GeoJSON example, collection_name=SWOT_L2_HR_RiverSP_2.0 is specified since discharge fields are only available for the Version 2.0 river collection.
Will return CSV:
{
"status": "200 OK",
"time": 58.869,
"hits": 3,
"results": {
"csv": "reach_id,time_str,sos_consensus_q,sos_hivdi_q,sos_metroman_q,sos_momma_q,sos_sad_q,sos_sic4dvar_q,sos_lakeflow_q,swot_discharge_reanalysis,sos_consensus_q_units,sos_hivdi_q_units,sos_metroman_q_units,sos_momma_q_units,sos_sad_q_units,sos_sic4dvar_q_units,sos_lakeflow_q_units,swot_discharge_reanalysis_units\n18180900091,2025-04-08T01:01:01Z,72.91022466338953,-999999999999.0,-999999999999.0,-999999999999.0,-999999999999.0,72.91022466338953,-999999999999.0,72.91022466338953,m^3/s,m^3/s,m^3/s,m^3/s,m^3/s,m^3/s,m^3/s,m^3/s\n18180900091,2025-04-15T12:24:12Z,1060.3418312796152,-999999999999.0,-999999999999.0,-999999999999.0,-999999999999.0,1060.3418312796152,-999999999999.0,1060.3418312796152,m^3/s,m^3/s,m^3/s,m^3/s,m^3/s,m^3/s,m^3/s,m^3/s\n18180900091,2025-04-28T21:46:06Z,179.12798112357618,-999999999999.0,295.7076800569933,139.43628483322104,-999999999999.0,62.548282190159064,-999999999999.0,179.12798112357618,m^3/s,m^3/s,m^3/s,m^3/s,m^3/s,m^3/s,m^3/s,m^3/s\n",
"geojson": {}
}
}Get time series CSV for river reach with all Version 2.0 reach fields¶
Search for a single river reach by reach ID, requesting all of the Version 2.0 reach fields in CSV format: reach ID, SoS Discharge, times, granule details, geometry, and some SWORD fields. Copy the fields list from this request to get every field still served for Version 2.0 reaches.
Will return CSV:
{
"status": "200 OK",
"time": 83.83,
"hits": 1,
"results": {
"csv": "reach_id,time,time_str,p_lat,p_lon,river_name,sos_consensus_q,sos_hivdi_q,sos_metroman_q,sos_momma_q,sos_sad_q,sos_sic4dvar_q,sos_lakeflow_q,swot_discharge_reanalysis,range_start_time,range_end_time,continent_id,sword_version,collection_shortname,collection_version,granuleUR,ingest_time,geometry,rch_id_up,rch_id_dn,n_reach_up,n_reach_dn,p_maf,p_length,p_dist_out,p_dam_id,p_n_ch_max,p_n_ch_mod,p_low_slp,time_units,p_lat_units,p_lon_units,sos_consensus_q_units,sos_hivdi_q_units,sos_metroman_q_units,sos_momma_q_units,sos_sad_q_units,sos_sic4dvar_q_units,sos_lakeflow_q_units,swot_discharge_reanalysis_units,rch_id_up_units,rch_id_dn_units,n_reach_up_units,n_reach_dn_units,p_maf_units,p_length_units,p_dist_out_units,p_dam_id_units,p_n_ch_max_units,p_n_ch_mod_units\n18180900091,799191966.555,2025-04-28T21:46:06Z,-18.34764282,46.9249928,Ikopa,179.12798112357618,-999999999999.0,295.7076800569933,139.43628483322104,-999999999999.0,62.548282190159064,-999999999999.0,179.12798112357618,2025-04-28T21:44:15Z,2025-04-28T21:47:21Z,AF,16,SWOT_L2_HR_RiverSP_2.0,2.0,SWOT_L2_HR_RiverSP_Reach_032_025_AF_20250428T214415_20250428T214721_PIC2_01.zip,2025-05-03T12:26:20Z,\"LINESTRING (46.935083 -18.315388, 46.935312 -18.315548, 46.935541 -18.315709, 46.935827 -18.315868, 46.936112 -18.316028, 46.936341 -18.316188, 46.936514 -18.316458, 46.936631 -18.316727, 46.936634 -18.316998, 46.936637 -18.317269, 46.93664 -18.31754, 46.936699 -18.317811, 46.936702 -18.318082, 46.936819 -18.318352, 46.936879 -18.318622, 46.936939 -18.318892, 46.936998 -18.319163, 46.937058 -18.319433, 46.937118 -18.319704, 46.937178 -18.319974, 46.937237 -18.320245, 46.93724 -18.320516, 46.937357 -18.320785, 46.93736 -18.321056, 46.93742 -18.321327, 46.937423 -18.321598, 46.937368 -18.321815, 46.9372 -18.322034, 46.9372 -18.322034, 46.936751 -18.322418, 46.936468 -18.322529, 46.936186 -18.32264, 46.935903 -18.322697, 46.935619 -18.3227, 46.935335 -18.322703, 46.935052 -18.32276, 46.934769 -18.322817, 46.934486 -18.322928, 46.934204 -18.323094, 46.93398 -18.323313, 46.933812 -18.323532, 46.933645 -18.323804, 46.933534 -18.324076, 46.933424 -18.324349, 46.933256 -18.324621, 46.933089 -18.324894, 46.932922 -18.325167, 46.932698 -18.32544, 46.932473 -18.325659, 46.932249 -18.325878, 46.931967 -18.326044, 46.931685 -18.326209, 46.931402 -18.32632, 46.93112 -18.326486, 46.930838 -18.326651, 46.930557 -18.326871, 46.930276 -18.327091, 46.929995 -18.327365, 46.929714 -18.327638, 46.929433 -18.327858, 46.929151 -18.328024, 46.928869 -18.328189, 46.928586 -18.3283, 46.928303 -18.328357, 46.928021 -18.328469, 46.927795 -18.328634, 46.92757 -18.328798, 46.92757 -18.328798, 46.927121 -18.329237, 46.926896 -18.329402, 46.926614 -18.329567, 46.926332 -18.329732, 46.926049 -18.329844, 46.925767 -18.330009, 46.925485 -18.330175, 46.925203 -18.330286, 46.92492 -18.330397, 46.924638 -18.330508, 46.924355 -18.33062, 46.924073 -18.330785, 46.923792 -18.331005, 46.92351 -18.33117, 46.923004 -18.331609, 46.923004 -18.331609, 46.922893 -18.331827, 46.922782 -18.332045, 46.922671 -18.332317, 46.92256 -18.332481, 46.922391 -18.332645, 46.922109 -18.332811, 46.921827 -18.332976, 46.921545 -18.333141, 46.921321 -18.333415, 46.921211 -18.333687, 46.921214 -18.333958, 46.921217 -18.334229, 46.92122 -18.3345, 46.921223 -18.334771, 46.921226 -18.335042, 46.921115 -18.335314, 46.921005 -18.335586, 46.920951 -18.335858, 46.920616 -18.336349, 46.920616 -18.336349, 46.920391 -18.336568, 46.920223 -18.336787, 46.920055 -18.337005, 46.919944 -18.337223, 46.91989 -18.337495, 46.919837 -18.337766, 46.91984 -18.338037, 46.919899 -18.338308, 46.919959 -18.338578, 46.920019 -18.338848, 46.920135 -18.339118, 46.920138 -18.339389, 46.920028 -18.339661, 46.919861 -18.339934, 46.919637 -18.340207, 46.919356 -18.340481, 46.919075 -18.340755, 46.918794 -18.341029, 46.918514 -18.341303, 46.918233 -18.341577, 46.918009 -18.34185, 46.917785 -18.342123, 46.917561 -18.342397, 46.917337 -18.34267, 46.917113 -18.342943, 46.916945 -18.343216, 46.916778 -18.343488, 46.916667 -18.343761, 46.916614 -18.344032, 46.91656 -18.344304, 46.916449 -18.344576, 46.916339 -18.344848, 46.916228 -18.34512, 46.916118 -18.345392, 46.916007 -18.345664, 46.915897 -18.345937, 46.915786 -18.346209, 46.915676 -18.346481, 46.915565 -18.346753, 46.915455 -18.347025, 46.915287 -18.347298, 46.915177 -18.34757, 46.91501 -18.347843, 46.914786 -18.348116, 46.914561 -18.348389, 46.914337 -18.348663, 46.91417 -18.348935, 46.914116 -18.349207, 46.914176 -18.349477, 46.914349 -18.349747, 46.914636 -18.350015, 46.914923 -18.350283, 46.91521 -18.350551, 46.915497 -18.350819, 46.915783 -18.351087, 46.91607 -18.351355, 46.9163 -18.351624, 46.916473 -18.351893, 46.916647 -18.352163, 46.91682 -18.352432, 46.916993 -18.352701, 46.917223 -18.35297, 46.917509 -18.353184, 46.917796 -18.353398, 46.918082 -18.353612, 46.918368 -18.353826, 46.918654 -18.35404, 46.918941 -18.354308, 46.919171 -18.354577, 46.919401 -18.354845, 46.919631 -18.355114, 46.919804 -18.355383, 46.919978 -18.355652, 46.920151 -18.355922, 46.920267 -18.356192, 46.920384 -18.356461, 46.920557 -18.356731, 46.92073 -18.357, 46.920961 -18.357269, 46.921247 -18.357483, 46.921533 -18.357697, 46.921819 -18.357911, 46.922105 -18.358124, 46.922392 -18.358338, 46.922678 -18.358607, 46.922965 -18.358875, 46.923252 -18.359143, 46.923539 -18.359411, 46.923825 -18.359625, 46.924341 -18.360053, 46.924341 -18.360053, 46.924513 -18.360268, 46.924686 -18.360483, 46.924803 -18.360753, 46.924919 -18.361023, 46.924979 -18.361294, 46.925039 -18.361564, 46.925042 -18.361835, 46.925101 -18.362105, 46.925048 -18.362377, 46.925107 -18.362647, 46.92511 -18.362918, 46.925113 -18.363189, 46.92506 -18.363461, 46.925063 -18.363732, 46.925009 -18.364003, 46.925012 -18.364274, 46.925072 -18.364545, 46.925131 -18.364815, 46.925191 -18.365086, 46.925251 -18.365356, 46.925311 -18.365627, 46.925314 -18.365898, 46.925317 -18.366169, 46.92532 -18.36644, 46.925323 -18.366711, 46.925383 -18.366981, 46.925386 -18.367252, 46.925389 -18.367523, 46.925392 -18.367794, 46.925395 -18.368065, 46.925341 -18.368337, 46.925344 -18.368608, 46.925347 -18.368879, 46.92535 -18.36915, 46.925353 -18.369421, 46.925356 -18.369692, 46.925359 -18.369963, 46.925362 -18.370233, 46.925422 -18.370504, 46.925425 -18.370775, 46.925371 -18.371046, 46.925317 -18.371318, 46.925263 -18.37159, 46.925153 -18.371862, 46.925099 -18.372133, 46.925102 -18.372404, 46.925162 -18.372675, 46.925278 -18.372945, 46.925452 -18.373214, 46.925682 -18.373483, 46.925855 -18.373752, 46.926028 -18.374021, 46.926145 -18.374291, 46.926205 -18.374561, 46.926208 -18.374832, 46.926324 -18.375102, 46.926327 -18.375373, 46.926273 -18.375645, 46.92622 -18.375916, 46.926109 -18.376188, 46.925942 -18.376461, 46.925831 -18.376733, 46.925778 -18.377005, 46.925724 -18.377276, 46.925727 -18.377547, 46.925787 -18.377818, 46.925846 -18.378088, 46.925849 -18.378359, 46.925909 -18.37863, 46.926026 -18.3789, 46.926142 -18.379169, 46.926259 -18.379439, 46.926375 -18.379709, 46.926492 -18.379979, 46.926608 -18.380249, 46.926668 -18.380519, 46.926671 -18.38079, 46.926788 -18.38106, 46.926904 -18.38133, 46.926964 -18.3816, 46.927024 -18.381871, 46.927084 -18.382141, 46.927144 -18.382412, 46.927203 -18.382682, 46.92732 -18.382952, 46.927436 -18.383222, 46.927553 -18.383492, 46.927669 -18.383761, 46.927729 -18.384032)\",\"18180900101, no_data, no_data, no_data\",\"18180900081, no_data, no_data, no_data\",1,1,-999999999999.0,9368.913311,626983.999,0,3,1,0,seconds since 2000-01-01 00:00:00.000,degrees_north,degrees_east,m^3/s,m^3/s,m^3/s,m^3/s,m^3/s,m^3/s,m^3/s,m^3/s,1,1,1,1,m^3/s,m,m,1,1,1\n",
"geojson": {}
}
}Get time series CSV for river node¶
Search for a single river node by ID.
Will return CSV:
{
"status": "200 OK",
"time": 806.167,
"hits": 4,
"results": {
"csv": "node_id,reach_id,time_str,wse,geometry,wse_units\n44404000150591,44404000151,2024-01-09T08:18:57Z,24.89255,POINT (102.543408 3.40867),m\n44404000150591,44404000151,2024-01-14T19:32:23Z,22.06794,POINT (102.543408 3.40867),m\n44404000150591,44404000151,2024-01-30T05:04:03Z,23.0522,POINT (102.543408 3.40867),m\n44404000150591,44404000151,2024-02-04T16:17:29Z,21.68793,POINT (102.543408 3.40867),m\n",
"geojson": {}
}
}Get time series CSV for river reach and its nodes¶
Search for a river reach and all of its nodes in one request, as CSV.
Will return CSV (1 reach row and 52 node rows; truncated):
{
"status": "200 OK",
"time": 1106.641,
"hits": 53,
"results": {
"csv": "feature_type,reach_id,node_id,time_str,wse,slope,node_q,wse_units,slope_units\nReach,57203000041,,2026-04-19T19:08:16Z,7.6096,0.00135545806,,m,m/m\nNode,57203000041,57203000040011,no_data,-999999999999.0,,3,m,\n...\nNode,57203000041,57203000040201,2026-04-19T19:08:16Z,6.06841,,0,m,\n...\n",
"geojson": {}
}
}Use output=csv_file to download the same data as a file, named hydrocron_Reach_nodes_57203000041_2026-04-19_2026-04-20.csv by default.
Get time series CSV for lake¶
Search for a single lake by ID.
Will return CSV:
{
"status": "200 OK",
"time": 325.231,
"hits": 2,
"results": {
"csv": "lake_id,time_str,wse,area_total,quality_f,collection_shortname,crid,PLD_version,range_start_time,wse_units,area_total_units\n6350036102,2024-07-23T11:50:03Z,260.893,0.483733,1,SWOT_L2_HR_LakeSP_D,PGD0,202,2024-07-23T11:44:34Z,m,km^2\n6350036102,2024-07-25T22:48:23Z,260.803,0.470057,1,SWOT_L2_HR_LakeSP_D,PGD0,202,2024-07-25T22:47:27Z,m,km^2\n",
"geojson": {}
}
}Accept headers¶
See the documentation on the timeseries endpoint for an explanation of Accept headers.
Get time series for application/geo+json Accept Header¶
curl --header "Accept: application/geo+json" --location 'https://soto.podaac.earthdatacloud.nasa.gov/hydrocron/v1/timeseries?feature=Reach&feature_id=63470800171&start_time=2024-02-01T00:00:00%2b00:00&end_time=2024-10-30T00:00:00%2b00:00&fields=reach_id,time_str,wse'Note: The output query parameter is not specified in the request.
Will return GeoJSON response:
{
"type": "FeatureCollection",
"features": [
{
"id": "0",
"type": "Feature",
"properties": {
"reach_id": [
"63470800171",
"63470800171",
"63470800171",
"..."
],
"time_str": [
"2024-02-08T13:48:48Z",
"2024-02-12T00:49:59Z",
"2024-02-29T10:33:53Z",
"..."
],
"wse": [
"493.9646",
"495.8134",
"489.3664",
"..."
],
"wse_units": [
"m",
"m",
"m",
"..."
]
},
"geometry": {
"type": "LineString",
"coordinates": [
[-46.100781, -15.940864],
[-46.101059, -15.940592],
"...",
[-46.122559, -15.875454]
]
}
}
]
}Note: Response truncated — 25 observations and 295 coordinates in full response.
Get time series for text/csv Accept Header¶
curl --header "Accept: text/csv" --location 'https://soto.podaac.earthdatacloud.nasa.gov/hydrocron/v1/timeseries?feature=Reach&feature_id=63470800171&start_time=2024-02-01T00:00:00%2b00:00&end_time=2024-10-30T00:00:00%2b00:00&fields=reach_id,time_str,wse'Note: The output query parameter is not specified in the request.
Will return a CSV response:
"reach_id,time_str,wse,wse_units\n63470800171,2024-02-08T13:48:48Z,493.9646,m\n63470800171,2024-02-12T00:49:59Z,495.8134,m\n63470800171,2024-02-29T10:33:53Z,489.3664,m\n...\n"Compact request¶
Get time series for application/json with compact=True¶
curl --location 'https://soto.podaac.earthdatacloud.nasa.gov/hydrocron/v1/timeseries?feature=Reach&feature_id=63470800171&start_time=2024-02-01T00:00:00%2b00:00&end_time=2024-10-30T00:00:00%2b00:00&fields=reach_id,time_str,wse&compact=true'Will return a compacted JSON response with metadata:
{
"status": "200 OK",
"time": 737.056,
"hits": 25,
"results": {
"csv": "",
"geojson": {
"type": "FeatureCollection",
"features": [
{
"id": "0",
"type": "Feature",
"properties": {
"reach_id": [
"63470800171",
"63470800171",
"63470800171",
"..."
],
"time_str": [
"2024-02-08T13:48:48Z",
"2024-02-12T00:49:59Z",
"2024-02-29T10:33:53Z",
"..."
],
"wse": [
"493.9646",
"495.8134",
"489.3664",
"..."
],
"wse_units": [
"m",
"m",
"m",
"..."
]
},
"geometry": {
"type": "LineString",
"coordinates": [
[-46.100781, -15.940864],
[-46.101059, -15.940592],
"...",
[-46.122559, -15.875454]
]
}
}
]
}
}
}Note: Response truncated — 25 observations and 295 coordinates in full response.
Get time series for application/geo+json¶
curl -v --header "Accept: application/geo+json" --location 'https://soto.podaac.earthdatacloud.nasa.gov/hydrocron/v1/timeseries?feature=Reach&feature_id=63470800171&start_time=2024-02-01T00:00:00%2b00:00&end_time=2024-10-30T00:00:00%2b00:00&fields=reach_id,time_str,wse'Note: Compacted response returned by default as no compact query parameter is specified.
Will return compacted GeoJSON response:
{
"type": "FeatureCollection",
"features": [
{
"id": "0",
"type": "Feature",
"properties": {
"reach_id": [
"63470800171",
"63470800171",
"63470800171",
"..."
],
"time_str": [
"2024-02-08T13:48:48Z",
"2024-02-12T00:49:59Z",
"2024-02-29T10:33:53Z",
"..."
],
"wse": [
"493.9646",
"495.8134",
"489.3664",
"..."
],
"wse_units": [
"m",
"m",
"m",
"..."
]
},
"geometry": {
"type": "LineString",
"coordinates": [
[-46.100781, -15.940864],
[-46.101059, -15.940592],
"...",
[-46.122559, -15.875454]
]
}
}
]
}Note: Response truncated — 25 observations and 295 coordinates in full response.
Get time series for application/geo+json with compact=False¶
curl --header "Accept: application/geo+json" --location 'https://soto.podaac.earthdatacloud.nasa.gov/hydrocron/v1/timeseries?feature=Reach&feature_id=63470800171&start_time=2024-02-01T00:00:00%2b00:00&end_time=2024-10-30T00:00:00%2b00:00&fields=reach_id,time_str,wse&compact=false'Note: The compact query parameter is specified.
Will return a GeoJSON response that is not compacted:
{
"type": "FeatureCollection",
"features": [
{
"id": "0",
"type": "Feature",
"properties": {
"reach_id": "63470800171",
"time_str": "2024-02-08T13:48:48Z",
"wse": "493.9646",
"wse_units": "m"
},
"geometry": {
"type": "LineString",
"coordinates": [
[-46.100781, -15.940864],
[-46.101059, -15.940592],
"...",
[-46.122559, -15.875454]
]
}
},
{
"id": "1",
"type": "Feature",
"properties": {
"reach_id": "63470800171",
"time_str": "2024-02-12T00:49:59Z",
"wse": "495.8134",
"wse_units": "m"
},
"geometry": {
"type": "LineString",
"coordinates": [
[-46.100781, -15.940864],
[-46.101059, -15.940592],
"...",
[-46.122559, -15.875454]
]
}
}
]
}Note: Response truncated — 25 features and 295 coordinates per feature in full response.