Nexscope

Amazon Ads Access

Connect an Amazon Ads account and check its connection status. Call the Amazon Ads Access API via REST or MCP with your Nexscope API key.

Cost10 credits / call
Try online
POST · https://api.nexscope.ai/amazonAds/authorizeUrlMCP · nexscope_amazon_ads_api_access

What this API does

Connect an Amazon Ads account and check its connection status. The request accepts region, marketplaceId, workspaceId, accountName. Its documented result includes authorizeUrl, sourceType.

Amazon Ads Access API use cases

Review advertising evidence

To review advertising evidence, a marketplace analyst submits region and marketplaceId to Amazon Ads Access. The returned authorizeUrl, sourceType help inspect the advertising information returned for the request.

Prepare an advertising research brief

A marketplace analyst uses Amazon Ads Access with region and marketplaceId to prepare an advertising research brief. The returned authorizeUrl, sourceType help assemble evidence before changing an advertising workflow.

Compare campaign inputs and results

For this workflow, a marketplace analyst calls Amazon Ads Access with region and marketplaceId to compare campaign inputs and results. The result helps compare campaign evidence without assuming performance improvements.

Amazon Ads Access API FAQ

What does the Amazon Ads Access API return?

Connect an Amazon Ads account and check its connection status. The documented output includes authorizeUrl, sourceType. It corresponds to the supplied region, marketplaceId, workspaceId, accountName. Optional fields can be absent; a missing value should not be interpreted as a measured zero. Example values illustrate the response shape, rather than live account results.

How many credits does the Amazon Ads Access API cost?

The current documented cost is 10 credits / call. This is the same cost shown at the top of this page. If a range or estimate is displayed, the final charge depends on the request. Review your available credits and the pricing page before calling the API, and check API usage records for the actual charge.

How do I call the Amazon Ads Access API from my app or an MCP client?

Send a POST request to https://api.nexscope.ai/amazonAds/authorizeUrl with your API key as a Bearer token and the JSON inputs shown in API integration. In a compatible MCP client such as Claude or Cursor, connect Nexscope and call nexscope_amazon_ads_api_access. Use the MCP arguments shown in the MCP guide, or switch Online test to MCP to review its request before adding it to your app.

View plans and creditsConnect this API with MCP

Try this API
Endpoint
https://api.nexscope.ai/amazonAds/authorizeUrl
MCP method
nexscope_amazon_ads_api_access

Step 1 of 3 · Authenticate

Authentication

All run endpoints require a user API key. Send it as a bearer token in the Authorization header.

Authorization: Bearer nk-xxxxxxxxxxxxxxxxx
Missing or invalid API keys return an authentication error. Manage keys from .

Step 2 of 3 · Send a request

POSThttps://api.nexscope.ai/amazonAds/authorizeUrl

Run an API

Send a JSON request body using the parameters described below.

Example request

Replace YOUR_API_KEY, then run this command in your terminal.

curl -X POST 'https://api.nexscope.ai/amazonAds/authorizeUrl' \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "accountName": "My US advertising account"
}'

Code example

{
  "accountName": "My US advertising account"
}

Step 3 of 3 · Inspect the result

Check the response

Read code for the request status and data for the result. Open the parameter and response reference for the full field definitions.

HTTP status codes

CodeDescription
200Default HTTP response for both success and many business errors. Only outer JSON code 0 indicates success or asynchronous acceptance; inspect data for the result.
429Execution admission rate limit; honor Retry-After when present.
503Execution admission is temporarily unavailable; honor Retry-After when present.
Opt-inX-Nexscope-Http-Status: semantic maps controller-handled business errors to HTTP status on run and task routes. Pre-authentication failures, such as a missing or invalid API key (code 11209, including an incomplete or corrupted copy) or an expired website login session (code 12001), may still return HTTP 200 before this mapping. Always check the outer JSON code; malformed requests and infrastructure failures may also return non-200 HTTP responses.
All categories/ Amazon Ads
POSThttps://api.nexscope.ai/amazonAds/authorizeUrl

Run this API

Send a JSON request to execute this API and receive the documented response payload.

Endpoint

MethodPOST
Pathhttps://api.nexscope.ai/amazonAds/authorizeUrl
AuthBearer API key
Content-Typeapplication/json

Amazon Ads operation guide

Use operation: authorize with region and marketplaceId to start OAuth, operation: connections to list connections owned by your API key, and operation: profiles with an owned connectionId to list profiles. Open the returned authorization URL in a browser.

Provider access and refresh tokens stay on the backend. This public API does not accept or return raw provider tokens.

Request parameters

NameTypeRequiredDescription
regionstringrequired
Amazon Ads region.
Example: NA
marketplaceIdstringrequired
Amazon marketplace identifier for the Ads connection.
Example: ATVPDKIKX0DER
workspaceIdstringrequired
A Nexscope workspace accessible to the authenticated user.
accountNamestringoptional
Display name for the authorized account.

Response example

Platform response envelope. code 0 indicates success or acceptance; data contains the business result.

No response example is published for this API. Refer to the response fields below.

Response fields

Response field reference (2 fields)

NameTypeRequiredDescription
authorizeUrlstringoptional
Amazon Ads OAuth authorization URL.
sourceTypestringoptional
Authorization source identifier, fixed to `amazon_ads`.

Responses

