{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Custom Search API Alternative: Change One Base URL",
    "description": "Queries in, Google Custom Search JSON (items, queries, searchInformation) out. Change one base URL before the Jan 1, 2027 shutdown. $0.004 per page.",
    "version": "1.0",
    "x-build-id": "QZikk3x9h8PulCwzg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/apricot_blackberry~google-cse-dropin/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-apricot_blackberry-google-cse-dropin",
        "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/apricot_blackberry~google-cse-dropin/runs": {
      "post": {
        "operationId": "runs-sync-apricot_blackberry-google-cse-dropin",
        "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/apricot_blackberry~google-cse-dropin/run-sync": {
      "post": {
        "operationId": "run-sync-apricot_blackberry-google-cse-dropin",
        "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": {
          "queries": {
            "title": "Search queries",
            "minItems": 1,
            "maxItems": 1000,
            "type": "array",
            "description": "Search terms, one per line (1 to 1000), exactly as you would type them into Google. Each term returns up to \"Max results per query\" results, one dataset row per result. Example: best crm 2026",
            "default": [
              "apify web scraping"
            ],
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerQuery": {
            "title": "Max results per query",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many results to return for each query, an integer from 1 to 100. Results are fetched 10 per page and every page is one billable cse-query event ($0.004), so 10 = 1 event, 20 = 2 events, 100 = 10 events. Example: 10",
            "default": 10
          },
          "gl": {
            "title": "Country (gl)",
            "type": "string",
            "description": "Two-letter country code (ISO 3166-1 alpha-2, lowercase) that geolocates results, the same as the CSE gl parameter. Example: us, de or gb.",
            "default": "us"
          },
          "hl": {
            "title": "Interface language (hl)",
            "type": "string",
            "description": "Interface language code, the same as the CSE hl parameter. Example: en, de or pt-BR.",
            "default": "en"
          },
          "lr": {
            "title": "Result language (lr)",
            "type": "string",
            "description": "Restrict results to one language, written lang_xx (the CSE lr parameter). Leave empty for all languages. Example: lang_en",
            "default": ""
          },
          "safe": {
            "title": "SafeSearch",
            "enum": [
              "off",
              "active"
            ],
            "type": "string",
            "description": "SafeSearch level (the CSE safe parameter): off or active. Example: off",
            "default": "off"
          },
          "siteSearch": {
            "title": "Site restriction (siteSearch)",
            "type": "string",
            "description": "One domain to restrict results to, or exclude (the CSE siteSearch parameter). Include or exclude is set by \"Site filter mode\". Leave empty for the whole web. Example: apify.com",
            "default": ""
          },
          "siteSearchFilter": {
            "title": "Site filter mode (siteSearchFilter)",
            "enum": [
              "i",
              "e"
            ],
            "type": "string",
            "description": "Whether siteSearch includes (i) or excludes (e) that site (the CSE siteSearchFilter parameter). Ignored when siteSearch is empty. Example: i",
            "default": "i"
          },
          "dateRestrict": {
            "title": "Date restriction (dateRestrict)",
            "pattern": "^([dwmy]\\d*)?$",
            "type": "string",
            "description": "Only results from a recent period (the CSE dateRestrict parameter): d[number] days, w[number] weeks, m[number] months or y[number] years. Leave empty for any date. Example: d7 or m3",
            "default": ""
          },
          "fileType": {
            "title": "File type (fileType)",
            "type": "string",
            "description": "Only results of one file type, as a file extension without the dot (the CSE fileType parameter). Leave empty for all types. Example: pdf or docx",
            "default": ""
          },
          "exactTerms": {
            "title": "Exact phrase (exactTerms)",
            "type": "string",
            "description": "A phrase that every result must contain (the CSE exactTerms parameter). Leave empty for none. Example: web scraping",
            "default": ""
          },
          "excludeTerms": {
            "title": "Exclude terms (excludeTerms)",
            "type": "string",
            "description": "Words that must not appear in any result, separated by spaces (the CSE excludeTerms parameter). Leave empty for none. Example: jobs salary",
            "default": ""
          },
          "orTerms": {
            "title": "Any of these terms (orTerms)",
            "type": "string",
            "description": "Extra words where at least one must appear in each result, separated by spaces (the CSE orTerms parameter). Leave empty for none. Example: api tutorial",
            "default": ""
          },
          "filter": {
            "title": "Duplicate filter (filter)",
            "enum": [
              "1",
              "0"
            ],
            "type": "string",
            "description": "Duplicate-content filter (the CSE filter parameter): 1 hides near-duplicate results (Google default), 0 shows them. Example: 1",
            "default": "1"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}