{
  "description": "Scrape YellowPagesPK.com, Pakistan's business directory: browse by category, browse a city, run a keyword search, or open specific listing URLs. Returns contact details, addresses, categories, hours, social links, photos and coordinates.",
  "properties": {
    "categories": {
      "description": "One or more categories to browse (mode=byCategory), or exact category filters (other modes). In byCategory, Restaurant is used when the field is omitted; select additional categories to broaden the run, or leave the selection empty to crawl the entire directory (2,198 listings).",
      "editor": "select",
      "items": {
        "enum": [
          "account-tax-consultant",
          "arts-entertainment",
          "automotive",
          "beauty-spa",
          "beauty-salon",
          "charity-donation",
          "computer-and-mobiles",
          "construction",
          "constructions-repairing",
          "courier-service",
          "customs-broker-clearance-agent",
          "digital-media",
          "education-institute",
          "electronics-and-electrical-equipment",
          "embassy-documents-attestation",
          "best-event-management",
          "fashion-styles",
          "furniture",
          "general-order-supplier",
          "goods-transportation",
          "health-medical",
          "home-garden",
          "home-furniture",
          "hotels",
          "insurance",
          "job-recruitment-agency",
          "law-firms",
          "legal-advisor",
          "legal-service",
          "loan-and-mortgage",
          "manufacturer",
          "movers-packers",
          "property-real-estate-agent",
          "real-estate",
          "rent-a-car",
          "restaurant",
          "security-service",
          "services",
          "shopping",
          "software-houses",
          "specialist-medical-doctors",
          "study-abroad",
          "study-abroad-consultants",
          "travel-agencies",
          "vehicle-denter-painter",
          "web-development",
          "welder"
        ],
        "enumTitles": [
          "Accounts and Tax Consultant",
          "Arts & Entertainment",
          "Automotive",
          "Beauty & Spa",
          "Beauty Salon",
          "Charity & Donation",
          "Computer and Mobiles",
          "Construction",
          "Constructions and Repairing",
          "Courier Service",
          "Customs Broker & Clearance Agent",
          "Digital Media",
          "Education Institute",
          "Electronics and Electrical Equipment",
          "Embassy Documents Attestation",
          "Event Management",
          "Fashion & Styles",
          "Furniture",
          "General Order Supplier",
          "Goods Transportation",
          "Health & Medical",
          "Home & Garden",
          "Home Furniture",
          "Hotels & Guest Houses",
          "Insurance",
          "Job Recruitment Agency",
          "Law Firms",
          "Legal Advisor",
          "Legal Service",
          "Loan and Mortgage",
          "Manufacturer",
          "Packers and Movers",
          "Property & Real Estate Agent",
          "Real Estate",
          "Rent a Car",
          "Restaurant",
          "Security Service",
          "Services",
          "Shopping",
          "Software Houses",
          "Specialist Medical Doctors",
          "Study Abroad",
          "Study Abroad Consultants",
          "Travel Agencies",
          "Vehicle Denter Painter",
          "Web Development",
          "Welder"
        ],
        "type": "string"
      },
      "prefill": [
        "restaurant"
      ],
      "title": "Business categories",
      "type": "array"
    },
    "cities": {
      "default": [],
      "description": "One or more location terms to browse (mode=byCity). In other modes the same selection acts as an exact location filter. Leave empty to skip city browsing/filtering. All 65 published location terms are listed, including provinces and countries.",
      "editor": "select",
      "items": {
        "enum": [
          "abbottabad",
          "amin-pur",
          "australia",
          "azad-kashmir",
          "bahawalpur",
          "baltimore",
          "bangladesh",
          "bellevue",
          "california",
          "canada",
          "chakdara",
          "chennai",
          "chicago",
          "china",
          "clifton",
          "dallas",
          "dera-ghazi-khhan",
          "dera-ismail-khan",
          "dubai",
          "faisalabad",
          "gawadar",
          "georgia",
          "germany",
          "gujranwala",
          "gujrat",
          "hyderabad",
          "india",
          "islamabad",
          "jampur",
          "janiea",
          "jhelum",
          "karachi",
          "lahore",
          "london",
          "lower-dir",
          "manchester",
          "mardan",
          "metro-manila",
          "miami-beach",
          "multan",
          "new-jersey",
          "new-york",
          "pakistan",
          "paradaise",
          "peshawar",
          "punjab",
          "quetta",
          "rahim-rar-khan",
          "rajanpur",
          "rawalpindi",
          "riyadh",
          "sahiwal",
          "sargodha",
          "saudi-arabia",
          "saudia-arabia",
          "seattle",
          "seaview-ave-nw",
          "sialkot",
          "sukkur",
          "texas",
          "uk",
          "united-arab-emirates",
          "usa",
          "utah",
          "washington"
        ],
        "enumTitles": [
          "Abbottabad",
          "Amin Pur",
          "Australia",
          "Azad Kashmir",
          "Bahawalpur",
          "Baltimore",
          "Bangladesh",
          "Bellevue",
          "California",
          "Canada",
          "Chakdara",
          "Chennai",
          "Chicago",
          "China",
          "Clifton",
          "Dallas",
          "Dera Ghazi Khan",
          "Dera Ismail Khan",
          "Dubai",
          "Faisalabad",
          "Gwadar",
          "Georgia",
          "Germany",
          "Gujranwala",
          "Gujrat",
          "Hyderabad",
          "India",
          "Islamabad",
          "Jampur",
          "Jania",
          "Jhelum",
          "Karachi",
          "Lahore",
          "London",
          "Lower Dir",
          "Manchester",
          "Mardan",
          "Metro Manila",
          "Miami Beach",
          "Multan",
          "New Jersey",
          "New York",
          "Pakistan",
          "Paradise",
          "Peshawar",
          "Punjab",
          "Quetta",
          "Rahim Yar Khan",
          "Rajanpur",
          "Rawalpindi",
          "Riyadh",
          "Sahiwal",
          "Sargodha",
          "Saudi Arabia",
          "Saudi Arabia",
          "Seattle",
          "Seaview Ave NW",
          "Sialkot",
          "Sukkur",
          "Texas",
          "UK",
          "United Arab Emirates",
          "USA",
          "Utah",
          "Washington"
        ],
        "type": "string"
      },
      "prefill": [],
      "title": "Cities / locations",
      "type": "array"
    },
    "fetchDetails": {
      "default": true,
      "description": "Open each listing page for description, email, website, hours, social links, gallery and coordinates (one extra request per business). Turn off for the cheapest list: category/city archives keep card fields, while search and whole-directory REST runs return name, category, city, description and dates.",
      "prefill": false,
      "title": "Fetch full profiles",
      "type": "boolean"
    },
    "listingUrls": {
      "default": [],
      "description": "YellowPagesPK.com business listing URLs to open directly (mode=byUrls). Non-YellowPagesPK hosts are rejected.",
      "editor": "requestListSources",
      "items": {
        "properties": {
          "url": {
            "description": "A https://yellowpagespk.com/listing/... URL.",
            "title": "URL",
            "type": "string"
          }
        },
        "type": "object"
      },
      "prefill": [],
      "title": "Listing URLs",
      "type": "array"
    },
    "maxItems": {
      "default": 30,
      "description": "Maximum number of business records to return. The directory currently contains 2,198 listings.",
      "maximum": 5000,
      "minimum": 1,
      "prefill": 2,
      "title": "Max results",
      "type": "integer"
    },
    "minRating": {
      "default": 0,
      "description": "Only keep businesses rated at least this many stars (0-5). 0 disables the filter. Businesses without a published rating are excluded when this is above 0. Profile enrichment turns on automatically when the selected mode's fast path has no ratings.",
      "editor": "number",
      "maximum": 5,
      "minimum": 0,
      "prefill": 0,
      "title": "Minimum rating",
      "type": "integer"
    },
    "mode": {
      "default": "byCategory",
      "description": "How to find businesses: browse a category archive, browse a city archive, run the site's keyword search, or open specific listing URLs.",
      "editor": "select",
      "enum": [
        "byCategory",
        "byCity",
        "search",
        "byUrls"
      ],
      "enumTitles": [
        "Browse by category",
        "Browse by city",
        "Keyword search",
        "Specific listing URLs"
      ],
      "prefill": "byCategory",
      "title": "Mode",
      "type": "string"
    },
    "onlyClaimed": {
      "default": false,
      "description": "Only keep listings claimed and verified by their owner on YellowPagesPK.com. Profile enrichment turns on automatically when the selected path has no claim badges.",
      "prefill": false,
      "title": "Only claimed listings",
      "type": "boolean"
    },
    "onlyWithEmail": {
      "default": false,
      "description": "Only keep businesses with a published email. Turns on profile enrichment automatically.",
      "prefill": false,
      "title": "Only with email",
      "type": "boolean"
    },
    "onlyWithPhone": {
      "default": false,
      "description": "Only keep businesses with a published phone number. Turns on profile enrichment automatically.",
      "prefill": false,
      "title": "Only with phone",
      "type": "boolean"
    },
    "onlyWithWebsite": {
      "default": false,
      "description": "Only keep businesses with a published website. Turns on profile enrichment automatically.",
      "prefill": false,
      "title": "Only with website",
      "type": "boolean"
    },
    "searchQuery": {
      "description": "What to search for (mode=search), e.g. a service, business name or city. The site's own relevance-ranked search is used, so 'restaurant lahore' narrows results well.",
      "editor": "textfield",
      "prefill": "Lahore",
      "title": "Keyword",
      "type": "string"
    }
  },
  "required": [
    "mode"
  ],
  "schemaVersion": 1,
  "title": "YellowPagesPK Business Directory Input",
  "type": "object"
}
