LandWatch land for sale
US land, ranches, farms and rural homes for sale on LandWatch by state, county or city, with property type, price, acreage and sort, or any LandWatch search link. Each result has id, link, title, types, price, price per acre, recent price change, acres, beds, baths, home size, address, county, coordinates, status, auction and sale dates, media flags, photos, summary and the listing broker (name, company, office phone, profile). 25 per page; pass next_page back as page; null on the last page.
Every response includes credits_used: the credits this call cost.
Parameters
| name | type | description |
|---|---|---|
state | string | US state name. Example: Texas |
county | string | County name (with state). |
city | string | City name (with state, instead of a county). |
type | string | Property type: farms-ranches, hunting-property, recreational-property, homesites, undeveloped-land, waterfront-property, lakefront-property, riverfront-property, timberland, horse-property, commercial-property, house. |
price_min | number | Minimum price (USD). |
price_max | number | Maximum price (USD). |
acres_min | number | Minimum acres. |
acres_max | number | Maximum acres. |
sort | relevance | price_asc | price_desc | newest | acres_desc | acres_asc | Sort order. Example: relevance |
url | string | Instead of the filters: a landwatch.com search link, used with all its filters. |
page | integer | Page number, starting at 1. Pass next_page back as page; it is null on the last page. Example: 1 |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/landwatch/v1/search?state=Texas" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/landwatch/v1/search",
params={"state": "Texas"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/landwatch/v1/search");
url.searchParams.set("state", "Texas");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); Response
A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).