{
  "openapi": "3.0.1",
  "info": {
    "title": "Justdial Business Scraper - India Local Business Leads",
    "description": "Scrape Justdial businesses by category and city, area or pincode, or from Justdial URLs: name, published phone and WhatsApp, address, pincode, coordinates, rating, year established, opening hours, website. Only businesses in the city you searched. No proxy setup. Only-new monitoring.",
    "version": "0.1",
    "x-build-id": "NAbRRW1ICm0L6ubrc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/amitaviv~justdial-business-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-amitaviv-justdial-business-scraper",
        "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/amitaviv~justdial-business-scraper/runs": {
      "post": {
        "operationId": "runs-sync-amitaviv-justdial-business-scraper",
        "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/amitaviv~justdial-business-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-amitaviv-justdial-business-scraper",
        "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",
        "properties": {
          "searchTerms": {
            "title": "Categories or keywords",
            "type": "array",
            "description": "What to search for, as you would type it on Justdial, e.g. Dentists, Plumbers, Interior Designers, Cake Shops. Each term is searched in each entry of locations.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Cities or areas",
            "type": "array",
            "description": "A city (Mumbai, Delhi, Bangalore, Hyderabad, Pune, Chennai, Kolkata…), \"Area, City\" (e.g. Andheri West, Mumbai) or \"Pincode, City\" (e.g. 400053, Mumbai). Any capitalisation works. Justdial lets a visitor page through about 100 businesses for a city-wide search and more for an area, but beyond the first 100 or so it pads the list with businesses far away: see onlyInSearchedCity and maxDistanceKm.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Justdial URLs",
            "type": "array",
            "description": "Optional, instead of or besides the search above: Justdial search pages (https://www.justdial.com/Mumbai/Dentists/nct-10156331, or …/Dentists-in-Andheri-West) or business pages (URLs ending in _BZDET). Other URLs are ignored and listed in the run summary.",
            "items": {
              "type": "string"
            }
          },
          "maxItemsPerQuery": {
            "title": "Max businesses per search",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Stop each search (term × location, or URL) after this many businesses. Default 100.",
            "default": 100
          },
          "onlyInSearchedCity": {
            "title": "Only businesses in the searched city",
            "type": "boolean",
            "description": "On (default): businesses Justdial lists in another city are skipped and not charged (Justdial pads many searches with them: in a test, 51 of 54 piano tuners found for Pune were in other cities). Other names of a city count as the same (Bangalore / Bengaluru, Gurgaon / Gurugram). A business whose city is not given is kept. Off: every business Justdial lists is delivered; the field inSearchedCity tells them apart.",
            "default": true
          },
          "maxDistanceKm": {
            "title": "Max distance from the searched place (km)",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Optional. Skip, and do not charge for, businesses whose map pin is farther than this from the centre Justdial gives for the searched area or city (field distanceKm). Useful for area searches: of 228 dentists listed for Andheri West, Mumbai, 12 were within 3 km and 57 within 10 km. Businesses without a map pin are kept. Empty or 0: no limit."
          },
          "skipNumberOnRequest": {
            "title": "Skip businesses without a published number",
            "type": "boolean",
            "description": "Off (default): businesses are delivered whether or not Justdial publishes a number for them. On: businesses without a published phone or WhatsApp number are skipped and not charged: those for which Justdial withholds the number (it asks the visitor for their own mobile number first; output field numberOnRequest) and those whose Justdial page shows none. Many free listings are like that, so a search can deliver far fewer businesses. Pasted business URLs are always delivered.",
            "default": false
          },
          "onlyNew": {
            "title": "Only new businesses (monitoring)",
            "type": "boolean",
            "description": "Off (default): every run delivers the businesses it finds. On: return and charge only businesses that earlier runs of this actor in your account have not delivered for the same search, for scheduled monitoring of new listings. The memory is a key-value store named justdial-business-scraper-monitor in your account; delete it to start over.",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor name (optional)",
            "type": "string",
            "description": "Only with onlyNew. A free name for the monitor memory, e.g. pune-weekly. Runs with the same search and the same monitor name share one memory; give two schedules different names to keep them apart."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}