# /bayt/jobs/search

`POST /api/bayt/jobs/search`

Price: 10 credits

Search Bayt.com job postings across any supported MENA country site by keyword with rich filters — narrow by country, city, posting recency, career level, employment type, gender preference, employer type, industry, hiring company, and remote work, with relevance or date ordering. Each result carries the job ID, title, URL, an AI summary, career level and experience, work setting, posting age, hiring company (name, logo, profile), location, and salary range.

## How to use it

Search Bayt.com (Middle East & North Africa job board) listings by keyword. Choose the national site with country, or pin a city. Filter by posting recency, career level, employment type, gender preference, employer type, industry, hiring company name, and remote-only, and order by relevance or date. Each item includes id, title, url, country, summary, career_level, years_of_experience, is_remote, work_setting, citizenship, is_featured, easy_apply, posted_age, posted_at, plus nested company, location and salary objects.

## Parameters

- `access-token` (string, required)

## Request body

- `timeout` (integer) — Max scrapping execution timeout (in seconds) (default: 300; min: 20; max: 1500)
- `query` (string, required) — Search keyword (examples: "accountant"; minLength: 1)
- `count` (integer, required) — Max number of results to return (min: 1)
- `country` (string) — Country site to search (default: "UAE"; one of: "UAE", "Saudi Arabia", "Qatar", "Kuwait", "Oman", "Bahrain", "Egypt", "Jordan", "Lebanon", "Morocco", "Algeria", "Tunisia", "Libya", "Iraq", "Yemen", "India", "Pakistan", "International")
- `city` (string, nullable) — Restrict to a specific city (overrides country with the city's country) (one of: "manama", "alexandria", "cairo", "baghdad", "amman", "al_kuwait", "beirut", "casablanca", "muscat", "doha", "dammam", "eastern_province", "jeddah", "jubail", "khobar", "mecca", "medina", "riyadh", "tunis", "abu_dhabi", "ajman", "al_ain", "dubai", "fujairah", "ras_al_khaimah", "sharjah")
- `language` (string) — Content language (default: "en"; one of: "en", "ar")
- `date_posted` (string, nullable) — Only jobs posted within this period (one of: "past_24_hours", "past_7_days", "past_30_days")
- `career_level` (string, nullable) — Required career level (one of: "student_internship", "fresh_graduate", "entry_level", "mid_career", "management", "director_head", "senior_executive")
- `job_type` (string, nullable) — Employment type (one of: "full_time", "part_time", "contractor", "temporary", "internship", "freelance")
- `gender` (string, nullable) — Gender preference of the listing (one of: "unspecified", "male_only", "female_only")
- `employer_type` (string, nullable) — Type of hiring employer (one of: "private", "recruitment_agency", "public")
- `industry` (string, nullable) — Industry of the hiring company (one of: "accounting", "administration_support_services", "advertising", "aerospace", "agriculture_and_crop_production", "airconditioning_plant", "airlines", "amusement_and_recreation_facility", "animal_production", "architecture", "arts_and_crafts_supplies", "automotive_dealership_and_distributor", "automotive_manufacture", "automotive_repair_spare_parts_and_support_services", "aviation_support_services", "banking", "biotechnology", "bookshop_and_consumer_media", "broadcast_media_production", "business_consultancy_services", "business_process_outsourcing_bpo", "business_support_services", "call_centers_and_customer_care_outsourcing", "catering_food_service_and_restaurant", "chemicals_manufacture", "civil_engineering", "computer_hardware_and_high_tech_manufacture", "construction_and_building", "consumer_electronics", "consumer_packaged_goods_manufacture", "corporate_management_office", "crude_petroleum_and_gas_extraction", "cyber_and_network_security", "dairy_production", "data_hosting_and_storage", "dental_center_and_clinic", "distribution_supply_chain_and_logistics", "economics_and_financial_consulting", "electric_power_production_and_transmission", "electrical_engineering", "energy_and_renewables", "entertainment", "events_management", "fmcg", "facilities_and_property_management", "fashion_and_apparel", "fashion_design", "financial_auditing", "financial_services", "fishing", "fit_out_and_joinery", "food_and_beverage_production", "forestry_and_logging", "general_engineering_consultancy", "graphic_design", "ground_fleet_aviation_and_marine_refuelling", "hardware_and_building_materials", "heavy_industry_and_metallurgy", "higher_education", "home_and_office_furniture", "home_accessories_and_decor", "hospitality_and_accomodation", "household_appliances", "human_resources_outsourcing", "it_services", "industrial_engineering_and_automation", "industrial_production", "installation_and_technical_services", "insurance_and_tpa", "interior_design", "international_humanitarian_organization", "internet_and_e_commerce", "investment_securities_and_funds", "islamic_banking", "jewelry_and_gold", "journalism", "knowledge_process_outsourcing_kpo", "lpg_bottling", "laboratory_and_quality_control", "law_enforcement_and_civil_defence", "law_firm", "legal_process_outsourcing_lpo", "library", "livestock", "lubricants_and_greases_blending", "management_consulting", "manufacturing", "marine_transport_services", "maritime_and_marine_engineering", "market_research", "marketing", "mechanical_engineering", "media_production", "medical_and_healthcare_equipment", "medical_clinic", "medical_hospital", "merchandising", "metro_and_rail_passenger_transport", "military_and_defense", "mining_and_quarrying", "modeling_and_talent_agency", "motor_vehicle_passenger_transport", "music_production", "natural_gas_distribution", "non_profit_organization", "office_supplies", "oil_and_gas", "other_business_support_services", "other_healthcare_services", "paper_and_paper_product_manufacture", "performing_arts", "perfume_and_cosmetics", "personal_care_centers", "personal_services", "pet_supplies", "petrochemicals_and_refined_petroleum_products_manufacture", "pharmaceutical_manufacturing", "pharmacies", "photography", "plants_and_gardening_equipment", "preschool_nursery_and_daycare", "primary_prep_and_secondary_school", "printing", "private_security_services", "project_and_construction_planning", "public_administration", "public_relations_pr", "publishing", "purchasing_and_procurement", "quantity_survey", "real_estate", "recruitment_and_employee_placement_agency", "religious_institution_and_place_of_worship", "residential_and_nursing_care_services", "retail_and_wholesale", "safety_and_environment", "sales_outsourcing", "scientific_research_and_development", "security_and_fire_systems", "semiconductors", "shipping", "social_services", "software_development", "sporting_goods", "sports_and_outdoor_activities", "supermarket", "technical_maintenance_and_repair", "telecommunications", "telemarketing", "textile_and_apparel_production", "tobacco_and_smoking_goods", "tobacco_products_manufacture", "tourism_museum_and_cultural", "toys_and_leisure", "trading_and_commodity_trading", "training_and_education_center", "translation_and_document_processing", "travel_agency", "utilities", "venture_capital_and_private_equity", "veterinary_hospital_and_clinic", "video_and_film_production", "video_gaming", "virtual_assistant_services", "vocational_education", "warehousing", "waste_disposal_and_recycling", "watches_and_luxury_goods", "water_and_waste_water_treatment")
- `company` (string, nullable) — Filter by hiring company name (minLength: 1)
- `remote` (boolean, nullable) — Only remote / work-from-home jobs
- `sort` (string, nullable) — Result ordering (one of: "relevance", "date", "language")

## Response

### 200 — Successful Response

- `@type` (string) (default: "BaytJobSearchItem")
- `id` (integer, required)
- `url` (string, nullable)
- `country` (string, required) (one of: "UAE", "Saudi Arabia", "Qatar", "Kuwait", "Oman", "Bahrain", "Egypt", "Jordan", "Lebanon", "Morocco", "Algeria", "Tunisia", "Libya", "Iraq", "Yemen", "India", "Pakistan", "International")
- `summary` (string, nullable)
- `career_level` (string, nullable)
- `years_of_experience` (string, nullable)
- `is_remote` (boolean, nullable)
- `work_setting` (string, nullable)
- `citizenship` (string, nullable)
- `is_featured` (boolean) (default: false)
- `easy_apply` (boolean) (default: false)
- `posted_age` (string, nullable)
- `posted_at` (string, nullable)
- `company` (object, nullable)
  - `@type` (string) (default: "BaytJobSearchCompany")
  - `id` (string, nullable)
  - `name` (string, nullable)
  - `image` (string, nullable)
  - `profile_url` (string, nullable)
- `location` (object, nullable)
  - `@type` (string) (default: "BaytJobSearchLocation")
  - `district` (string, nullable)
  - `city` (string, nullable)
  - `country` (string, nullable)
- `salary` (object, nullable)
  - `@type` (string) (default: "BaytJobSearchSalary")
  - `display` (string, nullable)
  - `salary_min` (number, nullable)
  - `salary_max` (number, nullable)
  - `currency` (string, nullable)

## Errors

### 422 — Validation Error

The request body did not validate

What to do: Check the fields against this schema. A URN with the wrong prefix is the most common cause.

- `detail` (array)
  - `loc` (array, required)
  - `msg` (string, required)
  - `type` (string, required)
  - `input` (any)
  - `ctx` (object)

### 408

The request ran past its time limit

What to do: Raise `timeout` in the request body, up to the maximum this endpoint documents. Lowering `count` or turning off the `with_*` flags also helps, because less work finishes sooner.

### 412

The entity was not found, or a precondition failed

What to do: Retrying will not help: either the entity does not exist, or the input points at a different one.

### 429

Too many requests: a rate limit or a usage window is exhausted

What to do: When the response carries an X-Retry-After header, wait that many seconds and retry: the same number is in the body as `detail.retry_after`, and the limit clears once that window passes. The message in the body names the limit that was hit.

### 500

Something broke on our side

What to do: Retrying will not help. If it keeps happening, send us the X-Request-ID from the response headers.

### 529

Rate limit reached, or the endpoint is overloaded

What to do: Wait at least 30 seconds, then retry.

## Response envelope

Success: Array of objects (may be empty if no results)

Error: Error may coexist with partial results if it occurs mid-execution. Check X-Error header and status code.

Every response carries these headers:

- `X-Error` — Error message text (present only on error)
- `X-Request-ID` — Unique request identifier
- `X-Execution-Time` — Execution time in seconds
- `X-Result-Count` — How many records the body carries. 0 means an empty result, which is a normal answer and not by itself an error. A non-zero count can come back together with X-Error when the failure happened partway through — read this header and X-Error independently.
- `X-Total-Available-Results` — How many records exist for this query, when the endpoint can say. On a `dry_run` request this is the answer and the body is empty. It saturates: the endpoint's documented maximum means 'at least that many', any smaller number is exact.
- `X-Warning` — Present when the request body carried keys this endpoint does not document. They were ignored, so any filter you meant to apply through them did not apply. Check the spelling against this schema and retry.
- `X-Retry-After` — Seconds to wait before retrying. Present only on 429.

