Is it possible to request a user's Product Advertising API (PA-API) access through a cognito/OAuth login scope?

0

I have a website that affiliates can use to manage their affiliate links. I have added the ability for affiliates to create global affiliate links so that users will be redirected to a product in their country based on their IP address. In order to facilitate the search of global products, I would like to be able to use the PA-API on each affiliates behalf. Either I ask them for their PA-API access and secret keys (which I don't want to do) or I request access to it through OAuth. I haven't seen any documentation to indicate that this is possible, but hopefully someone here will know if paapi is a scope that can be requested and if a temporary token will suffice for a PA-API request.

1 Answer
0

The Amazon Product Advertising API (PA-API) does not currently support OAuth 2.0 authorization. The official documentation states that the only way to access the API is by using your own Amazon Associates credentials (access key and secret key).

Unfortunately, there is no mechanism for you to request access to the PA-API on behalf of your affiliates. Each affiliate would need to provide you with their own Amazon Associates credentials for you to use the PA-API on their behalf.

The PA-API is designed to be used with the individual Amazon Associates account credentials, as it is closely tied to the Amazon Associates program. Allowing you to access the PA-API using a temporary token or on behalf of your affiliates would go against Amazon's security and privacy policies.

Instead, you have a few options to consider:

  1. Require affiliates to provide their Amazon Associates credentials: This is the recommended approach, as it aligns with Amazon's requirements. Your affiliates would need to provide their access key and secret key, which you can then use to make PA-API calls on their behalf.

  2. Provide instructions for affiliates to use the PA-API directly: You can create documentation and tutorials to guide your affiliates on how to use the PA-API with their own Amazon Associates credentials. This way, they can manage the product links and redirection on their own.

  3. Explore alternative solutions: There may be third-party services or APIs that can provide similar functionality to the PA-API, but with support for OAuth 2.0 or other authorization mechanisms that would allow you to access the data on behalf of your affiliates. However, these solutions may not be as tightly integrated with the Amazon ecosystem.

In summary, the PA-API does not currently support OAuth 2.0 or any other mechanism for you to access the API on behalf of your affiliates. The only way to use the PA-API is by using the individual Amazon Associates credentials provided by each of your affiliates.

AWS
JonQ
answered 4 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions