{
  "openapi": "3.0.1",
  "info": {
    "title": "Jordan Business Directory Scraper",
    "description": "Scrape JordanYP (jordanyp.com) - Jordan's online business directory. Search by keyword, browse any of 300+ categories or 20 cities, or fetch specific business profiles by URL/ID. Get phone numbers, addresses, websites, working hours, ratings, coordinates, and photos.",
    "version": "1.0",
    "x-build-id": "601zeSspA40OD3DYc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~jordan-business-directory-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-jordan-business-directory-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/crawlerbros~jordan-business-directory-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-jordan-business-directory-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/crawlerbros~jordan-business-directory-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-jordan-business-directory-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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "byCategory",
              "byCity",
              "byUrls"
            ],
            "type": "string",
            "description": "What to fetch from JordanYP.",
            "default": "search"
          },
          "searchQuery": {
            "title": "Search query (mode=search)",
            "type": "string",
            "description": "Free-text keyword to search JordanYP for (business name, service, or category term), e.g. `restaurant`, `lawyer`, `hotel`."
          },
          "city": {
            "title": "City",
            "enum": [
              "",
              "Ajloun",
              "Al_Dlail",
              "Al_Karak",
              "Al_Zarqa",
              "Al_Kutaifah",
              "Al_Matabbah",
              "Al_Muwaqqar",
              "Amman",
              "Aqaba",
              "Ar_Ramtha",
              "Arki",
              "Irbid",
              "Jerash",
              "Karameh",
              "Maan",
              "Madaba",
              "Russiefa",
              "Sahab",
              "Salt_Jordan",
              "Tafilah"
            ],
            "type": "string",
            "description": "City to filter/browse. Required for mode=byCity. Optional narrowing filter for mode=search and mode=byCategory.",
            "default": ""
          },
          "category": {
            "title": "Category (mode=byCategory)",
            "enum": [
              "",
              "3d_technology",
              "advertising",
              "advice_centres",
              "aerospace",
              "agtech_agricultural_technology",
              "air_transport",
              "air_travel",
              "airports",
              "aluminium",
              "anti_corruption_organizations",
              "apartment_rental",
              "apartments",
              "apps",
              "architectural_services",
              "artificial_intelligence",
              "arts_and_crafts",
              "asset_management",
              "associations",
              "attractions",
              "auctioneers",
              "audit_and_accounting",
              "auto_insurance",
              "automotive",
              "b2b",
              "banking_equipment",
              "bankscredit_unions",
              "beauty_products",
              "beauty_professionals",
              "bed_and_breakfast",
              "bicycles",
              "blockchain",
              "boats_and_boating",
              "books",
              "brand_name",
              "brokers",
              "building_materials",
              "business_centres",
              "business_development",
              "business_education",
              "business_management_consulting",
              "business_services",
              "cafes",
              "camping_and_caravans",
              "camping_and_outdoors",
              "car_parts_and_accessories",
              "car_rental",
              "cargo_services",
              "catering",
              "catering_equipment",
              "charity",
              "charity_services",
              "chemicals",
              "childrens_services",
              "cigars_and_tobacco",
              "civil_engineering",
              "cleaning",
              "cleaning_equipment_services",
              "clothing_and_accessories",
              "cloud_computing",
              "colleges",
              "commercial_property",
              "communications",
              "communities",
              "complementary_therapy",
              "computer_consumables",
              "computer_repair",
              "computer_services",
              "computer_software_solution",
              "computer_training",
              "computers_internet",
              "computers_hardware",
              "conferences",
              "construction",
              "construction_equipment",
              "construction_services",
              "consultants",
              "consulting",
              "cookery",
              "cosmetic_surgery",
              "coworking_spaces",
              "crowdfunding",
              "cryptocurrency",
              "cyber_security",
              "decorators",
              "dentists",
              "department_stores",
              "digital_currency_mining",
              "doctors_and_clinics",
              "driving_schools",
              "dry_cleaning",
              "duty_free_shop",
              "e_learning",
              "edtech_educational_technology",
              "education",
              "electric_vehicle",
              "electrical_goods",
              "electrical_service",
              "electronic_equipment",
              "energy_suppliers",
              "engineering",
              "engineers",
              "entertainment_media",
              "environmental_services",
              "event_equipment",
              "event_services",
              "events_conferences",
              "excursions",
              "factories",
              "farming",
              "fashion",
              "filmtelevision_and_video",
              "finances_insurance",
              "financial_activity",
              "fintech_financial_technology",
              "fire_safety_consultants",
              "fire_safety_equipment",
              "fishing_equipment",
              "fitness",
              "food_drink",
              "food_manufacturing",
              "food_retailers",
              "funding_platform",
              "furniture",
              "furniture_manufacturers",
              "gardeners",
              "general_business",
              "general_office_services",
              "general_shopping",
              "gifts",
              "government",
              "guest_houses",
              "hairdressers",
              "hardware_stores",
              "haulage",
              "health_beauty",
              "health_and_safety",
              "health_care",
              "hobbies",
              "holiday_homes",
              "home_and_garden",
              "home_remodeling",
              "hotel_motel_equipment",
              "hotels",
              "human_resources",
              "industrial_automation",
              "industrial_equipment",
              "industrial_premises",
              "industrial_services",
              "industrial_supplies",
              "information_services",
              "information_technology",
              "infrastructure",
              "insurance_companies",
              "insurance_services",
              "interior_design",
              "internet_service_providers",
              "investment_companies",
              "ios",
              "jewellery",
              "kids",
              "lawyers",
              "leasing",
              "legal",
              "legal_services",
              "leisure",
              "letting_agents",
              "lifestyle_management",
              "local_authorities",
              "locksmiths",
              "logistics",
              "machine_learning",
              "manufacturing_industry",
              "marine_services",
              "market_research",
              "marketing",
              "marketplace",
              "massage_therapists",
              "medical_equipment",
              "mental_health_care",
              "metals",
              "military",
              "ministries",
              "mobile_phone_shops",
              "mobility_aids",
              "motorbikes",
              "music",
              "networking",
              "nonprofit_organizations",
              "nursing_and_care",
              "oil_gas_companies",
              "online_content",
              "online_property_listings",
              "online_shopping",
              "optical_shop",
              "opticians",
              "overseas_business",
              "overseas_property",
              "package_shipping",
              "paint-supplier",
              "paper_products",
              "parties",
              "performing_arts",
              "personal_finance",
              "pest_control",
              "petrol_station",
              "pets_and_animals",
              "pharmacies",
              "photography",
              "places_to_visit",
              "pregnancy_and_child_birth",
              "printing",
              "product_development",
              "project_management",
              "property",
              "property_consultants",
              "property_development",
              "property_management",
              "public_social_services",
              "public_relations",
              "public_transport",
              "pubs_and_clubs",
              "pumps_manufacturers",
              "estate_agents",
              "realtors",
              "recreation",
              "recycling",
              "religion",
              "removals_and_relocation",
              "renovation",
              "rental_property",
              "restaurants",
              "retail_services",
              "saas",
              "sales_outsourcing",
              "sandblasting",
              "schools",
              "science",
              "secretarial_services",
              "security",
              "security_services",
              "shipping_port_agent",
              "shopping",
              "shopping_centres",
              "shops",
              "sightseeing",
              "small_business",
              "social_network",
              "social_work_services",
              "software",
              "software_applications",
              "software_engineering",
              "solicitors",
              "specialist_accommodation",
              "sports",
              "stainless_steel",
              "staircase_timber_handrail",
              "steel_products",
              "storage_services",
              "supermarket",
              "sustainability",
              "take_aways",
              "tax_consultants",
              "taxis",
              "tempered_glass_railing",
              "textile",
              "tour_operators",
              "tourism",
              "tourism_accommodation",
              "tourist_information",
              "tradesmen_construction",
              "trading_platform",
              "training",
              "translation_services",
              "transport",
              "transport_motoring",
              "transport_agents",
              "transportation",
              "travel_agents",
              "tutoring",
              "unions",
              "universities",
              "vacation_rentals",
              "vehicle_manufacturers",
              "vehicle_sales",
              "vehicle_services",
              "virtual_reality",
              "visa_agencies",
              "voluntary_organisations",
              "warehouses",
              "warehousing",
              "waste_services",
              "water_filters",
              "water_treatment",
              "web_design",
              "web_development",
              "web_hosting",
              "web_services",
              "weddings",
              "wellness",
              "wills_and_trusts",
              "wine_and_beer",
              "wrought_iron"
            ],
            "type": "string",
            "description": "Business category to browse. Required for mode=byCategory.",
            "default": ""
          },
          "companyUrls": {
            "title": "Business URLs / IDs (mode=byUrls)",
            "type": "array",
            "description": "JordanYP company profile URLs (e.g. `https://www.jordanyp.com/company/373584/Arida_Law_Firm`) or bare numeric company IDs (e.g. `373584`).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "verifiedOnly": {
            "title": "Verified businesses only",
            "type": "boolean",
            "description": "Only emit businesses with a JordanYP-verified listing badge.",
            "default": false
          },
          "hasWebsite": {
            "title": "Has website only",
            "type": "boolean",
            "description": "Only emit businesses that list a website address.",
            "default": false
          },
          "minRating": {
            "title": "Min. rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Drop businesses with a review rating below this (0-5). Businesses with no reviews are always kept."
          },
          "minReviews": {
            "title": "Min. review count",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Drop businesses with fewer reviews than this."
          },
          "minEstablishmentYear": {
            "title": "Established after year",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Drop businesses established before this year."
          },
          "maxEstablishmentYear": {
            "title": "Established before year",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Drop businesses established after this year."
          },
          "containsKeyword": {
            "title": "Name/description contains",
            "type": "string",
            "description": "Case-insensitive substring filter applied to business name, tagline, and description."
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 300,
            "type": "integer",
            "description": "Hard cap on emitted records.",
            "default": 20
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}