{
  "openapi": "3.0.1",
  "info": {
    "title": "SerpAPI Alternative – Google, Bing & 16 More Search Engines",
    "description": "From $0.29 per 1,000 searches. Google, Bing, YouTube, Maps, News, Amazon and 12 more engines with the same JSON layout as SerpAPI (organic results, ads, People Also Ask, pagination). No SerpAPI account needed.",
    "version": "1.1",
    "x-build-id": "TszoV0u3HE7dPA3U4"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/trysmartapi~serpapi-alternative-google-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-trysmartapi-serpapi-alternative-google-search",
        "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/trysmartapi~serpapi-alternative-google-search/runs": {
      "post": {
        "operationId": "runs-sync-trysmartapi-serpapi-alternative-google-search",
        "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/trysmartapi~serpapi-alternative-google-search/run-sync": {
      "post": {
        "operationId": "run-sync-trysmartapi-serpapi-alternative-google-search",
        "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": [
          "queries"
        ],
        "properties": {
          "engine": {
            "title": "Search engine",
            "enum": [
              "google",
              "google_news",
              "google_images",
              "google_videos",
              "google_maps",
              "google_shopping",
              "google_jobs",
              "google_scholar",
              "google_play",
              "bing",
              "duckduckgo",
              "yahoo",
              "yandex",
              "baidu",
              "youtube",
              "amazon",
              "ebay",
              "walmart"
            ],
            "type": "string",
            "description": "Same engine names as SerpAPI. Every engine is one charged search per results page.",
            "default": "google"
          },
          "queries": {
            "title": "Search queries",
            "type": "array",
            "description": "One search per line, exactly as you would type it. Sent as the engine's own query parameter (q, search_query for YouTube, k for Amazon, _nkw for eBay, query for Walmart, p for Yahoo, text for Yandex).",
            "default": [
              "best coffee in new york"
            ],
            "items": {
              "type": "string"
            }
          },
          "maxPagesPerQuery": {
            "title": "Pages per query",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many result pages to fetch for each query. Each page is one charged search.",
            "default": 1
          },
          "outputMode": {
            "title": "Output format",
            "enum": [
              "page",
              "organic"
            ],
            "type": "string",
            "description": "Full page: one row per results page with the complete SerpAPI-style JSON. Results only: one flat row per result from the engine's main list (organic_results, video_results, news_results, local_results, shopping_results...), ideal for CSV.",
            "default": "page"
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "Google engines only. Where the search should originate, e.g. \"Austin, Texas, United States\"."
          },
          "gl": {
            "title": "Country (gl)",
            "type": "string",
            "description": "Google engines and YouTube. Two-letter country code, e.g. us, gb, in, de.",
            "default": "us"
          },
          "hl": {
            "title": "Language (hl)",
            "type": "string",
            "description": "Google engines and YouTube. Two-letter interface language, e.g. en, es, fr.",
            "default": "en"
          },
          "google_domain": {
            "title": "Google domain",
            "type": "string",
            "description": "Google engines only. e.g. google.com, google.co.uk, google.de."
          },
          "device": {
            "title": "Device",
            "enum": [
              "desktop",
              "mobile",
              "tablet"
            ],
            "type": "string",
            "description": "Google engines only. Device to emulate.",
            "default": "desktop"
          },
          "num": {
            "title": "Results per page (num)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Google engines only. How many results Google returns per page. Still one charged search per page."
          },
          "safe": {
            "title": "SafeSearch",
            "enum": [
              "active",
              "off"
            ],
            "type": "string",
            "description": "Google engines only. Filter adult content."
          },
          "tbs": {
            "title": "Advanced filters (tbs)",
            "type": "string",
            "description": "Google engines only. Google tbs value, e.g. qdr:w for the past week."
          },
          "extraParams": {
            "title": "Other SerpAPI parameters",
            "type": "object",
            "description": "Any other SerpAPI parameter for the chosen engine, e.g. {\"start\": 10} for Google, {\"cc\": \"US\"} for Bing, {\"amazon_domain\": \"amazon.co.uk\"} for Amazon, {\"ll\": \"@40.7455096,-74.0083012,14z\"} for Google Maps. Passed through unchanged."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}