CodeDescription
200Default HTTP response for both success and many business errors. Only outer JSON code 0 indicates success or asynchronous acceptance; inspect data for the result.
429Execution admission rate limit; honor Retry-After when present.
503Execution admission is temporarily unavailable; honor Retry-After when present.
Opt-inX-Nexscope-Http-Status: semantic maps controller-handled business errors to HTTP status on run and task routes. Pre-authentication failures, such as a missing or invalid API key (code 11209, including an incomplete or corrupted copy) or an expired website login session (code 12001), may still return HTTP 200 before this mapping. Always check the outer JSON code; malformed requests and infrastructure failures may also return non-200 HTTP responses.

Data source, freshness, and limitations

Source, freshness, coverage, rate limits, and estimation notes are not specified in this API definition unless they appear in the request or response field documentation above. Do not assume official marketplace data or real-time freshness when it is not explicitly documented.

Step 1 of 2 · Connect your MCP client

MCP

V2 recommended

Connect remote agents through the standard MCP 2025-11-25 Streamable HTTP endpoint. Use OAuth 2.1 Authorization Code with PKCE, or an API key for compatibility.

POST https://api.nexscope.ai/mcp
MCP-Protocol-Version: 2025-11-25
Content-Type: application/json
Authentication

OAuth clients request the mcp:tools scope. The endpoint's 401 response advertises protected-resource metadata for authorization discovery.

Step 2 of 2 · Call the tool

Call a tool

{
  "jsonrpc": "2.0",
  "id": "tool-call-1",
  "method": "tools/call",
  "params": {
    "name": "nexscope_amazon_ads_api_access",
    "arguments": {
      "accountName": "US Ads account",
      "marketplaceId": "ATVPDKIKX0DER",
      "operation": "authorize",
      "region": "NA"
    }
  }
}

Legacy MCP v1

Existing API-key clients can continue using the compatibility endpoint. New integrations should use MCP v2.

GET / POST /mcp/legacy

What can you do with this API?

Data explained and practical use cases

AI Guide

Question

What account access information can Amazon Ads Access provide, and when would I use it?

AI answer

Amazon Ads Access helps start account authorization and inspect connected accounts or profiles through its authorize, connections, and profiles operations. The fields returned depend on the operation. The supplied fields and example use different names for the authorization link, so handle the actual response shape you receive.

Data categoryDocumented fieldsWhat the values mean
Authorization linkauthorizeUrl, authorizationUrlA URL for the Amazon Ads authorization flow; the field list names authorizeUrl, while the example uses authorizationUrl.
Authorization sourcesourceTypeIdentifies the source as amazon_ads when returned.
Connected accountsconnectionsAn array of connections; the example is empty and does not document connection item fields.
Advertising profilesprofiles[].profileId, profiles[].countryCode, profiles[].currencyCodeIdentifies a returned profile and its country and currency.
  • Start authorization for an Amazon Ads account in a specified region and marketplace.
    • Prompt example: “I manage a connected Amazon Ads account. Could you start authorization for an Amazon Ads account in a specified region and marketplace? Show the relevant returned evidence and tell me what input you need from me.”
  • Check connections to see whether the account has a connection available for later Ads operations.
    • Prompt example: “I manage a connected Amazon Ads account. Could you check connections to see whether the account has a connection available for later Ads operations? Show the relevant returned evidence and tell me what input you need from me.”
  • Retrieve profiles for an owned connection and identify the profile for a US or other supported market.
    • Prompt example: “I manage a connected Amazon Ads account. Could you retrieve profiles for an owned connection and identify the profile for a US or other supported market? Show matching records and source links where the API provides them; ask me for any required identifier or filter.”
  • Display a profile's countryCode and currencyCode when helping a user choose the appropriate advertising account.
    • Prompt example: “I manage a connected Amazon Ads account. Could you display a profile's countryCode and currencyCode when helping a user choose the appropriate advertising account? Show the relevant returned evidence and tell me what input you need from me.”

Data Example

Sample request and response

Request parameters

{
  "operation": "profiles",
  "connectionId": 10
}

Response

{
  "code": 0,
  "msg": null,
  "data": [
    {
      "profileId": "80709749500065",
      "countryCode": "CA",
      "currencyCode": "CAD",
      "timezone": "America/Los_Angeles",
      "accountInfo": {
        "marketplaceStringId": "A2EUQ1WTGCTBG2",
        "id": "ENTITY1L6MZ8B055950",
        "type": "vendor",
        "name": "Sponsored ads - Author",
        "subType": "KDP_AUTHOR",
        "validPaymentMethod": true
      }
    },
    {
      "profileId": "3369222288860367",
      "countryCode": "MX",
      "currencyCode": "MXN",
      "timezone": "America/Los_Angeles",
      "accountInfo": {
        "marketplaceStringId": "A1AM78C64UM0Y8",
        "id": "ENTITY11HAVXK82QGOU",
        "type": "vendor",
        "name": "Sponsored ads - Author",
        "subType": "KDP_AUTHOR",
        "validPaymentMethod": false
      }
    },
    {
      "profileId": "699934390553823",
      "countryCode": "US",
      "currencyCode": "USD",
      "timezone": "America/Los_Angeles",
      "accountInfo": {
        "marketplaceStringId": "ATVPDKIKX0DER",
        "id": "ENTITY35S2BEWB4ANCK",
        "type": "vendor",
        "name": "Annunci sponsorizzati - KDP",
        "subType": "KDP_AUTHOR",
        "validPaymentMethod": true
      }
    }
  ]
}

Related APIs