{
  "openapi": "3.0.1",
  "info": {
    "title": "Amazon Keyword Rank Tracker: Amazon Keyword Ranking",
    "description": "Extract where your ASINs rank in Amazon search for your keywords at $0.60 per 1,000 results pages read plus $1 per 1,000 rank rows (about $0.0028 for a one-ASIN check at 3 visits): organic and sponsored position, visit range, real moves since your last run. No login.",
    "version": "0.1",
    "x-build-id": "718NEp2GwsHk9sTDo"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/aurelix~amazon-keyword-rank-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-aurelix-amazon-keyword-rank-tracker",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/aurelix~amazon-keyword-rank-tracker/runs": {
      "post": {
        "operationId": "runs-sync-aurelix-amazon-keyword-rank-tracker",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/aurelix~amazon-keyword-rank-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-aurelix-amazon-keyword-rank-tracker",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "tracks"
        ],
        "properties": {
          "tracks": {
            "title": "Keywords and ASINs",
            "maxItems": 200,
            "type": "array",
            "description": "One keyword per line, followed by '|' and the ASINs to find for it, e.g. 'wireless earbuds | B0D1XD1ZV3, B0CQXMXJC5'. A line with only a keyword checks the ASINs in 'ASINs for every keyword'. Amazon search URLs work in place of a keyword (their filters are kept).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "asins": {
            "title": "ASINs for every keyword (optional)",
            "maxItems": 100,
            "type": "array",
            "description": "ASINs (or product links) to look for on every keyword line that names no ASIN of its own, e.g. 'B0D1XD1ZV3'.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "marketplace": {
            "title": "Amazon marketplace",
            "enum": [
              "com",
              "ca",
              "in",
              "co.uk",
              "de",
              "co.jp"
            ],
            "type": "string",
            "description": "Which Amazon keywords are searched on. Search URLs keep their own marketplace. amazon.co.uk, amazon.de and amazon.co.jp are read only over residential IPs in that country (turn on 'Residential fallback'), because their results depend on the shopper's country.",
            "default": "com"
          },
          "maxPages": {
            "title": "Result pages to search",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How deep to look for each keyword, e.g. 5. Reading stops early once every ASIN of the keyword has an organic position. Each page read costs the results-page fee; an ASIN not found within these pages gets found = false.",
            "default": 5
          },
          "samples": {
            "title": "Visits per keyword",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "How many independent visitor sessions read each keyword: 1, 3 (default) or 5; an even number is raised to the next odd one. Amazon shows different visitors different orders: in our tests an ASIN sat 13th-14th in two visits and 46th in the third, and even a top-5 ASIN was missing from one visit in three. Each row gives the middle visit, the best and worst visit, and every visit; 'changed' is true only when this run's range of visits does not overlap the previous run's. Each page of each visit costs the results-page fee.",
            "default": 3
          },
          "onlyChanges": {
            "title": "Only changed positions",
            "type": "boolean",
            "description": "Return only keyword/ASIN pairs that really moved since your previous run: found in no visit now but in some before (or the reverse), or this run's visit range does not overlap the previous run's. Pairs checked for the first time are returned too. Pages are still read and charged; the first 10 unchanged pairs per run are free, each further one costs $0.0002 (rank-checked) instead of a full row.",
            "default": false
          },
          "stateKey": {
            "title": "Tracking name (optional)",
            "type": "string",
            "description": "Name for the 'previous run' memory that the change fields compare with, e.g. 'my-brand-daily'. Leave empty to keep one memory per keyword/ASIN list."
          },
          "residentialFallback": {
            "title": "Residential fallback (paid add-on)",
            "type": "boolean",
            "description": "Off by default. Needed for amazon.co.uk, amazon.de and amazon.co.jp (read over residential IPs in that country). On amazon.com, .ca and .in, a page refused on 6 datacenter sessions is retried on up to 4 residential sessions. The residential fee ($0.012) applies to every residential page that loads; refused attempts are free. Challenges are never solved.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify Proxy is required; the default datacenter group is tried first.",
            "default": {
              "useApifyProxy": true
            }
          },
          "slackWebhookUrl": {
            "title": "Slack webhook URL (optional)",
            "type": "string",
            "description": "After each run, post a short digest to Slack: how many rank rows were saved and the biggest real moves (largest change first), e.g. https://hooks.slack.com/services/T000/B000/XXXX. Leave empty to skip."
          },
          "webhookUrl": {
            "title": "Webhook URL (optional)",
            "type": "string",
            "description": "After each run, POST the same digest as JSON (actor, newOnly, count, items = top 10 results, runUrl, datasetUrl = all results as JSON, text) to any URL, e.g. a Zapier, Make or n8n webhook. Nothing is sent when the run saved nothing. Leave empty to skip."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}