You can get data from an interactive map layer using the
The typical flow for getting data consists of the following steps.
Obtain an authorization token for your HTTP requests. For instructions, see the Authentication and Authorization Developer Guide.
For authorization in a GET request you can also use an API Key as a query parameter instead of a bearer token in an authorization header.
Use the API Lookup service to get the API endpoints for the catalog you want to get data from. For instructions, see the API Lookup Developer Guide.
The non-error response is always a FeatureCollection, even when there are no features found.
There are several ways you can ask for data:
Find the layer id of the data you want and determine the above