{
  "openapi": "3.0.1",
  "info": {
    "title": "Satellite Imagery STAC API: Sentinel-2, Landsat, Cloud Cover",
    "description": "Satellite imagery STAC search on your own EarthDaily EarthPlatform account: find Sentinel-2, Landsat, Sentinel-1, Venus and EarthDaily items by area, date and cloud cover, read items by ID, and list collections. Metadata only. Never orders. Bring your own key.",
    "version": "0.1",
    "x-build-id": "OoefqJum7MwyqHhhM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nabeelbaghoor~satellite-imagery-stac-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nabeelbaghoor-satellite-imagery-stac-api",
        "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/nabeelbaghoor~satellite-imagery-stac-api/runs": {
      "post": {
        "operationId": "runs-sync-nabeelbaghoor-satellite-imagery-stac-api",
        "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/nabeelbaghoor~satellite-imagery-stac-api/run-sync": {
      "post": {
        "operationId": "run-sync-nabeelbaghoor-satellite-imagery-stac-api",
        "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",
        "properties": {
          "mode": {
            "title": "What to get",
            "enum": [
              "itemSearch",
              "itemsById",
              "collections",
              "collectionDetails"
            ],
            "type": "string",
            "description": "Imagery item search finds STAC items in the collections you name over an area and dates, with cloud cover, sun angles, ground sample distance, platform and footprint. Imagery items by ID reads single items. Collection list shows every collection your account can see (Sentinel-2, Landsat, Sentinel-1, Venus, EarthDaily Constellation, cloud masks, mosaics and more). Collection details reads chosen collections. Nothing in any mode places an order or spends money.",
            "default": "itemSearch"
          },
          "collections": {
            "title": "Collections",
            "type": "array",
            "description": "Imagery item search needs at least one collection ID, for example sentinel-2-l2a, landsat-c2l2-sr, sentinel-1-grd or venus-l2a (Collection list shows them all). Collection details reads each one listed. Imagery items by ID uses the first one for IDs given without their own collection. Up to 50.",
            "items": {
              "type": "string"
            }
          },
          "ids": {
            "title": "Item IDs",
            "type": "array",
            "description": "Imagery items by ID needs at least one: an item ID, collection/itemId, or an item URL, one per line, up to 500. In Imagery item search, optional: keep only these item IDs.",
            "items": {
              "type": "string"
            }
          },
          "aoi": {
            "title": "Area of interest (GeoJSON)",
            "type": "object",
            "description": "Imagery item search. A GeoJSON Point, Polygon or MultiPolygon in WGS84 longitude, latitude order; a Feature or FeatureCollection holding one also works (first feature only). Items that intersect it are returned. Leave empty to search everywhere."
          },
          "bbox": {
            "title": "Bounding box",
            "type": "string",
            "description": "Imagery item search, instead of the area of interest. west,south,east,north in WGS84 degrees, for example -1.757813,51.971346,-0.065918,52.589701."
          },
          "startDate": {
            "title": "Start date",
            "type": "string",
            "description": "Imagery item search. First capture date, YYYY-MM-DD. Leave empty for no lower bound."
          },
          "endDate": {
            "title": "End date",
            "type": "string",
            "description": "Imagery item search. Last capture date, YYYY-MM-DD. Leave empty for no upper bound."
          },
          "maxCloudCover": {
            "title": "Maximum cloud cover (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "Imagery item search. Keep optical items whose eo:cloud_cover is at or below this percentage. Radar collections carry no cloud cover, so leave it empty for them."
          },
          "minSunElevation": {
            "title": "Minimum sun elevation (degrees)",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "Imagery item search. Keep items whose view:sun_elevation is at least this many degrees."
          },
          "cloudMaskAvailable": {
            "title": "Only items with a cloud mask",
            "type": "boolean",
            "description": "Imagery item search. Keep only items for which an EarthDaily cloud mask exists (eda:cloud_mask_available).",
            "default": false
          },
          "query": {
            "title": "Advanced property query",
            "type": "object",
            "description": "Imagery item search, optional. A Query Extension object, each property and operator joined with AND, for example {\"view:sun_elevation\": {\"gt\": 40, \"lt\": 60}}. Operators: eq, neq, lt, lte, gt, gte, startsWith, endsWith, contains, in. The provider lists queryable properties per collection; an unsupported one returns no items for that collection."
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "newest",
              "leastCloudy"
            ],
            "type": "string",
            "description": "Imagery item search. Newest first is the API's own order. Least cloudy first returns only items that carry a cloud cover value."
          },
          "collectionFilter": {
            "title": "Collection filter",
            "type": "string",
            "description": "Collection list only. Keep collections whose ID, title, provider or keywords contain this text (case insensitive), for example sentinel or landsat."
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "The most rows this run returns and charges for. Paging stops here.",
            "default": 100
          },
          "apiKey": {
            "title": "API token (client secret)",
            "type": "string",
            "description": "In the EarthDaily console, open Account, API Credentials and click Provision new api credentials, then paste the client secret here. Exchanged once per run for an access token, never logged. You can also paste clientId:clientSecret here, or set the DATA_API_KEY secret to either."
          },
          "clientId": {
            "title": "Client ID",
            "type": "string",
            "description": "Leave empty for the documented default EARTHDAILY_API_TOKEN. Only needed if your API Credentials page shows a different client ID."
          },
          "tokenUrl": {
            "title": "Token URL",
            "type": "string",
            "description": "Leave empty for the default https://api.earthdaily.com/account_management/v1/authentication/api_tokens/exchange. Only needed if your API Credentials page shows a different access token URL (https only)."
          },
          "accessToken": {
            "title": "Access token",
            "type": "string",
            "description": "Instead of the API token: a ready bearer access token. Sent only to the STAC API in the Authorization header. Access tokens expire, so the API token is the better choice for scheduled runs."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}