I recently subscribed to the SimilarWeb API on the AWS Data Exchange Marketplace but have been unable to access the datasets. The reason is: send_api_asset
call requires an AssetID
parameter just as used in this sample notebook however, it is not available on SimilarWeb dataset page. The only available details are license
, productID
, OfferID
, RevisionID
, and DatasetID
. Does anyone have an experience interacting with products on the AWS data Exchange for APIs Mareketplace, if yes, how can one connect to the endpoints or access the data sets via API call without using an AssetID
?
I have attempted:
DATA_SET_ID = '****'
REVISION_ID = '*******'
#ASSET_ID = '' #not provided
BODY = json.dumps({'body_param': 'body_param_value'})
METHOD = 'POST'
PATH = '/'
QUERY_STRING_PARAMETERS = {'param1': 'value1', 'param2': 'value2'}
response = CLIENT.send_api_asset(
DataSetId=DATA_SET_ID,
RevisionId=REVISION_ID,
#AssetId='',
Method=METHOD,
Path=PATH,
Body=BODY,
QueryStringParameters=QUERY_STRING_PARAMETERS
)
but it throws a ParamValidationError
due to the missing AssetID
. Any help or guidance will be appreciated.