{
  "openapi": "3.0.1",
  "info": {
    "title": "Maps Business Listings: Arabic & Middle East",
    "description": "Business listings from any map search, in English or Arabic: name, category, address, business phone, website, hours, rating and review count. Middle East first, any city. Change monitor. Works with Google Maps. Not affiliated with Google.",
    "version": "0.1",
    "x-build-id": "F7M1EE9VDPq8NEdRX"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/oshalaby~maps-business-listings/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-oshalaby-maps-business-listings",
        "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/oshalaby~maps-business-listings/runs": {
      "post": {
        "operationId": "runs-sync-oshalaby-maps-business-listings",
        "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/oshalaby~maps-business-listings/run-sync": {
      "post": {
        "operationId": "run-sync-oshalaby-maps-business-listings",
        "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": [
          "searches"
        ],
        "properties": {
          "searches": {
            "title": "Searches",
            "minItems": 1,
            "type": "array",
            "description": "What and where, as you'd type it into the map, for example \"pharmacies in Riyadh\" or \"صيدليات في جدة\". Up to 20.",
            "items": {
              "type": "string"
            }
          },
          "maxPlacesPerSearch": {
            "title": "Max places per search",
            "minimum": 1,
            "maximum": 120,
            "type": "integer",
            "description": "20 places per page; up to 120.",
            "default": 40
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Language of names and addresses, for example en or ar. Places that list a name in another script also get nameLocal.",
            "default": "en"
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Two-letter country code to bias results, for example sa, ae, eg. Optional."
          },
          "output": {
            "title": "Output",
            "enum": [
              "all",
              "changes"
            ],
            "type": "string",
            "description": "All places found, or only new or changed places since your last run with the same tracking list.",
            "default": "all"
          },
          "trackChanges": {
            "title": "Track changes between runs",
            "type": "boolean",
            "description": "Keeps place IDs and a short fingerprint in your own Apify storage, to flag new and changed places.",
            "default": true
          },
          "stateKey": {
            "title": "Tracking list name",
            "type": "string",
            "description": "Runs with the same name compare against each other. Leave empty to use the list named \"default\". The value is shown masked; it is only a name."
          },
          "maxPlaces": {
            "title": "Max places per run",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Stop after this many places in one run, across all searches.",
            "default": 1000
          },
          "includeReviews": {
            "title": "Reviews (paid extra)",
            "type": "boolean",
            "description": "Add up to 5 reviews per place, the ones Google shows first (not necessarily the newest): rating, date, language, text and the owner's reply. Phone numbers and emails in the text are removed. Reviewer names and photos are not included unless you turn on the options below. Only for the places your own searches return.",
            "default": false
          },
          "reviewsPerPlace": {
            "title": "Reviews per place",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "1 to 5.",
            "default": 5
          },
          "includeReviewerNames": {
            "title": "Reviewer name and ID (paid extra)",
            "type": "boolean",
            "description": "Adds each reviewer's public display name and ID. Personal data: needs the lawful-basis tick below. Anonymous reviewers stay anonymous. Never added for health-care places (pharmacies, clinics, hospitals and similar).",
            "default": false
          },
          "includeReviewerPhotos": {
            "title": "Reviewer photo and profile links (paid extra)",
            "type": "boolean",
            "description": "Adds links to the reviewer's public photo and profile. Links only: nothing is downloaded. Face recognition and identity matching are not allowed (see README). Needs the lawful-basis tick.",
            "default": false
          },
          "lawfulBasis": {
            "title": "I have a lawful basis to process reviewer details",
            "type": "boolean",
            "description": "Required for reviewer names or photos. You are the controller of this personal data and are responsible for the lawful basis and for telling the people concerned where required (GDPR Art. 14).",
            "default": false
          },
          "includeWebsiteContacts": {
            "title": "Website contacts (paid extra)",
            "type": "boolean",
            "description": "Reads the business's own website (its homepage and one contact page, logged out, respecting robots.txt) and adds its generic business emails, such as info@ or sales@. Emails that name a person are never kept, and no phone numbers are taken from websites. Charged per place only when something is found.",
            "default": false
          },
          "includeSocialLinks": {
            "title": "Business social links (paid extra)",
            "type": "boolean",
            "description": "Adds links to the business's own LinkedIn company, Facebook, Instagram, X, TikTok and YouTube pages found on its homepage: at most one per platform, links only, never personal profiles. Social sites are not visited. Charged per place only when something is found (with website contacts, once per place).",
            "default": false
          },
          "maxRequests": {
            "title": "Max requests per run",
            "minimum": 5,
            "maximum": 1000,
            "type": "integer",
            "description": "One request per search page plus one per 20 places; with reviews on, 2 more per place. Default 200, or 400 with reviews; up to 1,000."
          },
          "proxy": {
            "title": "Proxy",
            "enum": [
              "datacenter",
              "residential",
              "none"
            ],
            "type": "string",
            "description": "Apify Proxy, chosen before the run. The run stops at the first block or challenge; it never switches route.",
            "default": "datacenter"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}