{
  "openapi": "3.0.1",
  "info": {
    "title": "SEO Keyword & Search-Demand Intel",
    "description": "Bundles Google autosuggest expansion, logged-out SERP features, People-Also-Ask, related searches, and Trends seasonality into one normalized keyword record with intent, an estimated volume + difficulty model, and topic clusters. The layer Keyword Planner gates and Ahrefs/SEMrush charge for.",
    "version": "0.1",
    "x-build-id": "itxBv2UpCiJ62XwQK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/seibs.co~keyword-demand-intel/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-seibs.co-keyword-demand-intel",
        "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/seibs.co~keyword-demand-intel/runs": {
      "post": {
        "operationId": "runs-sync-seibs.co-keyword-demand-intel",
        "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/seibs.co~keyword-demand-intel/run-sync": {
      "post": {
        "operationId": "run-sync-seibs.co-keyword-demand-intel",
        "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": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "keyword_expansion",
              "serp_analysis",
              "keyword_metrics",
              "trend_signal"
            ],
            "type": "string",
            "description": "keyword_expansion = fan each seed into its long-tail universe via Google autosuggest, with intent + estimated volume + proxy difficulty per keyword (no SERP fetch, fast + cheap). serp_analysis = fetch the logged-out SERP for each seed and extract features, top results, People-Also-Ask, related searches, and SERP-backed difficulty. keyword_metrics = the full bundle: expansion + volume + difficulty + SERP features + seasonality per keyword, then topic clusters. trend_signal = the Google Trends seasonality signal (trend direction, peak month, spikiness) per seed.",
            "default": "keyword_expansion"
          },
          "seeds": {
            "title": "Seed keywords",
            "maxItems": 30,
            "type": "array",
            "description": "Seed terms to expand and analyze, e.g. ['crm software', 'project management tool']. In keyword_expansion / keyword_metrics each seed fans out into its long-tail universe; in serp_analysis / trend_signal each seed is analyzed directly. Hard cap of 30.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "max_expansions_per_seed": {
            "title": "Max long-tail keywords per seed",
            "minimum": 1,
            "maximum": 300,
            "type": "integer",
            "description": "Cap on autosuggest expansions kept per seed (keyword_expansion / keyword_metrics). Default 120. Higher = a deeper long-tail universe but more keyword_record charges.",
            "default": 120
          },
          "max_serp_terms": {
            "title": "Max terms to SERP-enrich (keyword_metrics)",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "In keyword_metrics, how many of the highest-estimated-volume keywords get a live SERP fetch (features + SERP-backed difficulty + PAA/related mining). Charges one serp_snapshot each. Default 10. Set 0 to skip SERP enrichment and run volume/difficulty estimates only.",
            "default": 10
          },
          "serp_results": {
            "title": "Organic results per SERP",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many organic results to request per SERP (drives the difficulty model's domain-authority signal). Default 10.",
            "default": 10
          },
          "alphabet_expansion": {
            "title": "Alphabet-soup expansion",
            "type": "boolean",
            "description": "Append a-z to each seed in autosuggest ('seed a', 'seed b', ...) to surface the long-tail fan-out. On by default. Turn off for a faster, narrower expansion (bare seed + intent modifiers only).",
            "default": true
          },
          "modifier_expansion": {
            "title": "Intent-modifier expansion",
            "type": "boolean",
            "description": "Append commercial/intent modifiers (best, vs, price, near me, alternative, ...) to each seed in autosuggest to surface higher-intent long-tail keywords. On by default.",
            "default": true
          },
          "include_seasonality": {
            "title": "Include Google Trends seasonality (keyword_metrics)",
            "type": "boolean",
            "description": "In keyword_metrics, enrich the seeds with a best-effort Google Trends seasonality signal (trend direction, peak month, spikiness). Trends is unofficial and rate-limited, so it fails soft (seasonality=null) rather than failing the run. Always on for trend_signal mode.",
            "default": false
          },
          "language": {
            "title": "Language (hl)",
            "type": "string",
            "description": "Google interface language code for autosuggest + SERP, e.g. 'en', 'es', 'de'. Default 'en'.",
            "default": "en"
          },
          "country": {
            "title": "Country (gl / geo)",
            "type": "string",
            "description": "Two-letter country code for SERP geo-targeting + Trends region, e.g. 'US', 'GB', 'CA'. Default 'US'.",
            "default": "US"
          },
          "monitor_webhook_url": {
            "title": "Monitor webhook URL (Slack / email, optional)",
            "type": "string",
            "description": "When this actor runs under an Apify Schedule (monitor mode), post the change digest (rank movement, difficulty shifts, new/lost SERP features) to this Slack-compatible webhook URL.",
            "default": ""
          },
          "use_apify_proxy": {
            "title": "Use Apify Proxy",
            "type": "boolean",
            "description": "Route requests through Apify Proxy. The DATACENTER tier handles the first (httpx) autosuggest pass; a RESIDENTIAL tier is provisioned for the SERP anti-bot escalation legs.",
            "default": true
          },
          "use_browser_fallback": {
            "title": "Anti-bot escalation (curl_cffi + browser)",
            "type": "boolean",
            "description": "When the logged-out SERP serves a consent / 'unusual traffic' interstitial to a datacenter IP, automatically escalate: switch to the RESIDENTIAL proxy and retry with curl_cffi Chrome TLS impersonation, then (if available) a headless browser. Autosuggest rarely needs this. Turn off to use plain httpx only.",
            "default": true
          },
          "browser_cdp_url": {
            "title": "Warm browser CDP endpoint (optional)",
            "type": "string",
            "description": "Optional. CDP/WebSocket endpoint of an already-running, anti-detect (UC-mode / real Chrome) browser. When set, the SERP browser tier connects to it (inheriting its session + fingerprint) so it passes Google's consent/abuse interstitial. Without it a plain headless Chromium is launched. Can also be set as the BROWSER_CDP_URL env var.",
            "default": ""
          },
          "apify_proxy_groups": {
            "title": "Proxy groups (optional override)",
            "type": "array",
            "description": "Override the auto-selected proxy group for the first httpx pass. Leave empty to let the actor pick DATACENTER.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "concurrency": {
            "title": "Max concurrent requests",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Parallel autosuggest/SERP fetches. Google is rate-sensitive; default 4.",
            "default": 4
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}