openapi: 3.0.0
info:
  title: Craigslist Search API
  description: |
    Search Craigslist postings on one Craigslist site, in any category: for sale, housing, jobs, services, gigs, community, events and resumes.

    Each result carries its Craigslist listing id, title, link, category and posting time, and its price, location, coordinates and images when it has them. Housing postings add bedrooms and floor area, cars add mileage, jobs add salary, company and job title, and events add their dates. Prices use each posting's site currency. `search_information.currency` gives the search area's currency when available.

    The response lists the filters Craigslist offers for the category. Send an option's `filter_value` in `filters`, or a `filter_name` with a value after a colon, to narrow the next search.
  version: 1.0.0
servers:
  - url: https://www.searchapi.io/api/v1
paths:
  /search:
    get:
      summary: Craigslist Search
      security:
        - ApiKeyAuth: []
        - ApiKeyQuery: []
      parameters:
        - name: engine
          in: query
          required: true
          description: 'Search engine. Must be set to: `craigslist_search`'
          schema:
            type: string
            enum: ["craigslist_search"]
        - name: craigslist_domain
          in: query
          required: true
          description: Craigslist site to search, such as `sfbay.craigslist.org`, `newyork.craigslist.org` or `london.craigslist.org`.
          schema:
            type: string
            enum: ["abbotsford.craigslist.org", "aberdeen.craigslist.org", "abilene.craigslist.org", "acapulco.craigslist.org", "accra.craigslist.org", "addisababa.craigslist.org", "adelaide.craigslist.org", "ahmedabad.craigslist.org", "akroncanton.craigslist.org", "albany.craigslist.org", "albanyga.craigslist.org", "albuquerque.craigslist.org", "alicante.craigslist.org", "allentown.craigslist.org", "altoona.craigslist.org", "amarillo.craigslist.org", "ames.craigslist.org", "amsterdam.craigslist.org", "anchorage.craigslist.org", "annapolis.craigslist.org", "annarbor.craigslist.org", "appleton.craigslist.org", "asheville.craigslist.org", "ashtabula.craigslist.org", "athens.craigslist.org", "athensga.craigslist.org", "athensohio.craigslist.org", "atlanta.craigslist.org", "auburn.craigslist.org", "auckland.craigslist.org", "augusta.craigslist.org", "austin.craigslist.org", "bacolod.craigslist.org", "baghdad.craigslist.org", "bajasur.craigslist.org", "bakersfield.craigslist.org", "baleares.craigslist.org", "baltimore.craigslist.org", "bangalore.craigslist.org", "bangkok.craigslist.org", "bangladesh.craigslist.org", "barcelona.craigslist.org", "barrie.craigslist.org", "basel.craigslist.org", "bath.craigslist.org", "batonrouge.craigslist.org", "battlecreek.craigslist.org", "beaumont.craigslist.org", "beijing.craigslist.org", "beirut.craigslist.org", "belfast.craigslist.org", "belleville.craigslist.org", "bellingham.craigslist.org", "belohorizonte.craigslist.org", "bemidji.craigslist.org", "bend.craigslist.org", "berlin.craigslist.org", "bern.craigslist.org", "bgky.craigslist.org", "bham.craigslist.org", "bhubaneswar.craigslist.org", "bigbend.craigslist.org", "bilbao.craigslist.org", "billings.craigslist.org", "binghamton.craigslist.org", "birmingham.craigslist.org", "bismarck.craigslist.org", "blacksburg.craigslist.org", "bloomington.craigslist.org", "bn.craigslist.org", "boise.craigslist.org", "bologna.craigslist.org", "boone.craigslist.org", "bordeaux.craigslist.org", "boston.craigslist.org", "boulder.craigslist.org", "bozeman.craigslist.org", "brainerd.craigslist.org", "brantford.craigslist.org", "brasilia.craigslist.org", "bremen.craigslist.org", "brighton.craigslist.org", "brisbane.craigslist.org", "bristol.craigslist.org", "brownsville.craigslist.org", "brunswick.craigslist.org", "brussels.craigslist.org", "bucharest.craigslist.org", "budapest.craigslist.org", "buenosaires.craigslist.org", "buffalo.craigslist.org", "bulgaria.craigslist.org", "butte.craigslist.org", "cadiz.craigslist.org", "cairns.craigslist.org", "cairo.craigslist.org", "calgary.craigslist.org", "cambridge.craigslist.org", "canarias.craigslist.org", "canberra.craigslist.org", "capecod.craigslist.org", "capetown.craigslist.org", "caracas.craigslist.org", "carbondale.craigslist.org", "cardiff.craigslist.org", "caribbean.craigslist.org", "cariboo.craigslist.org", "casablanca.craigslist.org", "catskills.craigslist.org", "cdo.craigslist.org", "cebu.craigslist.org", "cedarrapids.craigslist.org", "cenla.craigslist.org", "centralmich.craigslist.org", "cfl.craigslist.org", "chambana.craigslist.org", "chambersburg.craigslist.org", "chandigarh.craigslist.org", "charleston.craigslist.org", "charlestonwv.craigslist.org", "charlotte.craigslist.org", "charlottesville.craigslist.org", "chatham.craigslist.org", "chattanooga.craigslist.org", "chautauqua.craigslist.org", "chengdu.craigslist.org", "chennai.craigslist.org", "chicago.craigslist.org", "chico.craigslist.org", "chihuahua.craigslist.org", "chillicothe.craigslist.org", "chongqing.craigslist.org", "christchurch.craigslist.org", "cincinnati.craigslist.org", "clarksville.craigslist.org", "cleveland.craigslist.org", "clovis.craigslist.org", "cnj.craigslist.org", "collegestation.craigslist.org", "cologne.craigslist.org", "colombia.craigslist.org", "columbia.craigslist.org", "columbiamo.craigslist.org", "columbus.craigslist.org", "columbusga.craigslist.org", "comoxvalley.craigslist.org", "cookeville.craigslist.org", "copenhagen.craigslist.org", "cornwall.craigslist.org", "corpuschristi.craigslist.org", "corvallis.craigslist.org", "cosprings.craigslist.org", "costarica.craigslist.org", "cotedazur.craigslist.org", "coventry.craigslist.org", "csd.craigslist.org", "curitiba.craigslist.org", "dalian.craigslist.org", "dallas.craigslist.org", "danville.craigslist.org", "darwin.craigslist.org", "davaocity.craigslist.org", "dayton.craigslist.org", "daytona.craigslist.org", "decatur.craigslist.org", "delaware.craigslist.org", "delhi.craigslist.org", "delrio.craigslist.org", "denver.craigslist.org", "derby.craigslist.org", "desmoines.craigslist.org", "detroit.craigslist.org", "devon.craigslist.org", "dothan.craigslist.org", "dresden.craigslist.org", "dubai.craigslist.org", "dublin.craigslist.org", "dubuque.craigslist.org", "duluth.craigslist.org", "dundee.craigslist.org", "dunedin.craigslist.org", "durban.craigslist.org", "dusseldorf.craigslist.org", "eastco.craigslist.org", "easternshore.craigslist.org", "eastidaho.craigslist.org", "eastky.craigslist.org", "eastmids.craigslist.org", "eastnc.craigslist.org", "eastoregon.craigslist.org", "easttexas.craigslist.org", "eauclaire.craigslist.org", "edinburgh.craigslist.org", "edmonton.craigslist.org", "elko.craigslist.org", "elmira.craigslist.org", "elpaso.craigslist.org", "elsalvador.craigslist.org", "enid.craigslist.org", "erie.craigslist.org", "essen.craigslist.org", "essex.craigslist.org", "eugene.craigslist.org", "evansville.craigslist.org", "fairbanks.craigslist.org", "fargo.craigslist.org", "farmington.craigslist.org", "faro.craigslist.org", "fayar.craigslist.org", "fayetteville.craigslist.org", "fingerlakes.craigslist.org", "flagstaff.craigslist.org", "flint.craigslist.org", "florence.craigslist.org", "florencesc.craigslist.org", "fortaleza.craigslist.org", "fortcollins.craigslist.org", "fortdodge.craigslist.org", "fortmyers.craigslist.org", "fortsmith.craigslist.org", "fortwayne.craigslist.org", "frankfurt.craigslist.org", "frederick.craigslist.org", "fredericksburg.craigslist.org", "fresno.craigslist.org", "ftmcmurray.craigslist.org", "fukuoka.craigslist.org", "gadsden.craigslist.org", "gainesville.craigslist.org", "galveston.craigslist.org", "geneva.craigslist.org", "genoa.craigslist.org", "glasgow.craigslist.org", "glensfalls.craigslist.org", "goa.craigslist.org", "goldcoast.craigslist.org", "goldcountry.craigslist.org", "granada.craigslist.org", "grandforks.craigslist.org", "grandisland.craigslist.org", "grandrapids.craigslist.org", "greatfalls.craigslist.org", "greenbay.craigslist.org", "greensboro.craigslist.org", "greenville.craigslist.org", "grenoble.craigslist.org", "guadalajara.craigslist.org", "guanajuato.craigslist.org", "guangzhou.craigslist.org", "guatemala.craigslist.org", "guelph.craigslist.org", "gulfport.craigslist.org", "haifa.craigslist.org", "halifax.craigslist.org", "hamburg.craigslist.org", "hamilton.craigslist.org", "hampshire.craigslist.org", "hanford.craigslist.org", "hangzhou.craigslist.org", "hannover.craigslist.org", "harrisburg.craigslist.org", "harrisonburg.craigslist.org", "hartford.craigslist.org", "hat.craigslist.org", "hattiesburg.craigslist.org", "heidelberg.craigslist.org", "helena.craigslist.org", "helsinki.craigslist.org", "hermosillo.craigslist.org", "hickory.craigslist.org", "hiltonhead.craigslist.org", "hiroshima.craigslist.org", "hobart.craigslist.org", "holland.craigslist.org", "hongkong.craigslist.org", "honolulu.craigslist.org", "houma.craigslist.org", "houston.craigslist.org", "hudsonvalley.craigslist.org", "humboldt.craigslist.org", "huntington.craigslist.org", "huntsville.craigslist.org", "hyderabad.craigslist.org", "iloilo.craigslist.org", "imperial.craigslist.org", "indianapolis.craigslist.org", "indore.craigslist.org", "inlandempire.craigslist.org", "iowacity.craigslist.org", "istanbul.craigslist.org", "ithaca.craigslist.org", "jackson.craigslist.org", "jacksontn.craigslist.org", "jacksonville.craigslist.org", "jaipur.craigslist.org", "jakarta.craigslist.org", "janesville.craigslist.org", "jerseyshore.craigslist.org", "jerusalem.craigslist.org", "johannesburg.craigslist.org", "jonesboro.craigslist.org", "joplin.craigslist.org", "juarez.craigslist.org", "juneau.craigslist.org", "jxn.craigslist.org", "kaiserslautern.craigslist.org", "kalamazoo.craigslist.org", "kalispell.craigslist.org", "kamloops.craigslist.org", "kansascity.craigslist.org", "kelowna.craigslist.org", "kenai.craigslist.org", "kent.craigslist.org", "kenya.craigslist.org", "kerala.craigslist.org", "keys.craigslist.org", "killeen.craigslist.org", "kingston.craigslist.org", "kirksville.craigslist.org", "kitchener.craigslist.org", "klamath.craigslist.org", "knoxville.craigslist.org", "kokomo.craigslist.org", "kolkata.craigslist.org", "kootenays.craigslist.org", "kpr.craigslist.org", "ksu.craigslist.org", "kuwait.craigslist.org", "lacrosse.craigslist.org", "lafayette.craigslist.org", "lakecharles.craigslist.org", "lakecity.craigslist.org", "lakeland.craigslist.org", "lancaster.craigslist.org", "lansing.craigslist.org", "lapaz.craigslist.org", "laredo.craigslist.org", "lasalle.craigslist.org", "lascruces.craigslist.org", "lasvegas.craigslist.org", "lausanne.craigslist.org", "lawrence.craigslist.org", "lawton.craigslist.org", "leeds.craigslist.org", "leipzig.craigslist.org", "lethbridge.craigslist.org", "lewiston.craigslist.org", "lexington.craigslist.org", "lille.craigslist.org", "lima.craigslist.org", "limaohio.craigslist.org", "lincoln.craigslist.org", "lisbon.craigslist.org", "littlerock.craigslist.org", "liverpool.craigslist.org", "logan.craigslist.org", "loire.craigslist.org", "london.craigslist.org", "londonon.craigslist.org", "longisland.craigslist.org", "losangeles.craigslist.org", "louisville.craigslist.org", "loz.craigslist.org", "lubbock.craigslist.org", "lucknow.craigslist.org", "luxembourg.craigslist.org", "lynchburg.craigslist.org", "lyon.craigslist.org", "macon.craigslist.org", "madison.craigslist.org", "madrid.craigslist.org", "maine.craigslist.org", "malaga.craigslist.org", "malaysia.craigslist.org", "managua.craigslist.org", "manchester.craigslist.org", "manila.craigslist.org", "mankato.craigslist.org", "mansfield.craigslist.org", "marseilles.craigslist.org", "marshall.craigslist.org", "martinsburg.craigslist.org", "masoncity.craigslist.org", "mattoon.craigslist.org", "mazatlan.craigslist.org", "mcallen.craigslist.org", "meadville.craigslist.org", "medford.craigslist.org", "melbourne.craigslist.org", "memphis.craigslist.org", "mendocino.craigslist.org", "merced.craigslist.org", "meridian.craigslist.org", "mexicocity.craigslist.org", "miami.craigslist.org", "micronesia.craigslist.org", "milan.craigslist.org", "milwaukee.craigslist.org", "minneapolis.craigslist.org", "missoula.craigslist.org", "mobile.craigslist.org", "modesto.craigslist.org", "mohave.craigslist.org", "monroe.craigslist.org", "monroemi.craigslist.org", "montana.craigslist.org", "monterey.craigslist.org", "monterrey.craigslist.org", "montevideo.craigslist.org", "montgomery.craigslist.org", "montpellier.craigslist.org", "montreal.craigslist.org", "morgantown.craigslist.org", "moscow.craigslist.org", "moseslake.craigslist.org", "mumbai.craigslist.org", "muncie.craigslist.org", "munich.craigslist.org", "muskegon.craigslist.org", "myrtlebeach.craigslist.org", "nacogdoches.craigslist.org", "naga.craigslist.org", "nagoya.craigslist.org", "nanaimo.craigslist.org", "nanjing.craigslist.org", "naples.craigslist.org", "nashville.craigslist.org", "natchez.craigslist.org", "nd.craigslist.org", "nesd.craigslist.org", "newbrunswick.craigslist.org", "newcastle.craigslist.org", "newfoundland.craigslist.org", "newhaven.craigslist.org", "newjersey.craigslist.org", "newlondon.craigslist.org", "neworleans.craigslist.org", "newyork.craigslist.org", "nh.craigslist.org", "niagara.craigslist.org", "nmi.craigslist.org", "norfolk.craigslist.org", "northernwi.craigslist.org", "northmiss.craigslist.org", "northplatte.craigslist.org", "norwich.craigslist.org", "nottingham.craigslist.org", "ntl.craigslist.org", "nuremberg.craigslist.org", "nwct.craigslist.org", "nwga.craigslist.org", "nwks.craigslist.org", "oaxaca.craigslist.org", "ocala.craigslist.org", "odessa.craigslist.org", "ogden.craigslist.org", "okaloosa.craigslist.org", "okinawa.craigslist.org", "oklahomacity.craigslist.org", "olympic.craigslist.org", "omaha.craigslist.org", "oneonta.craigslist.org", "onslow.craigslist.org", "orangecounty.craigslist.org", "oregoncoast.craigslist.org", "orlando.craigslist.org", "osaka.craigslist.org", "oslo.craigslist.org", "ottawa.craigslist.org", "ottumwa.craigslist.org", "outerbanks.craigslist.org", "owensboro.craigslist.org", "owensound.craigslist.org", "oxford.craigslist.org", "pakistan.craigslist.org", "palmsprings.craigslist.org", "pampanga.craigslist.org", "panama.craigslist.org", "panamacity.craigslist.org", "paris.craigslist.org", "parkersburg.craigslist.org", "peace.craigslist.org", "pei.craigslist.org", "pennstate.craigslist.org", "pensacola.craigslist.org", "peoria.craigslist.org", "perth.craigslist.org", "perugia.craigslist.org", "peterborough.craigslist.org", "philadelphia.craigslist.org", "phoenix.craigslist.org", "pittsburgh.craigslist.org", "plattsburgh.craigslist.org", "poconos.craigslist.org", "porthuron.craigslist.org", "portland.craigslist.org", "porto.craigslist.org", "portoalegre.craigslist.org", "potsdam.craigslist.org", "prague.craigslist.org", "prescott.craigslist.org", "pretoria.craigslist.org", "princegeorge.craigslist.org", "providence.craigslist.org", "provo.craigslist.org", "puebla.craigslist.org", "pueblo.craigslist.org", "puertorico.craigslist.org", "pullman.craigslist.org", "pune.craigslist.org", "pv.craigslist.org", "quadcities.craigslist.org", "quebec.craigslist.org", "quincy.craigslist.org", "quito.craigslist.org", "racine.craigslist.org", "raleigh.craigslist.org", "ramallah.craigslist.org", "rapidcity.craigslist.org", "reading.craigslist.org", "recife.craigslist.org", "reddeer.craigslist.org", "redding.craigslist.org", "regina.craigslist.org", "rennes.craigslist.org", "reno.craigslist.org", "reykjavik.craigslist.org", "richmond.craigslist.org", "richmondin.craigslist.org", "rio.craigslist.org", "rmn.craigslist.org", "roanoke.craigslist.org", "rochester.craigslist.org", "rockford.craigslist.org", "rockies.craigslist.org", "rome.craigslist.org", "roseburg.craigslist.org", "roswell.craigslist.org", "rouen.craigslist.org", "sacramento.craigslist.org", "saginaw.craigslist.org", "saguenay.craigslist.org", "salem.craigslist.org", "salina.craigslist.org", "saltlakecity.craigslist.org", "salvador.craigslist.org", "sanangelo.craigslist.org", "sanantonio.craigslist.org", "sandiego.craigslist.org", "sandusky.craigslist.org", "sanmarcos.craigslist.org", "santabarbara.craigslist.org", "santafe.craigslist.org", "santamaria.craigslist.org", "santiago.craigslist.org", "santodomingo.craigslist.org", "saopaulo.craigslist.org", "sapporo.craigslist.org", "sarasota.craigslist.org", "sardinia.craigslist.org", "sarnia.craigslist.org", "saskatoon.craigslist.org", "savannah.craigslist.org", "scottsbluff.craigslist.org", "scranton.craigslist.org", "sd.craigslist.org", "seattle.craigslist.org", "seks.craigslist.org", "semo.craigslist.org", "sendai.craigslist.org", "seoul.craigslist.org", "sevilla.craigslist.org", "sfbay.craigslist.org", "shanghai.craigslist.org", "sheboygan.craigslist.org", "sheffield.craigslist.org", "shenyang.craigslist.org", "shenzhen.craigslist.org", "sherbrooke.craigslist.org", "shoals.craigslist.org", "showlow.craigslist.org", "shreveport.craigslist.org", "sicily.craigslist.org", "sierravista.craigslist.org", "singapore.craigslist.org", "siouxcity.craigslist.org", "siouxfalls.craigslist.org", "siskiyou.craigslist.org", "skagit.craigslist.org", "skeena.craigslist.org", "slo.craigslist.org", "smd.craigslist.org", "soo.craigslist.org", "southbend.craigslist.org", "southcoast.craigslist.org", "southjersey.craigslist.org", "spacecoast.craigslist.org", "spokane.craigslist.org", "springfield.craigslist.org", "springfieldil.craigslist.org", "statesboro.craigslist.org", "staugustine.craigslist.org", "stcloud.craigslist.org", "stgeorge.craigslist.org", "stillwater.craigslist.org", "stjoseph.craigslist.org", "stlouis.craigslist.org", "stockholm.craigslist.org", "stockton.craigslist.org", "stpetersburg.craigslist.org", "strasbourg.craigslist.org", "stuttgart.craigslist.org", "sudbury.craigslist.org", "sunshine.craigslist.org", "surat.craigslist.org", "susanville.craigslist.org", "swks.craigslist.org", "swmi.craigslist.org", "swv.craigslist.org", "swva.craigslist.org", "sydney.craigslist.org", "syracuse.craigslist.org", "taipei.craigslist.org", "tallahassee.craigslist.org", "tampa.craigslist.org", "tehran.craigslist.org", "telaviv.craigslist.org", "terrehaute.craigslist.org", "territories.craigslist.org", "texarkana.craigslist.org", "texoma.craigslist.org", "thumb.craigslist.org", "thunderbay.craigslist.org", "tijuana.craigslist.org", "tippecanoe.craigslist.org", "tokyo.craigslist.org", "toledo.craigslist.org", "topeka.craigslist.org", "torino.craigslist.org", "toronto.craigslist.org", "toulouse.craigslist.org", "treasure.craigslist.org", "tricities.craigslist.org", "troisrivieres.craigslist.org", "tucson.craigslist.org", "tulsa.craigslist.org", "tunis.craigslist.org", "tuscaloosa.craigslist.org", "tuscarawas.craigslist.org", "twinfalls.craigslist.org", "twintiers.craigslist.org", "ukraine.craigslist.org", "up.craigslist.org", "utica.craigslist.org", "valdosta.craigslist.org", "valencia.craigslist.org", "vancouver.craigslist.org", "venice.craigslist.org", "ventura.craigslist.org", "veracruz.craigslist.org", "vermont.craigslist.org", "victoria.craigslist.org", "victoriatx.craigslist.org", "vienna.craigslist.org", "vietnam.craigslist.org", "virgin.craigslist.org", "visalia.craigslist.org", "waco.craigslist.org", "warsaw.craigslist.org", "washingtondc.craigslist.org", "waterloo.craigslist.org", "watertown.craigslist.org", "wausau.craigslist.org", "wellington.craigslist.org", "wenatchee.craigslist.org", "westernmass.craigslist.org", "westky.craigslist.org", "westmd.craigslist.org", "westslope.craigslist.org", "wheeling.craigslist.org", "whistler.craigslist.org", "whitehorse.craigslist.org", "wichita.craigslist.org", "wichitafalls.craigslist.org", "williamsport.craigslist.org", "wilmington.craigslist.org", "winchester.craigslist.org", "windsor.craigslist.org", "winnipeg.craigslist.org", "winstonsalem.craigslist.org", "wollongong.craigslist.org", "worcester.craigslist.org", "wuhan.craigslist.org", "wv.craigslist.org", "wyoming.craigslist.org", "xian.craigslist.org", "yakima.craigslist.org", "yellowknife.craigslist.org", "york.craigslist.org", "youngstown.craigslist.org", "yubasutter.craigslist.org", "yucatan.craigslist.org", "yuma.craigslist.org", "zagreb.craigslist.org", "zamboanga.craigslist.org", "zanesville.craigslist.org", "zurich.craigslist.org"]
        - name: q
          in: query
          required: false
          description: Search text, up to 180 characters. Leave it out to list the newest postings in a category.
          schema:
            type: string
            maxLength: 180
        - name: subarea
          in: query
          required: false
          description: Part of the site to search, such as `pen` (peninsula) on `sfbay.craigslist.org` or `mnh` (Manhattan) on `newyork.craigslist.org`. Only larger sites have parts.
          schema:
            type: string
            enum: ["ank", "ant", "atl", "big", "bmw", "bnc", "bra", "brk", "brw", "brx", "chc", "chl", "clc", "clk", "col", "cph", "csd", "csw", "dak", "dal", "doc", "drh", "eat", "eby", "esd", "est", "evl", "fct", "ftw", "gbs", "grg", "hdo", "hil", "hnp", "jsy", "kau", "kit", "lac", "lee", "lgb", "lgi", "mau", "mcb", "mdc", "mdf", "mld", "mlt", "mnh", "mol", "mss", "nat", "nby", "nch", "nco", "ndf", "nos", "nph", "nsd", "nva", "nvn", "nwb", "nwc", "nwi", "oah", "oak", "okl", "oly", "pbc", "pen", "pml", "pnl", "psc", "que", "ram", "rch", "rds", "sat", "sby", "scz", "sdf", "see", "sfc", "sfv", "sgv", "skc", "sno", "sob", "sox", "ssd", "stn", "tac", "tor", "van", "wat", "wch", "wcl", "wsc", "wsh", "wst", "wvl", "wyn", "yam", "yrk"]
        - name: category_id
          in: query
          required: false
          description: Category to search in, as Craigslist codes it. Main categories are `sss` (for sale), `hhh` (housing), `jjj` (jobs), `bbb` (services), `ggg` (gigs), `ccc` (community), `eee` (events) and `rrr` (resumes). Each result's `category_id` is a code this parameter takes.
          schema:
            type: string
            enum: ["bbb", "biz", "cps", "crs", "evs", "hss", "lss", "lbs", "sks", "lgs", "fns", "rts", "aos", "bts", "wet", "trv", "fgs", "pas", "mas", "cys", "cms", "hws", "ccc", "com", "vol", "act", "rid", "pet", "kid", "mis", "ats", "muc", "pol", "laf", "rnr", "grp", "vnn", "eee", "eve", "cls", "ggg", "tlg", "cwg", "cpg", "lbg", "wrg", "dmg", "crg", "evg", "hhh", "rea", "reo", "reb", "apa", "hou", "roo", "sha", "sub", "off", "prk", "sbw", "swp", "vac", "rew", "jjj", "web", "bus", "mar", "etc", "wri", "sof", "acc", "ofc", "med", "hea", "ret", "npo", "lgl", "egr", "sls", "sad", "tfr", "hum", "tch", "edu", "trd", "gov", "sci", "csr", "trp", "spa", "rej", "mnu", "fbh", "lab", "sec", "rrr", "res", "sss", "foa", "for", "fod", "sya", "sys", "syd", "waa", "wan", "wad", "tia", "tix", "tid", "bia", "bik", "bid", "mca", "mcy", "mcd", "bka", "bks", "bkd", "sga", "spo", "sgd", "cla", "clo", "cld", "cba", "clt", "cbd", "ela", "ele", "eld", "hsa", "hsh", "hsd", "msa", "msg", "msd", "baa", "bab", "bad", "ema", "emd", "emq", "tla", "tls", "tld", "boo", "boa", "bod", "jwa", "jwl", "jwd", "pta", "pts", "ptd", "rva", "rvs", "rvd", "taa", "tag", "tad", "gra", "grd", "grq", "bfa", "bfs", "bfd", "ara", "art", "ard", "maa", "mat", "mad", "pha", "pho", "phd", "fua", "fuo", "fud", "cta", "cto", "ctd", "ppa", "app", "ppd", "ata", "atq", "atd", "vga", "vgm", "vgd", "haa", "hab", "had", "moa", "mob", "mod", "sna", "snw", "snd", "hva", "hvo", "hvd", "mpa", "mpo", "mpd", "bip", "bop", "bdp", "syp", "sop", "sdp", "bpa", "bpo", "bpd", "wta", "wto", "wtd", "tra", "tro", "trb", "ava", "avo", "avd", "bar", "gms", "zip"]
            default: "sss"
        - name: filters
          in: query
          required: false
          description: The category's own filters, comma-separated, up to 30. Each is a `filter_value` from the `filters` of an earlier response, such as `pets_dog:1`, or a `filter_name` with a value after a colon, such as `min_bedrooms:2`. A range takes a whole number. On events, garage sales and housing, `sale_date:2026-11-28` keeps the postings held, or with an open house, on that day. Several codes of one checkbox filter, such as `bicycle_type:1,bicycle_type:3`, widen the results. A `filter_name` takes one value, and Craigslist reads only the first. A filter Craigslist does not know in the category, or a value it refuses, returns an error.
          schema:
            type: string
        - name: sort_by
          in: query
          required: false
          description: Sorts the results. Without it, results with `q` come in best match order, and results without `q` newest first. `best_match` needs `q`, `distance` needs `postal_code`, and the price sorts work in for sale and housing.
          schema:
            type: string
            enum: ["best_match", "newest", "oldest", "price_low_to_high", "price_high_to_low", "distance"]
        - name: price_min
          in: query
          required: false
          description: Lowest price, a whole number in the site's currency.
          schema:
            type: integer
            minimum: 0
            maximum: 1000000000
        - name: price_max
          in: query
          required: false
          description: Highest price, a whole number in the site's currency. It must not be lower than `price_min`.
          schema:
            type: integer
            minimum: 0
            maximum: 1000000000
        - name: postal_code
          in: query
          required: false
          description: Postal code to search around, such as `94110`. It works on Craigslist sites in the US, Canada and the UK. On UK sites, use the full postcode, such as `E1W 2SF`. Some outcodes, such as `SW1`, also work. A code from another part of the country returns postings from the sites there. Searches near a border can include postings from both countries. A code Craigslist does not recognise returns an error, as does a code it places abroad whose format does not match the selected country. A UK search also returns an error when Craigslist resolves the code to a Canadian or US site.
          schema:
            type: string
        - name: radius
          in: query
          required: false
          description: Distance around `postal_code` to search, in miles on US and UK sites and in kilometres on Canadian sites. It needs `postal_code`.
          schema:
            type: integer
            minimum: 1
            maximum: 1000
        - name: condition
          in: query
          required: false
          description: Condition of items for sale, comma-separated, from `new`, `like_new`, `excellent`, `good`, `fair` and `salvage`.
          schema:
            type: string
        - name: seller_type
          in: query
          required: false
          description: Who sells.
          schema:
            type: string
            enum: ["owner", "dealer"]
        - name: has_images
          in: query
          required: false
          description: Set to `true` to return only postings with images.
          schema:
            type: string
            enum: ["true", "false"]
        - name: is_posted_today
          in: query
          required: false
          description: Set to `true` to return only postings from today.
          schema:
            type: string
            enum: ["true", "false"]
        - name: is_title_only
          in: query
          required: false
          description: Set to `true` to match `q` in titles only.
          schema:
            type: string
            enum: ["true", "false"]
        - name: page
          in: query
          required: false
          description: Page of results. Craigslist lists 120 postings a page and up to 10,000 postings a search. The last page is the one whose `pagination` has no `next`.
          schema:
            type: integer
            minimum: 1
            maximum: 84
            default: 1
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchResponse'
        '400':
          description: Validation Error. There is an issue with query parameters, such as missing required parameters or invalid values.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Authentication Error. The API key is missing or invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate Limit Exceeded. The number of allowed requests has been exceeded. Consider upgrading your plan or waiting for the limit to reset.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Server Error. Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: Timeout. We could not retrieve results in 90 seconds.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: 'Use Bearer authentication. Format: "Bearer YOUR_API_KEY"'
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api_key
      description: Pass API key as query parameter
  schemas:
    SearchResponse:
      type: object
      properties:
        search_metadata:
          $ref: '#/components/schemas/SearchMetadata'
        search_parameters:
          $ref: '#/components/schemas/SearchParameters'
        search_information:
          $ref: '#/components/schemas/SearchInformation'
        organic_results:
          type: array
          description: Postings Craigslist lists for the search, in Craigslist's order.
          items:
            $ref: '#/components/schemas/OrganicResult'
        filters:
          type: array
          description: Filters Craigslist offers for the category.
          items:
            $ref: '#/components/schemas/Filter'
        pagination:
          $ref: '#/components/schemas/Pagination'
        error:
          type: string
          description: Why the search returned no postings.
    SearchMetadata:
      type: object
      required: [status, created_at]
      properties:
        id:
          type: string
          description: "Unique identifier for the search request"
        status:
          type: string
          description: "Status of the search request"
        created_at:
          type: string
          format: date-time
          description: "Timestamp when the search was created"
        request_time_taken:
          type: number
          description: "Time taken to make the request in seconds"
        parsing_time_taken:
          type: number
          description: "Time taken to parse the results in seconds"
        total_time_taken:
          type: number
          description: "Total time taken for the search in seconds"
        request_url:
          type: string
          description: "Craigslist search page for this search"
        html_url:
          type: string
          description: "URL to view the raw results"
        json_url:
          type: string
          description: "URL to view JSON results"
    SearchParameters:
      type: object
      properties:
        engine:
          type: string
          description: Search engine used
        q:
          type: string
          description: The text searched for
        craigslist_domain:
          type: string
          description: Craigslist site searched
        subarea:
          type: string
          description: Part of the site searched
        category_id:
          type: string
          description: Category searched in
        sort_by:
          type: string
          description: Sort order
        price_min:
          type: string
          description: Lowest price
        price_max:
          type: string
          description: Highest price
        postal_code:
          type: string
          description: Postal code searched around
        radius:
          type: string
          description: Distance around the postal code
        condition:
          type: string
          description: Conditions of items for sale
        seller_type:
          type: string
          description: Who sells
        has_images:
          type: string
          description: Only postings with images
        is_posted_today:
          type: string
          description: Only postings from today
        is_title_only:
          type: string
          description: Text matched in titles only
        filters:
          type: string
          description: Filters applied
        page:
          type: integer
          description: Page of results
    SearchInformation:
      type: object
      properties:
        query_displayed:
          type: string
          description: Search text as Craigslist read it.
        location_displayed:
          type: string
          description: Site or place Craigslist searched, such as "SF bay area".
        total_results:
          type: integer
          description: Number of postings Craigslist reports for the search on the site.
        currency:
          type: string
          description: ISO 4217 code of the search area's currency when available. Each posting uses its own site's currency.
    OrganicResult:
      type: object
      required: [position, listing_id, title, link, iso_date]
      properties:
        position:
          type: integer
          description: Position of the posting on this page of results.
        listing_id:
          type: string
          description: Craigslist posting id.
        title:
          type: string
          description: Posting title.
        link:
          type: string
          description: Posting page on Craigslist.
        category_id:
          type: string
          description: Craigslist category code of the posting, such as `bik` or `apa`.
        category:
          type: string
          description: Category name, such as "bicycles - by owner".
        price:
          type: string
          description: Price as Craigslist shows it.
        extracted_price:
          type: integer
          description: Numeric price, in the currency of the posting's site.
        location:
          type: string
          description: Place the poster gave, such as a neighborhood or town.
        craigslist_domain:
          type: string
          description: Craigslist site the posting is on.
        subarea:
          type: string
          description: Part of the site the posting is in, such as `sfc`.
        latitude:
          type: number
          description: Latitude of the posting's location.
        longitude:
          type: number
          description: Longitude of the posting's location.
        iso_date:
          type: string
          format: date-time
          description: When the posting was posted, in UTC.
        thumbnail:
          type: string
          description: First image of the posting, small.
        images:
          type: array
          description: Images of the posting.
          items:
            type: string
        is_nearby:
          type: boolean
          description: Whether the posting is from a nearby site that Craigslist adds to a short list of results.
        beds:
          type: integer
          description: Number of bedrooms in housing. A value of 0 on apartments, sublets and vacation rentals represents a studio or an unspecified count.
        sqft:
          type: integer
          description: Floor area in square feet on postings from sites that measure in feet.
        sqm:
          type: integer
          description: Floor area in square metres on postings from sites that measure in metres.
        open_houses:
          type: array
          description: Open house dates, in housing, as YYYY-MM-DD.
          items:
            type: string
            format: date
        start_date:
          type: string
          format: date
          description: First day of an event.
        end_date:
          type: string
          format: date
          description: Last day of an event.
        dates:
          type: array
          description: Days of a garage or moving sale, as YYYY-MM-DD.
          items:
            type: string
            format: date
        extracted_mileage:
          type: integer
          description: Odometer reading of a vehicle, in miles on US and UK sites and in kilometres on the others.
        monthly_payment:
          type: string
          description: Monthly payment as Craigslist shows it, for vehicles.
        salary:
          type: object
          description: Pay offered, for jobs and gigs.
          properties:
            text:
              type: string
              description: Pay as the poster wrote it.
        company_name:
          type: string
          description: Company that posted the job.
        job_title:
          type: string
          description: Job title.
    Filter:
      type: object
      required: [options]
      properties:
        type:
          type: string
          description: Filter name, such as "bedrooms" or "housing type".
        options:
          type: array
          description: Choices the filter offers.
          items:
            $ref: '#/components/schemas/FilterOption'
    FilterOption:
      type: object
      properties:
        text:
          type: string
          description: Choice as Craigslist shows it.
        filter_value:
          type: string
          description: Code to send in `filters` to apply the choice.
        filter_name:
          type: string
          description: Name to send in `filters` with a value after a colon, for a range or a text filter, such as `min_bedrooms`.
    Pagination:
      type: object
      required: [current]
      properties:
        current:
          type: integer
          description: Current page.
        next:
          type: integer
          description: Next page.
    ErrorResponse:
      type: object
      required: [error]
      properties:
        error:
          type: string
          description: Error message describing what went wrong
