How to Use Craigslist housing search in Codex
Finds housing listings matching a local search and returns listing cards with links. Use it to build a shortlist, then inspect individual postings for the full description and housing attributes.
Prompts to try with Craigslist housing search in Codex
Copy an example into Codex, or ask in your own words.
Use Craigslist housing search to find furnished rentals in Boston and populate my comparison view with returned titles and listing links.
Use Craigslist housing search to find Seattle rentals that allow dogs, then adapt my project's results component to show the returned listing cards.
Use Craigslist housing search to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from Craigslist housing search and tell me what changed since last week.
Check Craigslist housing search and summarize what you find in three bullet points.
How to set up Craigslist housing search in Codex
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the hosted server
codex mcp add spiral --url https://api.spiral.ai/mcp
- Sign in
Codex opens the browser: sign in to Spiral and click Authorize. No API key. codex mcp list then shows Spiral.
codex mcp login spiral
Use the Spiral skill
- Send Codex this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run Craigslist housing search
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "alexandria", "model": "craigslist-org/housing/search", "input": { "region": "<region>", "category": "apa" } }'
Then paste one of the prompts above: Codex finds Craigslist housing search on Spiral, shows the price and runs it.
Craigslist housing search providers and prices
Spiral runs Craigslist housing search through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask Codex for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Category | apa, roo, sub, swp, or hhh | apa apartments/housing for rent, roo rooms & shares, sub sublets & temporary, swp housing swap, hhh all housing. | |
| Lat | -90 to 90 | Latitude of the search centre; requires lon and radius. Postings from outside the circle that Craigslist appends when local results run out are marked nearby=true. | |
| Lon | -180 to 180 | Longitude of the search centre; requires lat and radius. | |
| Sort | newest, rent_low, rent_high, or relevance | Default newest. | |
| Radius | a number up to 500 | Search radius around lat/lon in miles (Craigslist's search distance unit); requires lat and lon. | |
| Beds min | 0 to 8 | Minimum bedrooms (0 = studio allowed). | |
| Max rent | 0 to 100000000 | Maximum rent in whole units of the region currency. | |
| Min rent | 0 to 100000000 | Minimum rent in whole units of the region currency. | |
| Baths min | 0 to 8 | baths_min | |
| Furnished | on or off | True to require furnished. | |
| No broker fee | on or off | True to require no broker fee. | |
| Posted since hours | 1 to 1080 | Only postings posted within this many hours; enforced on the source posted timestamps (Craigslist's own switch is 'posted today' for <= 24). |
Every API field of Craigslist · Search is on its tool page: open its card above.
What can you do with Craigslist housing search in Codex?
Build a rental comparison that connects Craigslist's geographic areas to listing cards and full posting text. A coding agent can turn those records into a project feature that compares stated laundry, parking, and rental terms.
Compare relocation destinations
Identify the Craigslist areas for Austin and Raleigh, find suitable rentals in each, and inspect the shortlisted postings for laundry, parking, and rental terms.
Find furnished housing across cities
Resolve Boston and Providence to their Craigslist areas, search for furnished housing, and check posting descriptions for the stated rental period and included amenities.
Build a pet-friendly relocation shortlist
Choose the appropriate Seattle and Portland markets, find housing advertised as allowing pets, and inspect the descriptions for additional pet restrictions.
Compare laundry and parking across local markets
Identify the Craigslist areas around Philadelphia and South Jersey, find apartment candidates, and compare the laundry and parking information stated in their postings.
Check whether search matches meet a requirement
Find Chicago postings mentioning furnished housing, then read their descriptions to distinguish a furnished apartment from an ad that merely discusses furnishing options.
Prepare a rental viewing brief
Shortlist Boston apartments and summarize each posting's stated amenities, rental period, and restrictions into questions to resolve before arranging a viewing.
More on Craigslist housing search and Codex
Overview
Craigslist housing search in other agents
Questions about Craigslist housing search in Codex
Can Codex use Craigslist housing search?
Yes. Add Spiral to Codex as an MCP server, and Codex can find and run Craigslist housing search like any built-in tool.
How much does Craigslist housing search cost in Codex?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Codex plan is separate.
Do I need an Alexandria account to use Craigslist housing search in Codex?
No. Spiral runs Craigslist housing search on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up Craigslist housing search in Codex?
About two minutes: add the hosted server, then sign in.
Does Codex wait while Craigslist housing search runs?
Craigslist housing search runs in the background. Codex starts the run, checks on it and gives you the json when it's ready.
Does a Craigslist search cover the whole country?
Craigslist organizes postings by geographic site. Some sites also offer subareas, so a local result set should not be read as nationwide housing coverage.
How long do housing postings stay available?
Craigslist says paid postings remain live for 30 days and free postings for 7 to 45 days. Those are posting lifespans, rather than a promise that a rental remains available throughout that period.
Can a posting change after it appears?
Posters can edit the title, description, images, and category, or delete a posting manually. A previously retrieved listing can therefore differ from its current page.
Does removal mean a rental was filled?
Removal alone does not establish that. Free ads can be removed automatically after sufficient flagging, and Craigslist staff or automated systems can also flag postings for removal.
Are Craigslist listings verified and complete?
Craigslist makes no promises about completeness, accuracy, availability, or timeliness. Housing attributes also vary by category, with some information optional.
Start using Craigslist housing search in Codex
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Codex:
set up https://spiral.ai/SKILL.md


