{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Rank Tracker & SERP Share of Voice from Search Results",
    "description": "Your Google positions vs each rival from Google Search Scraper rows, a Sheet or your keywords: share of clicks, keywords where rivals rank and you do not, striking distance, AI Overview mentions, sites to get onto. $0.002 per keyword. Agent-ready: x402, MCP.",
    "version": "0.1",
    "x-build-id": "odXr5xLJLgxOM8Cuk"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nerolabs~google-rank-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nerolabs-google-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/nerolabs~google-rank-tracker/runs": {
      "post": {
        "operationId": "runs-sync-nerolabs-google-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/nerolabs~google-rank-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-nerolabs-google-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",
        "properties": {
          "brandDomain": {
            "title": "Your website",
            "type": "string",
            "description": "Your domain, e.g. example.com, or \"Brand (example.com)\". Its best position on every keyword is found, with gaps and next steps."
          },
          "brandName": {
            "title": "Brand name",
            "type": "string",
            "description": "Optional. The name AI Overviews would use for you (defaults to the domain's first word)."
          },
          "competitorDomains": {
            "title": "Rivals",
            "type": "array",
            "description": "Up to 25 rivals: asana.com or \"Asana (asana.com)\". Each gets its positions, share of clicks and AI Overview mentions.",
            "items": {
              "type": "string"
            }
          },
          "datasetIds": {
            "title": "Datasets",
            "type": "array",
            "description": "One or more datasets from apify/google-search-scraper (or another Google SERP scraper, or a rank tracker export). Several pages of the same keyword are merged. In an integration set it to [\"{{resource.defaultDatasetId}}\"]."
          },
          "datasetId": {
            "title": "Dataset ID (text)",
            "type": "string",
            "description": "A single dataset ID typed as text, for API and agent calls."
          },
          "fileUrl": {
            "title": "File or Google Sheet URL",
            "type": "string",
            "description": "A public link to a CSV, Excel, JSON or JSON Lines file: SERP scraper rows, or a rank sheet with keyword, position and URL columns (one result per row). A normal Google Sheets link works when shared as 'Anyone with the link can view'."
          },
          "fileFormat": {
            "title": "File format",
            "enum": [
              "auto",
              "csv",
              "tsv",
              "json",
              "jsonl",
              "xlsx"
            ],
            "type": "string",
            "description": "Leave on 'Detect automatically' unless the link has no file extension.",
            "default": "auto"
          },
          "sheetName": {
            "title": "Excel sheet name",
            "type": "string",
            "description": "Which sheet to read from an Excel workbook. Defaults to the first sheet."
          },
          "data": {
            "title": "Result rows",
            "type": "array",
            "description": "Rows as JSON for a quick run or an AI agent call: raw SERP scraper rows, or [{\"keyword\": \"gantt chart software\", \"position\": 4, \"url\": \"https://...\"}]."
          },
          "keywords": {
            "title": "Keywords (no results yet?)",
            "type": "array",
            "description": "Up to 300 keywords. Each is searched on Google first by apify/google-search-scraper on your account (its own price, about $0.0025 to $0.0045 a page), then analysed here.",
            "items": {
              "type": "string"
            }
          },
          "countryCode": {
            "title": "Country",
            "type": "string",
            "description": "Two-letter Google country for Keywords, e.g. us, gb, de.",
            "default": "us"
          },
          "languageCode": {
            "title": "Language",
            "type": "string",
            "description": "Optional Google language for Keywords, e.g. en, de."
          },
          "pagesPerKeyword": {
            "title": "Result pages per keyword",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "1 page = the top 10. 2 or 3 pages find you on page two or three (each page is charged by the search Actor).",
            "default": 1
          },
          "maxKeywordSpendUsd": {
            "title": "Most to spend on the search",
            "minimum": 0.5,
            "maximum": 50,
            "type": "number",
            "description": "Cap on what the Google search run may cost on your account.",
            "default": 2
          },
          "rootDomains": {
            "title": "Group subdomains",
            "type": "boolean",
            "description": "Count blog.asana.com and help.asana.com as asana.com (www, m and amp are always folded). Turn off to see each subdomain separately.",
            "default": true
          },
          "ignoreDomains": {
            "title": "Ignore these sites",
            "type": "array",
            "description": "Sites to leave out of every count, e.g. your own other domains.",
            "items": {
              "type": "string"
            }
          },
          "maxDomains": {
            "title": "Most sites to list",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Cap on site rows (with Rows to write: Sites). Empty = 5,000."
          },
          "outputRows": {
            "title": "Rows to write",
            "enum": [
              "keywords",
              "domains",
              "pages"
            ],
            "type": "string",
            "description": "Which rows go to the dataset. The summary (OUTPUT) and all sites (DOMAINS) are always saved in the key-value store.",
            "default": "keywords"
          },
          "maxItems": {
            "title": "Most rows to read",
            "minimum": 1,
            "maximum": 200000,
            "type": "integer",
            "description": "Cap on input rows read per run. Each keyword is charged once. Empty = up to 200,000 rows."
          },
          "exportFormats": {
            "title": "Also save as a file",
            "type": "array",
            "description": "Also save the written rows as CSV or Excel in the key-value store (charged once per file).",
            "items": {
              "type": "string",
              "enum": [
                "csv",
                "xlsx"
              ],
              "enumTitles": [
                "CSV",
                "Excel (xlsx)"
              ]
            }
          },
          "watchName": {
            "title": "Remember runs under this name",
            "type": "string",
            "description": "Optional. Give the same name on every scheduled run (e.g. 'clickup-weekly') and each run shows keywords that moved up or down, new and lost rankings, and how your share of clicks and each rival's changed. Stored on your own Apify account."
          },
          "resetWatch": {
            "title": "Start the memory again",
            "type": "boolean",
            "description": "Forget earlier runs under this name.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}