{
  "openapi": "3.0.1",
  "info": {
    "title": "SEO Rank Tracker API: Keyword Visibility, Research, Forecasts",
    "description": "SEO rank tracker API for your own SEOmonitor account: daily keyword ranks, keyword data, group visibility, share of voice, top 100 SERP results, ranking pages, organic traffic, forecasts, plus keyword research, related keywords and domain ranking keywords. Bring your own key.",
    "version": "0.1",
    "x-build-id": "iO5DuOVKoAuGkO75B"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nabeelbaghoor~seo-rank-tracker-visibility-research-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nabeelbaghoor-seo-rank-tracker-visibility-research-api",
        "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/nabeelbaghoor~seo-rank-tracker-visibility-research-api/runs": {
      "post": {
        "operationId": "runs-sync-nabeelbaghoor-seo-rank-tracker-visibility-research-api",
        "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/nabeelbaghoor~seo-rank-tracker-visibility-research-api/run-sync": {
      "post": {
        "operationId": "run-sync-nabeelbaghoor-seo-rank-tracker-visibility-research-api",
        "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": {
          "mode": {
            "title": "What to read",
            "enum": [
              "keywords",
              "dailyRanks",
              "groupVisibility",
              "groupData",
              "shareOfVoice",
              "topResults",
              "rankingPages",
              "dailyTraffic",
              "forecastScenarios",
              "groups",
              "campaigns",
              "researchKeywords",
              "relatedKeywords",
              "topicOverview",
              "domainOverview",
              "domainKeywords",
              "competitorRanks"
            ],
            "type": "string",
            "description": "Each mode calls one documented GET route of the SEOmonitor API 3.0 with your own token. Nothing is written to your SEOmonitor account.",
            "default": "keywords"
          },
          "apiKey": {
            "title": "SEOmonitor API token",
            "type": "string",
            "description": "Your own SEOmonitor API token, from Account Settings > Edit Profile in SEOmonitor. Sent only in the Authorization header to apigw.seomonitor.com and removed from every log line. Leave empty to use the DATA_API_KEY secret."
          },
          "campaignIds": {
            "title": "Campaign ids",
            "type": "array",
            "description": "The SEOmonitor ids of the tracked campaigns to read (the number after /v2/ in the campaign URL, or from the Tracked campaigns mode). Leave empty to read every active tracked campaign the token can see. Research modes use one campaign, which sets the research database country and language.",
            "items": {
              "type": "string"
            }
          },
          "companyId": {
            "title": "Company id",
            "type": "string",
            "description": "Optional. Limits campaign discovery and the Tracked campaigns mode to one company account (the number in the Billing page URL). Useful when the token reaches several companies."
          },
          "groupIds": {
            "title": "Keyword group ids",
            "type": "array",
            "description": "Optional. Keyword group ids to read (from the Keyword groups list mode). Special ids: 0 all keywords, -1 the Brand folder, -2 ungrouped keywords, -3 Forecast objective keywords. Leave empty for all keywords.",
            "items": {
              "type": "string"
            }
          },
          "keywordIds": {
            "title": "Keyword ids",
            "type": "array",
            "description": "Optional. Tracked keyword ids to limit keyword data, daily ranks, group visibility, top 100 results and share of voice to.",
            "items": {
              "type": "string"
            }
          },
          "lastDays": {
            "title": "Last N days",
            "minimum": 1,
            "maximum": 3660,
            "type": "integer",
            "description": "Keyword data, daily ranks, group visibility, group data and traffic: read the last N days, ending yesterday. Ignored when both dates are set.",
            "default": 30
          },
          "startDate": {
            "title": "Start date",
            "type": "string",
            "description": "First day of the period, YYYY-MM-DD. Set it together with the end date, or leave both empty."
          },
          "endDate": {
            "title": "End date",
            "type": "string",
            "description": "Last day of the period, YYYY-MM-DD."
          },
          "date": {
            "title": "Single date",
            "type": "string",
            "description": "Top 100 results and share of voice: the day to read, YYYY-MM-DD. Leave empty for yesterday."
          },
          "device": {
            "title": "Device",
            "enum": [
              "desktop",
              "mobile"
            ],
            "type": "string",
            "description": "Top 100 results and share of voice: the device to read. Desktop by default.",
            "default": "desktop"
          },
          "search": {
            "title": "Search filter",
            "type": "string",
            "description": "Optional. Keep only keywords (or, for ranking pages, landing page URLs) that contain this text, case-insensitive. Keyword data, daily ranks, ranking pages, related keywords and domain ranking keywords."
          },
          "domain": {
            "title": "Competitor domain",
            "type": "string",
            "description": "Optional. Daily ranks and group visibility for another domain, such as competitor.com, instead of the campaign website."
          },
          "includeArchived": {
            "title": "Archived keywords only",
            "type": "boolean",
            "description": "Daily ranks only. Return the ranks of archived (deleted) keywords that were active in the period, instead of the active ones.",
            "default": false
          },
          "featureVisibility": {
            "title": "SERP feature visibility",
            "enum": [
              "product_listing",
              "product_grid",
              "images_pack",
              "questions",
              "ads_pack",
              "knowledge_graph",
              "top_stories",
              "local_pack",
              "featured_snippet",
              "recipes",
              "news"
            ],
            "type": "string",
            "description": "Group visibility only. Also return the visibility in one SERP feature. Leave empty for all tracked features combined."
          },
          "keywordScope": {
            "title": "Group keyword scope",
            "enum": [
              "parents",
              "with_children"
            ],
            "type": "string",
            "description": "Keyword group data only. Leave empty for the API default (only the group's own keywords)."
          },
          "weighting": {
            "title": "AI Search weighting",
            "enum": [
              "campaign",
              "weighted",
              "unweighted"
            ],
            "type": "string",
            "description": "Group data, group visibility and share of voice: whether AI Search metrics are weighted by search volume.",
            "default": "campaign"
          },
          "competitors": {
            "title": "Share of voice competitors",
            "type": "array",
            "description": "Share of voice only. Competitor domains to compare. Leave empty for your website and the competitors set in SEOmonitor.",
            "items": {
              "type": "string"
            }
          },
          "trafficSegment": {
            "title": "Traffic segment",
            "type": "string",
            "description": "Daily organic traffic only: all, non-brand, brand, or the name of a custom segment. Leave empty for non-brand, the API default."
          },
          "orderBy": {
            "title": "Sort by",
            "enum": [
              "keyword",
              "search_volume",
              "year-over-year",
              "rank",
              "rank_trend",
              "rank_trend_impact",
              "opportunity",
              "percentage_clicks",
              "connection_strength",
              "my_rank",
              "my_rank_trend"
            ],
            "type": "string",
            "description": "Optional. Keyword data, keyword research, related keywords, domain ranking keywords and competitor ranks. Each mode accepts only some fields; the run says which if one does not fit."
          },
          "orderDirection": {
            "title": "Sort direction",
            "enum": [
              "asc",
              "desc"
            ],
            "type": "string",
            "description": "Used with Sort by.",
            "default": "asc"
          },
          "keywords": {
            "title": "Keywords or topics",
            "type": "array",
            "description": "Keyword research data and competitor ranks: the keyword phrases to look up. Related keywords and topic overview: one topic per entry, each read separately.",
            "items": {
              "type": "string"
            }
          },
          "urls": {
            "title": "Domains or URLs",
            "type": "array",
            "description": "URL or domain overview and domain ranking keywords: the domains or URL paths to analyse, such as competitor.com or competitor.com/blog. Competitor ranks: up to 10 domains to compare.",
            "items": {
              "type": "string"
            }
          },
          "gapAnalysis": {
            "title": "Keyword gap",
            "enum": [
              "all-keywords",
              "overlapping",
              "non-overlapping"
            ],
            "type": "string",
            "description": "URL or domain overview and domain ranking keywords: which keywords to include compared with your website. Leave empty for all keywords."
          },
          "maxResults": {
            "title": "Maximum rows",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "The run stops after this many rows.",
            "default": 1000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}