Skip to main content

Feeds and Subscriptions

List subscriptions

https://api.planet.com/analytics/subscriptions

The subscriptions endpoint returns all the subscriptions enabled for a particular API key. Each item within this response describes a specific subscription including its spatial area of interest and its temporal start-time and end-time. The subscription dictates over what time period and area a particular computer vision operation will be performed.

Example

curl "https://api.planet.com/analytics/subscriptions" \
-H "Authorization: api-key $PL_API_KEY"

The table below describes the properties of each collection of responses returned by the subscriptions endpoint.

Table 1: subscription response
Metadata FieldDescriptionSample
createdTimestamp when the subscription was created (in UTC)2019-03-08T18:11:57.488Z
descriptionDescription of the subscription as entered by the Planet Analytics AdminBuilding Detection in New Cairo
idUUID for the subscriptionf301b8c9-04e1-49f6-ab31-24a8c25edbd5
feedIDUUID for the feed1ce86055-cad0-4960-bdf3-32763c17f19b
startTimeStarting time of the time window for the subscription2019-01-01T00:00:00.000Z
endTimeEnd time of the time window for the subscription. If the subscription does not have an end time, this field will not be surfaced.2019-01-31T00:00:00.000Z
geometryPolygon coordinates to the spatial extent of the subscription
{
    "type": "Polygon",
    "coordinates": [
        [
            [
                103.849296569824,
                1.2513119542594
            ],
            [
                103.880882263184,
                1.2513119542594
            ],
            [
                103.880882263184,
                1.27293604010387
            ],
            [
                103.849296569824,
                1.27293604010387
            ],
            [
                103.849296569824,
                1.2513119542594
            ]
        ]
    ]
}
linksLinks to the individual subscription that the item refers to, the resulting collection of analytic results from the subscription, the feed operation that is associated with the subscription and to the subscriptions endpoint
[
    {
        "href": "https://api.planet.com/analytics/subscriptions/f301b8c9-04e1-49f6-ab31-24a8c25edbd5",
        "rel": "self"
    },
    {
        "href": "https://api.planet.com/analytics/collections/f301b8c9-04e1-49f6-ab31-24a8c25edbd5/items",
        "rel": "results"
    },
    {
        "href": "https://api.planet.com/analytics/feeds/e2ee4fca-e998-46fc-abe4-2ccaa7b7d285",
        "rel": "feed"
    },
    {
        "href": "https://api.planet.com/analytics/subscriptions",
        "rel": "subscriptions"
    }
]
titleTitle of the subscription as entered by the Planet Analytics AdminDemo_Subscription_Singapore
updatedLast update time to the results associated with a subscription2019-04-10T04:40:20.261Z

List Feeds

https://api.planet.com/analytics/feeds

The feeds endpoint returns all of the feeds that are enabled for a particular API key. Each item within this response describes a specific feed including the source of imagery from which the feed operates. The feeds describe the particular computer vision operation that will be performed when applied to the source imagery.

Example

curl "https://api.planet.com/analytics/feeds" \
-H "Authorization: api-key $PL_API_KEY"

The table below contains descriptions of the properties of each collection of responses returned by the feeds endpoint.

Table 2: feed response
Metadata FieldDescriptionSample
createdTimestamp when the feed was created (in UTC)2019-03-08T18:11:57.488Z
descriptionDescription of the feed as entered by the Planet Analytics AdminShip detections from rectified PlanetScope imagery
idUUID for the feedf35f37ce-4ba9-4b0d-b7d7-b687834223c3
linksLinks to the individual feed and to the collection of feeds
[
    {
        "href": "https://api.planet.com/analytics/feeds/f35f37ce-4ba9-4b0d-b7d7-b687834223c3",
        "rel": "self"
    },
    {
        "href": "https://api.planet.com/analytics/feeds",
        "rel": "feeds"
    }
]
sourceDescription of the source on which the respective feed operates. Includes source bundle, item type, and query filter parameters
{
    "config": {
        "bundle": "visual",
        "query": {
            "filter": {
                "config": [
                    "true"
                ],
                "field_name": "ground_control",
                "type": "StringInFilter"
            },
            "item_types": [
                "PSScene3Band"
            ]
        }
    },
    "type": "image"
}
targetDefines the type of output for the feed. This would be a collection for an object detection based feed. For a segmentation based feed, this would be a mosaic with an associated series_id indicating the UUID of the resulting Planet mosaic
Vector output:

{
    "type": "collection"
}


Or for Raster output:

{
    "config": {
        "series_id": "431b62a0-eaf9-45e7-acf1-d58278176d52"
    },
    "type": "mosaic"
}
titleTitle of the feed as entered by the Planet Analytics AdminShip Detections
updatedTimestamp of the last update from the feed (in UTC)2019-04-11T17:51:39.771Z