# Satellite Imagery STAC API: Sentinel-2, Landsat, Cloud Cover (`nabeelbaghoor/satellite-imagery-stac-api`) Actor

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.

- **URL**: https://apify.com/nabeelbaghoor/satellite-imagery-stac-api.md
- **Developed by:** [Nabeel Hassan](https://apify.com/nabeelbaghoor) (community)
- **Categories:** Developer tools, Integrations, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 imagery items

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Satellite Imagery STAC API: Sentinel-2, Landsat, Cloud Cover

Search satellite imagery by area, date and cloud cover across Sentinel-2, Landsat, Sentinel-1, Venus and EarthDaily collections, read items by ID and list collections, as clean dataset rows ready for a GIS, analytics or monitoring workflow.

Works with the official EarthDaily EarthPlatform STAC API on api.earthdaily.com/platform/v1/stac, using the endpoints documented on docs.earthdaily.com: Collections, Collection, Item and Search (with the Query and Sortby extensions).

**This actor never places an order.** It only searches and reads. EarthMosaics and constellation ordering, and the catalog insert and delete services, are not in its client at all, so a run cannot spend money or change a catalog. Output is metadata, never imagery files or download links.

Bring your own key, docs-checked but not live-tested: every path, body field and property name comes from the EarthPlatform API guide and the official Python client. A probe on 2026-11-11 confirmed every documented route exists (403 to a forged token, while invented paths answer 404), but the actor has not been run against a live EarthDaily account.

### What it does

- **Imagery item search**: name one or more collections, draw a GeoJSON area (or give a bounding box), pick dates, and get every matching item with capture time, platform, constellation, instruments, ground sample distance, cloud cover, sun elevation and azimuth, off nadir angle, EPSG code, grid tile, cloud mask availability, asset names and footprint.
- **Filters**: maximum cloud cover, minimum sun elevation, only items with an EarthDaily cloud mask, and an advanced Query Extension object for any queryable property. Sort newest first or least cloudy first.
- **Imagery items by ID**: read single items by ID, collection/ID or item URL.
- **Collection list**: every collection your account can see, with title, description, license, providers, keywords, spatial and temporal extent and item asset names, with an optional text filter.
- **Collection details**: the same for chosen collections.
- **Pay only for results**: empty searches, unknown IDs and requests the provider refuses come back as a free row that says why.

### How to get credentials

Sign in to the EarthDaily console, open Account, then API Credentials, and click Provision new api credentials. Paste the client secret it shows into the API token field (or set the DATA_API_KEY secret to it). The actor exchanges it once per run for an access token at the documented token URL, using the documented client ID EARTHDAILY_API_TOKEN.

If your API Credentials page shows a different client ID or access token URL, fill in the Client ID and Token URL fields, or paste `clientId:clientSecret` into the API token field. You can also paste a ready bearer access token into the Access token field.

Credentials are sent only to api.earthdaily.com (or the https token URL you give) and are removed from every log line.

### Input

| Field | Modes | Description |
| --- | --- | --- |
| `mode` | all | `itemSearch` (default), `itemsById`, `collections` or `collectionDetails` |
| `collections` | search, by ID, collection details | Collection IDs such as `sentinel-2-l2a`, `landsat-c2l2-sr`, `sentinel-1-grd`, `venus-l2a` |
| `ids` | by ID, search | Item IDs, `collection/itemId` or item URLs, up to 500 |
| `aoi` | search | A GeoJSON Point, Polygon or MultiPolygon (WGS84) |
| `bbox` | search | `west,south,east,north` instead of the area |
| `startDate`, `endDate` | search | YYYY-MM-DD capture dates |
| `maxCloudCover` | search | Percent, 0 to 100 (`eo:cloud_cover`) |
| `minSunElevation` | search | Degrees (`view:sun_elevation`) |
| `cloudMaskAvailable` | search | Only items with an EarthDaily cloud mask |
| `query` | search | Query Extension object, for example `{"view:sun_elevation": {"gt": 40}}` |
| `sort` | search | `newest` or `leastCloudy` |
| `collectionFilter` | collection list | Text the collection ID, title, provider or keywords contain |
| `maxResults` | all | Row cap per run (default 100) |
| `apiKey`, `clientId`, `tokenUrl`, `accessToken` | all | API token (secret), optional client ID and token URL, or an access token |

Example input:

```json
{
    "mode": "itemSearch",
    "collections": ["sentinel-2-l2a"],
    "bbox": "-124.19,48.73,-121.93,49.73",
    "startDate": "2025-06-01",
    "endDate": "2025-08-31",
    "maxCloudCover": 20,
    "sort": "leastCloudy",
    "maxResults": 50
}
```

### Example output

```json
{
    "mode": "itemSearch",
    "recordType": "item",
    "found": true,
    "id": "S2B_10UDV_20250714_0_L2A",
    "collection": "sentinel-2-l2a",
    "datetime": "2025-07-14T19:27:42.418000Z",
    "platform": "sentinel-2b",
    "constellation": "sentinel-2",
    "instruments": "msi",
    "gsdM": 10,
    "cloudCoverPct": 3.41,
    "sunElevationDeg": 59.83,
    "sunAzimuthDeg": 160.12,
    "epsg": 32610,
    "gridCode": "MGRS-10UDV",
    "cloudMaskAvailable": true,
    "assetNames": ["blue", "green", "red", "nir", "scl", "thumbnail"],
    "note": null
}
```

A collection row carries `title`, `license`, `providers`, `keywords`, `temporalStart`, `temporalEnd`, `bbox` and the item asset names. The footprint geometry and the full provider breakdown (EDA extension fields, asset titles and roles) are kept in `footprint` and `record`.

### FAQ

#### What is the EarthDaily EarthPlatform STAC API?

EarthPlatform (also called the Earth Data Store) is EarthDaily Analytics' STAC compliant catalog of Earth observation data: EarthDaily Constellation imagery, Sentinel-2, Landsat Collection 2, Sentinel-1, Venus, EarthDaily cloud masks, AI Ready Mosaics and analytics layers. This actor covers its search and read endpoints.

#### Does this actor order imagery or mosaics?

No. It never places an order and never writes to a catalog. Use the item IDs it returns in the EarthDaily console or your own pipeline.

#### Do I need my own EarthDaily account?

Yes. This is a bring-your-own-key actor: it calls EarthPlatform with your own API credentials, under your EarthDaily agreement, and sees only the collections your subscription includes. Missing or rejected credentials end the run cleanly with a status message that explains what to change, and nothing is charged.

#### How do I filter by cloud cover?

Set Maximum cloud cover to a percentage. The actor sends it as a Query Extension filter on `eo:cloud_cover`. Choose Least cloudy first to sort by it as well; the provider then returns only items that carry a cloud cover value.

#### Does it support CQL2 filters?

No. The provider documents the Query Extension only and says the Filter Extension is not supported, so the actor sends `query` objects and never a CQL2 `filter`.

#### Does the output include download links?

No. Single item answers carry signed download URLs valid for 12 hours, which this actor leaves out. Rows list the asset names, and you download the files in the console or with your own token.

#### What do I pay?

Pay per result: 0.005 USD per imagery item and 0.005 USD per collection. Rows without data and refused requests are never charged. Your EarthDaily subscription is billed separately by EarthDaily.

### Pricing

| Event | Price | Charged for |
| --- | --- | --- |
| `imagery-item` | 0.005 USD | Each STAC item a search or ID lookup returns |
| `imagery-collection` | 0.005 USD | Each STAC collection listed or read |

### Keyword map

satellite imagery API, satellite imagery search, STAC API, STAC search, Sentinel-2 API, Sentinel-2 search, Landsat API, Landsat search, Sentinel-1 SAR search, cloud cover filter, cloud free satellite imagery, earth observation API, EarthDaily API, EarthPlatform API, Earth Data Store, geospatial data API, remote sensing data, satellite scene metadata, multispectral imagery, cloud mask.

### Terms and data use

Use of EarthPlatform is governed by your EarthDaily agreement and end user license. That license is for your own internal use: it does not allow publishing, redistributing or sublicensing the content, and subscription content is deleted when the subscription term ends. This actor runs only under your own credentials and is meant for your own use of your own account. Open collections such as Sentinel and Landsat also carry their original licenses and attribution requirements, shown in each collection's `license` field.

# Actor input Schema

## `mode` (type: `string`):

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.

## `collections` (type: `array`):

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.

## `ids` (type: `array`):

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.

## `aoi` (type: `object`):

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` (type: `string`):

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` (type: `string`):

Imagery item search. First capture date, YYYY-MM-DD. Leave empty for no lower bound.

## `endDate` (type: `string`):

Imagery item search. Last capture date, YYYY-MM-DD. Leave empty for no upper bound.

## `maxCloudCover` (type: `number`):

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` (type: `number`):

Imagery item search. Keep items whose view:sun_elevation is at least this many degrees.

## `cloudMaskAvailable` (type: `boolean`):

Imagery item search. Keep only items for which an EarthDaily cloud mask exists (eda:cloud_mask_available).

## `query` (type: `object`):

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` (type: `string`):

Imagery item search. Newest first is the API's own order. Least cloudy first returns only items that carry a cloud cover value.

## `collectionFilter` (type: `string`):

Collection list only. Keep collections whose ID, title, provider or keywords contain this text (case insensitive), for example sentinel or landsat.

## `maxResults` (type: `integer`):

The most rows this run returns and charges for. Paging stops here.

## `apiKey` (type: `string`):

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` (type: `string`):

Leave empty for the documented default EARTHDAILY_API_TOKEN. Only needed if your API Credentials page shows a different client ID.

## `tokenUrl` (type: `string`):

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` (type: `string`):

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.

## Actor input object example

```json
{
  "mode": "itemSearch",
  "collections": [
    "sentinel-2-l2a"
  ],
  "aoi": {
    "type": "Polygon",
    "coordinates": [
      [
        [
          -124.18953337119558,
          49.734095507050256
        ],
        [
          -124.18953337119558,
          48.73413273779468
        ],
        [
          -121.93408220580699,
          48.73413273779468
        ],
        [
          -121.93408220580699,
          49.734095507050256
        ],
        [
          -124.18953337119558,
          49.734095507050256
        ]
      ]
    ]
  },
  "startDate": "2025-06-01",
  "endDate": "2025-08-31",
  "maxCloudCover": 20,
  "cloudMaskAvailable": false,
  "maxResults": 100
}
```

# Actor output Schema

## `records` (type: `string`):

One row per imagery item or collection.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "collections": [
        "sentinel-2-l2a"
    ],
    "aoi": {
        "type": "Polygon",
        "coordinates": [
            [
                [
                    -124.18953337119558,
                    49.734095507050256
                ],
                [
                    -124.18953337119558,
                    48.73413273779468
                ],
                [
                    -121.93408220580699,
                    48.73413273779468
                ],
                [
                    -121.93408220580699,
                    49.734095507050256
                ],
                [
                    -124.18953337119558,
                    49.734095507050256
                ]
            ]
        ]
    },
    "startDate": "2025-06-01",
    "endDate": "2025-08-31",
    "maxCloudCover": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("nabeelbaghoor/satellite-imagery-stac-api").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "collections": ["sentinel-2-l2a"],
    "aoi": {
        "type": "Polygon",
        "coordinates": [[
                [
                    -124.18953337119558,
                    49.734095507050256,
                ],
                [
                    -124.18953337119558,
                    48.73413273779468,
                ],
                [
                    -121.93408220580699,
                    48.73413273779468,
                ],
                [
                    -121.93408220580699,
                    49.734095507050256,
                ],
                [
                    -124.18953337119558,
                    49.734095507050256,
                ],
            ]],
    },
    "startDate": "2025-06-01",
    "endDate": "2025-08-31",
    "maxCloudCover": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("nabeelbaghoor/satellite-imagery-stac-api").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "collections": [
    "sentinel-2-l2a"
  ],
  "aoi": {
    "type": "Polygon",
    "coordinates": [
      [
        [
          -124.18953337119558,
          49.734095507050256
        ],
        [
          -124.18953337119558,
          48.73413273779468
        ],
        [
          -121.93408220580699,
          48.73413273779468
        ],
        [
          -121.93408220580699,
          49.734095507050256
        ],
        [
          -124.18953337119558,
          49.734095507050256
        ]
      ]
    ]
  },
  "startDate": "2025-06-01",
  "endDate": "2025-08-31",
  "maxCloudCover": 20
}' |
apify call nabeelbaghoor/satellite-imagery-stac-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nabeelbaghoor/satellite-imagery-stac-api"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/TPINh4FJkdFspD5CR/builds/OoefqJum7MwyqHhhM/openapi.json
