{
  "openapi": "3.0.1",
  "info": {
    "title": "NASA POWER Weather & Solar Data: Coordinates Export",
    "description": "Get daily or monthly NASA POWER weather and solar data for up to 10 latitude/longitude points: temperature, precipitation, wind, solar irradiance and more. One row per location, period and parameter with units; missing values are null and free.",
    "version": "0.1",
    "x-build-id": "9q0cEYqVzi2AQS2Gx"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cliqtomedia~nasa-power-climate-data/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cliqtomedia-nasa-power-climate-data",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/cliqtomedia~nasa-power-climate-data/runs": {
      "post": {
        "operationId": "runs-sync-cliqtomedia-nasa-power-climate-data",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/cliqtomedia~nasa-power-climate-data/run-sync": {
      "post": {
        "operationId": "run-sync-cliqtomedia-nasa-power-climate-data",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "locations"
        ],
        "properties": {
          "locations": {
            "title": "Locations (latitude, longitude[, label])",
            "maxItems": 10,
            "type": "array",
            "description": "Up to 10 points, one per line, as decimal degrees: \"42.03, -93.62\" or \"48.8566, 2.3522, Paris\". Latitude −90..90, longitude −180..180. NASA POWER is a ~0.5° global grid, so nearby points return the same cell. Invalid lines become error rows; duplicates are skipped.",
            "items": {
              "type": "string"
            }
          },
          "parameters": {
            "title": "Parameters",
            "maxItems": 20,
            "type": "array",
            "description": "NASA POWER parameter codes, up to 20, e.g. T2M (air temperature at 2 m), PRECTOTCORR (precipitation), WS2M (wind speed at 2 m), ALLSKY_SFC_SW_DWN (solar irradiance), RH2M, T2M_MAX, T2M_MIN. Full list: https://power.larc.nasa.gov/parameters/. Unknown codes are dropped with a warning. Default: T2M, PRECTOTCORR, WS2M, ALLSKY_SFC_SW_DWN.",
            "items": {
              "type": "string"
            }
          },
          "temporal": {
            "title": "Resolution",
            "enum": [
              "daily",
              "monthly"
            ],
            "type": "string",
            "description": "daily: one value per day, up to 366 days per run. monthly: one value per month for whole calendar years from 1981, plus the annual value.",
            "default": "daily"
          },
          "community": {
            "title": "Community (units)",
            "enum": [
              "AG",
              "RE",
              "SB"
            ],
            "type": "string",
            "description": "NASA POWER user community; it sets the units. AG (agroclimatology): solar in MJ/m^2/day. RE (renewable energy): solar in kW-hr/m^2/day. SB (sustainable buildings): solar in W/m^2. Temperature, rain and wind are the same in all three.",
            "default": "AG"
          },
          "lastDays": {
            "title": "Last N days",
            "minimum": 1,
            "maximum": 366,
            "type": "integer",
            "description": "Used when Start date is empty: the range ends on End date (or today) and covers this many days. NASA POWER usually lags 2–5 days, so the newest days come back as missing (value null, not charged).",
            "default": 30
          },
          "startDate": {
            "title": "Start date",
            "type": "string",
            "description": "First day, e.g. 2025-01-01. Data start on 1981-01-01. Daily runs cover at most 366 days; monthly runs use the whole year of this date. Leave empty to use Last N days (daily) or last year + this year (monthly)."
          },
          "endDate": {
            "title": "End date",
            "type": "string",
            "description": "Last day, inclusive. Empty means today. A future date is moved back to today (NASA POWER has no forecasts)."
          },
          "timeStandard": {
            "title": "Day boundary (daily only)",
            "enum": [
              "LST",
              "UTC"
            ],
            "type": "string",
            "description": "LST: days in local solar time (NASA POWER default). UTC: days in UTC. Monthly data are always LST.",
            "default": "LST"
          },
          "includeMissingValues": {
            "title": "Include missing values",
            "type": "boolean",
            "description": "Keep rows where NASA POWER has no value yet (fill value −999) as status \"missing\" with value null. They are never charged. Turn off to get only real values.",
            "default": true
          },
          "includeAnnual": {
            "title": "Include annual values (monthly only)",
            "type": "boolean",
            "description": "Monthly runs also return NASA POWER's annual value per year (period \"2025\", isAnnual true).",
            "default": true
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}