{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Business Database",
    "description": "Extract 50M+ Google Maps businesses across 38 countries. Get emails, phones, 6 social profiles, tech stack, GPS coordinates, opening hours. Results in seconds.",
    "version": "0.1",
    "x-build-id": "joUicCkEgL04AYtci"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/iblead~my-actor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-iblead-my-actor",
        "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/iblead~my-actor/runs": {
      "post": {
        "operationId": "runs-sync-iblead-my-actor",
        "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/iblead~my-actor/run-sync": {
      "post": {
        "operationId": "run-sync-iblead-my-actor",
        "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": [
          "country",
          "api_key"
        ],
        "properties": {
          "country": {
            "title": "Country",
            "enum": [
              "US",
              "DE",
              "FR",
              "AU",
              "GB",
              "IT",
              "ES",
              "NL",
              "PL",
              "BE",
              "CZ",
              "CH",
              "HU",
              "AT",
              "GR",
              "HR",
              "PT",
              "SE",
              "DK",
              "BG",
              "SK",
              "NO",
              "RS",
              "IE",
              "FI",
              "SI",
              "RO",
              "LT",
              "BA",
              "EE",
              "LV",
              "AL",
              "CY",
              "LU",
              "MK",
              "MT",
              "ME",
              "IS"
            ],
            "type": "string",
            "description": "Select a country. 38 countries available, 50M+ businesses total."
          },
          "category": {
            "title": "Category (macro)",
            "enum": [
              "Accommodation",
              "Agriculture & Garden",
              "Automotive",
              "Beauty & Wellness",
              "Cleaning & Maintenance",
              "Construction & Home",
              "Education",
              "Entertainment & Leisure",
              "Events & Wedding",
              "Finance & Insurance",
              "Funeral",
              "Government & Public",
              "Health & Medical",
              "Manufacturing",
              "Media & Advertising",
              "Other",
              "Pets & Animals",
              "Professional Services",
              "Real Estate",
              "Religion",
              "Restaurant",
              "Shopping & Retail",
              "Social Services",
              "Sports & Fitness",
              "Technology & IT",
              "Transportation & Logistics",
              "Travel & Tourism",
              "Utilities",
              "Wholesale & Supply"
            ],
            "type": "string",
            "description": "Broad business category (groups multiple Google Maps categories). 'Restaurant' includes Italian Restaurant, Mexican Restaurant, etc."
          },
          "subcategory": {
            "title": "Subcategory (Google Maps category)",
            "type": "string",
            "description": "Exact Google Maps category (e.g. 'Italian Restaurant', 'Dentist', 'Hair Salon'). More precise than macro. Type to search 4000+ categories."
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "Filter by city name (e.g. 'New York', 'Paris', 'Berlin'). Comma-separated for multiple cities (e.g. 'London,Manchester')."
          },
          "postal_code": {
            "title": "Postal / ZIP code",
            "type": "string",
            "description": "Filter by postal code. Supports prefixes: '75' matches all Paris codes (75001-75020), '1' matches all London codes starting with 1."
          },
          "has_email": {
            "title": "Has email",
            "type": "boolean",
            "description": "Only return businesses with an email address found on their website."
          },
          "has_phone": {
            "title": "Has phone",
            "type": "boolean",
            "description": "Only return businesses with a phone number."
          },
          "has_website": {
            "title": "Has website",
            "type": "boolean",
            "description": "Only return businesses with a website."
          },
          "min_rating": {
            "title": "Min rating",
            "minimum": 1,
            "maximum": 5,
            "type": "number",
            "description": "Minimum Google rating (1.0 - 5.0)."
          },
          "min_reviews": {
            "title": "Min reviews",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum number of Google reviews."
          },
          "has_facebook": {
            "title": "Has Facebook",
            "type": "boolean",
            "description": "Only return businesses with a Facebook page."
          },
          "has_instagram": {
            "title": "Has Instagram",
            "type": "boolean",
            "description": "Only return businesses with an Instagram profile."
          },
          "has_linkedin": {
            "title": "Has LinkedIn",
            "type": "boolean",
            "description": "Only return businesses with a LinkedIn page."
          },
          "has_twitter": {
            "title": "Has Twitter/X",
            "type": "boolean",
            "description": "Only return businesses with a Twitter/X profile."
          },
          "has_youtube": {
            "title": "Has YouTube",
            "type": "boolean",
            "description": "Only return businesses with a YouTube channel."
          },
          "max_results": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum number of businesses to return.",
            "default": 1000
          },
          "api_key": {
            "title": "IBLead API Key",
            "type": "string",
            "description": "Your IBLead API key. Sign up free at https://app.iblead.com to get one (200 free credits)."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}