{
  "openapi": "3.0.1",
  "info": {
    "title": "SEO Visibility Index API: Keywords, SERPs, Backlinks, Amazon",
    "description": "SEO Visibility Index API: domain visibility history, organic keyword rankings, competitors, keyword metrics (CPC, traffic, competition, search intent, SERP features), SERPs, ads, questions, backlinks and Amazon product keyword data from SISTRIX. Bring your own key.",
    "version": "0.1",
    "x-build-id": "8aacEqwyeOIL61EUP"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nabeelbaghoor~seo-visibility-index-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nabeelbaghoor-seo-visibility-index-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-visibility-index-api/runs": {
      "post": {
        "operationId": "runs-sync-nabeelbaghoor-seo-visibility-index-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-visibility-index-api/run-sync": {
      "post": {
        "operationId": "run-sync-nabeelbaghoor-seo-visibility-index-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 fetch",
            "enum": [
              "visibilityIndex",
              "domainOverview",
              "domainKeywords",
              "competitors",
              "keywordMetrics",
              "keywordSerp",
              "keywordAds",
              "keywordQuestions",
              "backlinkOverview",
              "backlinks",
              "amazonProduct",
              "amazonProductKeywords",
              "amazonKeywordIdeas",
              "credits"
            ],
            "type": "string",
            "description": "Each mode calls one documented SISTRIX API method (Keyword metrics calls up to three) with your own API key. Every request uses SISTRIX API credits from your account: most methods cost 1 credit per row returned, Domain overview 5, Keyword metrics 5 per keyword plus 1 each for intent and SERP features, Backlink overview 25. Credit balance uses none.",
            "default": "visibilityIndex"
          },
          "apiKey": {
            "title": "SISTRIX API key",
            "type": "string",
            "description": "Your own SISTRIX API key: log in to SISTRIX and open Account, API to create or copy it. Your Toolbox package must include API access. Sent only as the api_key parameter to api.sistrix.com and removed from every log line. Leave empty to use the DATA_API_KEY secret."
          },
          "targetType": {
            "title": "Target type",
            "enum": [
              "domain",
              "host",
              "path",
              "url"
            ],
            "type": "string",
            "description": "Visibility Index, Domain overview, Organic keyword rankings, SEO competitors, Backlink overview and Backlink list. Whether each target line is a whole domain (all subdomains), a host (one subdomain such as www.example.com), a path (a directory such as example.com/blog/) or a single URL. Backlink overview takes domain, host or path; Backlink list takes domain only.",
            "default": "domain"
          },
          "targets": {
            "title": "Domains, hosts, paths or URLs",
            "type": "array",
            "description": "One per line. Domains are cleaned of https:// and www. for you. Duplicates are sent once, and lines that are not a valid target are skipped for free.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Keyword metrics, Keyword SERP, Keyword ads, Keyword questions and Amazon keyword ideas. One keyword per line, up to 200 characters each.",
            "items": {
              "type": "string"
            }
          },
          "asins": {
            "title": "Amazon ASINs",
            "type": "array",
            "description": "Amazon product overview and Amazon product keywords. One ASIN per line (10 letters and digits).",
            "items": {
              "type": "string"
            }
          },
          "marketplaceCountry": {
            "title": "Amazon marketplace",
            "enum": [
              "de",
              "uk",
              "es",
              "fr",
              "it"
            ],
            "type": "string",
            "description": "The Amazon marketplace for the three Amazon modes. SISTRIX covers these five.",
            "default": "de"
          },
          "amazonResultType": {
            "title": "Amazon result type",
            "enum": [
              "organic",
              "sponsored",
              "global"
            ],
            "type": "string",
            "description": "Amazon product keywords. Organic, sponsored or global (both) search results.",
            "default": "organic"
          },
          "ideaMatch": {
            "title": "Amazon keyword match",
            "enum": [
              "include",
              "same",
              "exact"
            ],
            "type": "string",
            "description": "Amazon keyword ideas. Include: ideas with at least one word of the keyword. Same: all words in any order. Exact: all words in the same order.",
            "default": "include"
          },
          "country": {
            "title": "Google country",
            "enum": [
              "account",
              "de",
              "at",
              "ch",
              "nl",
              "fr",
              "it",
              "es",
              "pl",
              "uk",
              "us",
              "se",
              "br",
              "tr",
              "be",
              "ie",
              "pt",
              "dk",
              "no",
              "fi",
              "gr",
              "hu",
              "sk",
              "cz",
              "ca",
              "au",
              "mx",
              "ru",
              "jp",
              "in",
              "za",
              "ro",
              "si",
              "hr",
              "bg",
              "th",
              "vn",
              "id",
              "pe",
              "ar",
              "co",
              "cy",
              "mt",
              "my",
              "ph",
              "nz",
              "ae",
              "eg",
              "cl",
              "pk",
              "sg",
              "ng",
              "ve",
              "ua"
            ],
            "type": "string",
            "description": "The Google country database for every Google mode. Account default leaves the parameter off, so SISTRIX uses the default country of your Toolbox account.",
            "default": "account"
          },
          "date": {
            "title": "Date (YYYY-MM-DD)",
            "type": "string",
            "description": "Optional. Visibility Index: the weekly value for that date. Organic keyword rankings and Keyword SERP: the rankings of that week. Keyword metrics: the SERP features on that date. Leave empty for the latest data."
          },
          "history": {
            "title": "Visibility Index history",
            "type": "boolean",
            "description": "Visibility Index. On, all weekly values are returned, newest first, up to Results per query. Each weekly value is one row and one SISTRIX credit.",
            "default": false
          },
          "daily": {
            "title": "Daily Visibility Index",
            "type": "boolean",
            "description": "Visibility Index. On, the daily values of the last 30 days are returned instead of weekly ones (switches history on).",
            "default": false
          },
          "keywordFilter": {
            "title": "Keyword contains",
            "type": "string",
            "description": "Organic keyword rankings. Only ranking keywords that contain this term, such as shoes."
          },
          "fromPosition": {
            "title": "From position",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Organic keyword rankings. Only rankings from this position on, such as 11 to skip page one."
          },
          "toPosition": {
            "title": "To position",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Organic keyword rankings. Only rankings up to this position (for example 20)."
          },
          "aiAnswerOnly": {
            "title": "Only keywords with an AI answer",
            "type": "boolean",
            "description": "Organic keyword rankings. On, only keywords whose results page shows an AI answer box.",
            "default": false
          },
          "includeMetrics": {
            "title": "Metrics (competition, CPC, traffic, clicks)",
            "type": "boolean",
            "description": "Keyword metrics. Competition, CPC, traffic, clicks and desktop and mobile share. 5 SISTRIX credits per keyword.",
            "default": true
          },
          "includeSearchIntent": {
            "title": "Search intent",
            "type": "boolean",
            "description": "Keyword metrics. Know, do, website and visit intent scores (0 to 100) and the main intent. 1 SISTRIX credit per keyword.",
            "default": true
          },
          "includeSerpFeatures": {
            "title": "SERP features",
            "type": "boolean",
            "description": "Keyword metrics. The SERP feature types on the results page and how often each appears. 1 SISTRIX credit per keyword.",
            "default": false
          },
          "questionLanguage": {
            "title": "Question language",
            "type": "string",
            "description": "Keyword questions. Two letter ISO 639 code such as en or de. Leave empty for your Toolbox language."
          },
          "resultsPerQuery": {
            "title": "Results per query",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "The most rows asked for per domain, keyword or ASIN in list modes (rankings, competitors, SERP, ads, questions, backlinks, Amazon keywords, Visibility Index history). SISTRIX charges credits per row returned, so this also caps credit use.",
            "default": 100
          },
          "maxResults": {
            "title": "Maximum rows",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "The run stops after this many rows in total.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}