{
  "openapi": "3.0.1",
  "info": {
    "title": "Justdial Business Scraper - Phone, Email, WhatsApp & Address",
    "description": "Scrape Justdial business listings by category + city, locality, Justdial URL or business id: phone, WhatsApp, email, website, contact person, full address with PIN code and GPS, rating, hours, year established, categories, services and latest reviews. No login.",
    "version": "0.1",
    "x-build-id": "zB5iIgqfyhnNdIokN"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapersdelight~justdial-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapersdelight-justdial-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/scrapersdelight~justdial-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapersdelight-justdial-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/scrapersdelight~justdial-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapersdelight-justdial-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 you would type in Justdial's search box, one per line, e.g. \"Dentists\", \"Interior Designers\", \"Packers And Movers\", \"Chartered Accountants\". A business name works too. Each one is searched in every city below.",
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "Indian cities to search, e.g. \"Mumbai\", \"Delhi\", \"Bangalore\" (or \"Bengaluru\"), \"Pune\", \"Hyderabad\", \"Jaipur\". Empty with a category = Mumbai.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Justdial URLs",
            "type": "array",
            "description": "Category pages (\"https://www.justdial.com/Mumbai/Dentists/nct-10156331\", with or without the /nct- part, or \".../Dentists-in-Andheri-West\") and business pages ending in _BZDET. Category pages are paged automatically.",
            "items": {
              "type": "string"
            }
          },
          "businessIds": {
            "title": "Business ids",
            "type": "array",
            "description": "Justdial business ids (the code before _BZDET in a business link), e.g. \"022PXX22.XX22.120526135607.C8Y3\" or \"022P5902892\". One row each, with full details.",
            "items": {
              "type": "string"
            }
          },
          "areas": {
            "title": "Localities",
            "type": "array",
            "description": "Search only these localities of each city, spelled as on Justdial, e.g. \"Andheri West\", \"Koramangala\", \"Connaught Place\". Each category × city × locality is its own search. A locality Justdial does not know is skipped, not charged.",
            "items": {
              "type": "string"
            }
          },
          "splitCityByAreas": {
            "title": "Split each city into its busiest localities",
            "type": "boolean",
            "description": "Also run every category in the city's most-searched localities (Justdial's own list, up to 15) and merge them, one row per business. Measured: Dentists in Mumbai = 100 city-wide, 963 unique with the split.",
            "default": false
          },
          "maxAreasPerCity": {
            "title": "Localities per city",
            "minimum": 1,
            "maximum": 15,
            "type": "integer",
            "description": "How many of the city's most-searched localities the split uses (1-15).",
            "default": 15
          },
          "requirePhone": {
            "title": "Only businesses with a phone",
            "type": "boolean",
            "description": "Skip listings that show no phone number.",
            "default": false
          },
          "requireEmail": {
            "title": "Only businesses with an email",
            "type": "boolean",
            "description": "Keep a business only when its Justdial profile lists an email address (needs the details call).",
            "default": false
          },
          "requireWebsite": {
            "title": "Only businesses with a website",
            "type": "boolean",
            "description": "Keep a business only when its Justdial profile links its own website (needs the details call).",
            "default": false
          },
          "verifiedOnly": {
            "title": "Only verified businesses",
            "type": "boolean",
            "description": "Keep a business only when Justdial marks it Verified or JD Verified.",
            "default": false
          },
          "minRating": {
            "title": "Minimum rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Keep businesses rated at least this on Justdial's 0-5 scale, e.g. 4 or 4.5. 0 = off (unrated businesses are kept).",
            "default": 0
          },
          "minReviews": {
            "title": "Minimum number of ratings",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Keep businesses with at least this many Justdial ratings, e.g. 50. 0 = off.",
            "default": 0
          },
          "scrapeDetails": {
            "title": "Full business details",
            "type": "boolean",
            "description": "Add each business's profile: email, website, WhatsApp, contact person, full address with building / street / landmark, year established, weekday hours, services, payment modes, attributes, photos and latest reviews. Off = the listing fields only (faster).",
            "default": true
          },
          "maxReviewsPerBusiness": {
            "title": "Latest reviews per business",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "How many of the latest reviews the profile carries to keep on each row (author, rating, date, text). Justdial's profile carries up to a few; 0 = none.",
            "default": 3
          },
          "monitorMode": {
            "title": "Only businesses not delivered before",
            "type": "boolean",
            "description": "Skip every business an earlier run with the same monitor store already delivered. Good for catching new listings in a category and city.",
            "default": false
          },
          "monitorStoreName": {
            "title": "Monitor store name",
            "type": "string",
            "description": "Name of the key-value store that remembers delivered businesses. Use one name per watch list, e.g. \"dentists-mumbai\".",
            "default": "justdial-monitor"
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many businesses in the whole run (each is one charged row). 0 = no limit. Justdial serves up to about 100 per category × city, more per locality.",
            "default": 100
          },
          "maxResultsPerSearch": {
            "title": "Max results per search",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Cap each category × city × locality search separately, e.g. 20 to sample many cities evenly. 0 = everything Justdial serves.",
            "default": 0
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Leave as is: requests go direct and automatically switch to residential India when Justdial refuses an IP. Your own proxy URLs are used first if you add them.",
            "default": {
              "useApifyProxy": false
            }
          },
          "residentialOnBlock": {
            "title": "Switch to residential India when refused",
            "type": "boolean",
            "description": "When Justdial refuses the run's own IP, continue through Apify residential proxies in India (included in the price). Off = direct only.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "How many Justdial requests run at once (1-12).",
            "default": 6
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}