<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to download data from OPEN ET using python for ArcGIS in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-download-data-from-open-et-using-python-for/m-p/1672024#M100754</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have the following code below, and it does not seem to work. When plugged into Gemini it seems to say that I need a reference_et file, but when I do add that parameter it spits out an error message. Is there a way that I can view what I need to pass as a parameter into payload to get the code to work?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;import requests&lt;BR /&gt;import json&lt;BR /&gt;import os&lt;BR /&gt;from pathlib import Path&lt;/P&gt;&lt;P&gt;# Your OpenET API Key&lt;BR /&gt;API_KEY = "QbdUNjoQtrKCwGBqr3yHKFDC9z9G0HMdZWs2ZUzzfdgIrJTz9q0nuKGRz56m"&lt;/P&gt;&lt;P&gt;payload = {&lt;BR /&gt;"date_range": ["2020-01-01", "2020-12-31"],&lt;BR /&gt;"interval": "monthly",&lt;BR /&gt;"geometry": [-121.36322, 38.87626], # [longitude, latitude]&lt;BR /&gt;"model": "Ensemble",&lt;BR /&gt;"variable": "ET",&lt;BR /&gt;"units": "mm",&lt;BR /&gt;"file_format": "JSON" # Other formats like GeoJSON, CSV might be available depending on endpoint&lt;BR /&gt;# added required field here&lt;BR /&gt;"reference_et": True&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;headers = {&lt;BR /&gt;"accept": "application/json",&lt;BR /&gt;"Authorization": API_KEY,&lt;BR /&gt;"Content-Type": "application/json"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;url = "&lt;A href="https://openet-api.org/raster/timeseries/point" target="_blank" rel="noopener"&gt;https://openet-api.org/raster/timeseries/point&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;# Make the POST request&lt;BR /&gt;response = requests.post(url, json=payload, headers=headers)&lt;/P&gt;&lt;P&gt;# Check if the request was successful&lt;BR /&gt;if response.status_code == 200:&lt;BR /&gt;data = response.json()&lt;BR /&gt;# Handle the data as a Python dictionary/list&lt;BR /&gt;print("Data successfully downloaded from OpenET API.")&lt;BR /&gt;else:&lt;BR /&gt;print(f"Error: {response.status_code} - {response.text}")&lt;BR /&gt;data = None&lt;/P&gt;</description>
    <pubDate>Wed, 10 Dec 2025 17:28:59 GMT</pubDate>
    <dc:creator>CephasHurr</dc:creator>
    <dc:date>2025-12-10T17:28:59Z</dc:date>
    <item>
      <title>How to download data from OPEN ET using python for ArcGIS</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-download-data-from-open-et-using-python-for/m-p/1672024#M100754</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have the following code below, and it does not seem to work. When plugged into Gemini it seems to say that I need a reference_et file, but when I do add that parameter it spits out an error message. Is there a way that I can view what I need to pass as a parameter into payload to get the code to work?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;import requests&lt;BR /&gt;import json&lt;BR /&gt;import os&lt;BR /&gt;from pathlib import Path&lt;/P&gt;&lt;P&gt;# Your OpenET API Key&lt;BR /&gt;API_KEY = "QbdUNjoQtrKCwGBqr3yHKFDC9z9G0HMdZWs2ZUzzfdgIrJTz9q0nuKGRz56m"&lt;/P&gt;&lt;P&gt;payload = {&lt;BR /&gt;"date_range": ["2020-01-01", "2020-12-31"],&lt;BR /&gt;"interval": "monthly",&lt;BR /&gt;"geometry": [-121.36322, 38.87626], # [longitude, latitude]&lt;BR /&gt;"model": "Ensemble",&lt;BR /&gt;"variable": "ET",&lt;BR /&gt;"units": "mm",&lt;BR /&gt;"file_format": "JSON" # Other formats like GeoJSON, CSV might be available depending on endpoint&lt;BR /&gt;# added required field here&lt;BR /&gt;"reference_et": True&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;headers = {&lt;BR /&gt;"accept": "application/json",&lt;BR /&gt;"Authorization": API_KEY,&lt;BR /&gt;"Content-Type": "application/json"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;url = "&lt;A href="https://openet-api.org/raster/timeseries/point" target="_blank" rel="noopener"&gt;https://openet-api.org/raster/timeseries/point&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;# Make the POST request&lt;BR /&gt;response = requests.post(url, json=payload, headers=headers)&lt;/P&gt;&lt;P&gt;# Check if the request was successful&lt;BR /&gt;if response.status_code == 200:&lt;BR /&gt;data = response.json()&lt;BR /&gt;# Handle the data as a Python dictionary/list&lt;BR /&gt;print("Data successfully downloaded from OpenET API.")&lt;BR /&gt;else:&lt;BR /&gt;print(f"Error: {response.status_code} - {response.text}")&lt;BR /&gt;data = None&lt;/P&gt;</description>
      <pubDate>Wed, 10 Dec 2025 17:28:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-download-data-from-open-et-using-python-for/m-p/1672024#M100754</guid>
      <dc:creator>CephasHurr</dc:creator>
      <dc:date>2025-12-10T17:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to download data from OPEN ET using python for ArcGIS</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-download-data-from-open-et-using-python-for/m-p/1672035#M100755</link>
      <description>&lt;P&gt;ChatGPT says ---&lt;/P&gt;&lt;P&gt;It looks like you're &lt;EM&gt;very close&lt;/EM&gt;, but your Python script has &lt;STRONG&gt;two issues&lt;/STRONG&gt;:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Syntax error in the payload dictionary&lt;/STRONG&gt; — you're missing a comma before "reference_et".&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Indentation error&lt;/STRONG&gt; under if response.status_code == 200: — your block is not indented.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Wed, 10 Dec 2025 17:55:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-download-data-from-open-et-using-python-for/m-p/1672035#M100755</guid>
      <dc:creator>JeffSilberberg</dc:creator>
      <dc:date>2025-12-10T17:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to download data from OPEN ET using python for ArcGIS</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-download-data-from-open-et-using-python-for/m-p/1672042#M100756</link>
      <description>&lt;P&gt;Thanks Jeff! It worked!&lt;/P&gt;</description>
      <pubDate>Wed, 10 Dec 2025 18:27:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-download-data-from-open-et-using-python-for/m-p/1672042#M100756</guid>
      <dc:creator>CephasHurr</dc:creator>
      <dc:date>2025-12-10T18:27:49Z</dc:date>
    </item>
  </channel>
</rss>

