{
  "openapi": "3.0.1",
  "info": {
    "title": "Keyword Question Finder — AnswerThePublic Alternative",
    "description": "Get up to 15 Google autocomplete keyword suggestions, SEO questions and long-tail keywords per lookup. From $0.90 per 1,000 lookups, usage included, no login. Also-asked questions from 21 Nov 2026.",
    "version": "0.2",
    "x-build-id": "pXuWm9Eweq8oxxmkT"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khadinakbar~answerthepublic-alternative/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khadinakbar-answerthepublic-alternative",
        "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/khadinakbar~answerthepublic-alternative/runs": {
      "post": {
        "operationId": "runs-sync-khadinakbar-answerthepublic-alternative",
        "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/khadinakbar~answerthepublic-alternative/run-sync": {
      "post": {
        "operationId": "run-sync-khadinakbar-answerthepublic-alternative",
        "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": [
          "seedKeywords"
        ],
        "properties": {
          "seedKeywords": {
            "title": "Seed keywords",
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "description": "1-100 starting phrases, such as `content marketing` or `shopify seo`. Duplicates are removed. Each seed is expanded with the pattern groups below. Phrases only, not URLs or search operators.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 80
            }
          },
          "researchTypes": {
            "title": "Question-research categories",
            "maxItems": 6,
            "type": "array",
            "description": "Pattern groups to ask Google for: `questions` (how, what, why...), `comparisons` (vs, or, and), `prepositions` (for, with, near...), `alphabeticals` (seed a-z), `numbers` (seed 0-9) and `related` (the seed itself). All six give up to 58 lookups per seed and country.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 20
            },
            "default": [
              "questions",
              "comparisons",
              "prepositions",
              "alphabeticals",
              "numbers",
              "related"
            ]
          },
          "customPatterns": {
            "title": "Custom patterns (optional)",
            "maxItems": 50,
            "type": "array",
            "description": "Your own extra lookups for every seed, up to 50. Use {seed} to place the seed, such as `best {seed} for beginners`. Without {seed} the text is added after the seed. Each pattern is one billed lookup per seed and country. To use only your own patterns, clear the pattern groups above.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          "language": {
            "title": "Suggestion language",
            "minLength": 2,
            "maxLength": 16,
            "type": "string",
            "description": "Language hint sent to Google autocomplete, for example `en`, `es`, or `pt-BR`. Defaults to `en`; the live source can still vary its suggestions. This does not translate the returned suggestions.",
            "default": "en"
          },
          "country": {
            "title": "Country",
            "minLength": 2,
            "maxLength": 2,
            "type": "string",
            "description": "Two-letter country code, such as `US`, `GB` or `PK`. Used when `countries` is empty.",
            "default": "US"
          },
          "countries": {
            "title": "Several countries (optional)",
            "maxItems": 5,
            "type": "array",
            "description": "Up to 5 two-letter country codes to research in one run, such as `[\"US\", \"GB\", \"CA\"]`. Each country multiplies the number of lookups. Leave empty to use `country`.",
            "items": {
              "type": "string",
              "minLength": 2,
              "maxLength": 2
            }
          },
          "maxSourceQueries": {
            "title": "Maximum Google lookups per run",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Hard cap on Google lookups across the whole run, including second-round lookups. Default 60 covers all six pattern groups for one seed. Each completed lookup is one billed event ($0.001 on Free and Bronze plans, $0.0009 on Silver and above); platform usage is included in the price. Your maximum cost per run also stops the run safely.",
            "default": 60
          },
          "maxSuggestionsPerQuery": {
            "title": "Maximum suggestions per lookup",
            "minimum": 1,
            "maximum": 15,
            "type": "integer",
            "description": "How many suggestions to keep from each Google lookup. Google returns up to 15, more than most tools collect. Default 15.",
            "default": 15
          },
          "deeperLookupsPerSeed": {
            "title": "Second-round lookups per seed",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "Re-ask Google with the suggestions found in the first round to dig deeper into long-tail keywords (a keyword tree). 0 = off. Each second-round lookup is a normal billed lookup and counts toward the maximum lookups per run.",
            "default": 0
          },
          "deeperRounds": {
            "title": "Second-round depth",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "How many rounds deep to follow suggestions when second-round lookups are on: 1 (default), 2 or 3. Each round re-asks Google with the suggestions from the round before, up to the per-seed limit, and counts toward the maximum lookups per run.",
            "default": 1
          },
          "outputFormat": {
            "title": "Output format",
            "enum": [
              "lookups",
              "keywords"
            ],
            "type": "string",
            "description": "`lookups`: one row per Google lookup with its list of suggestions (original format). `keywords`: one row per unique keyword with a question flag, ready for spreadsheets and AI agents. Billing is per Google lookup in both formats.",
            "default": "lookups"
          },
          "mustContainSeedWords": {
            "title": "Keep only suggestions that contain the seed words",
            "type": "boolean",
            "description": "Drop suggestions that do not contain every word of the seed phrase. Useful to remove off-topic results.",
            "default": false
          },
          "includePeopleAlsoAsk": {
            "title": "Add People also ask and related searches",
            "type": "boolean",
            "description": "Also collect Google's People also ask questions and related searches for each seed and country. Available from 21 November 2026, billed $0.012 per seed and country (see Pricing). Before that date the option is skipped with no charge.",
            "default": false
          },
          "includeEntityDetails": {
            "title": "Add entity name and thumbnail",
            "type": "boolean",
            "description": "Ask Google for the entity behind a suggestion when it has one (name, short description, thumbnail), for brands, people and products. Returns about 10 suggestions per lookup and no ranking score. Same price.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}