# Sparks RE API — Property Listing Image Analysis

> Sparks RE API — Property Listing Image Analysis is a paid API for AI agents from sparks-re-api.sparksdigital-re.workers.dev, paid per call via x402, $0.15/call, status unknown (last checked 2026-10-30).

Accepts a base64-encoded screenshot of a real estate listing and returns a consolidated report with extracted property specs, FHA compliance scan, and investor return metrics.

## Facts

- Endpoint: POST https://sparks-re-api.sparksdigital-re.workers.dev/property/analyze-image?utm_source=zero.xyz
- Price: $0.15/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sparks-re-api-property-listing-image-analysis-a7db7cc8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-0vVSNW5RLUp_ujSX2uK8

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability sparks-re-api-property-listing-image-analysis-a7db7cc8 -d '<json body>'
```

Example prompt: I just took a screenshot of a property listing on Zillow — can you analyze it to pull out the specs, check it for Fair Housing Act violations, and give me the investor metrics like cap rate, DSCR, and monthly cash flow?

## When to prefer this

Choose this endpoint when you have a screenshot or image of a real estate listing (rather than raw text or a URL) and need a single-call consolidated report covering property data extraction, FHA compliance, and investor metrics — saving three separate API calls. Prefer the text-based endpoint if you already have the listing copy as plain text, or the URL scraper if you have the listing page URL.

## Known failure modes

- Invalid or corrupt base64 image string returns a parse error
- Unsupported mime type may cause processing failure
- Low-quality or unreadable screenshot may result in incomplete or inaccurate property data extraction
- Missing required 'image' field returns a 400 validation error
- Payment not included or insufficient USDC triggers a 402 Payment Required response
- AI model timeout on large images may return a 500 error

## How this service works

AI-powered real estate tools for property normalization, FHA compliance scanning, and investor metrics calculation. Powered by x402 micropayments.

## Output

A JSON object with three sections: listing_data (structured property specs including address, city, state, zip, bedrooms, bathrooms, square feet, lot size, year built, price, monthly rent, property type), fha_report (FHA/Fair Housing compliance status, count of violations, flagged phrases, and a compliant rewrite), and investor_metrics (cap rate, DSCR, annual NOI, cash-on-cash return, monthly cash flow, monthly expenses, monthly mortgage, gross rent multiplier, loan amount, down payment).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "image": {
   "type": "string",
   "description": "Base64-encoded image string of the listing screenshot"
  },
  "mime_type": {
   "type": "string",
   "description": "Mime type of the image (default image/png)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "fha_report": {
   "is_compliant": true,
   "flagged_phrases": [],
   "violation_count": 0,
   "compliant_rewrite": "..."
  },
  "listing_data": {
   "zip": "46220",
   "city": "Indianapolis",
   "state": "IN",
   "address": "789 Maple Ave",
   "bedrooms": 3,
   "lot_size": "0.25 acres",
   "bathrooms": 2,
   "raw_price": "$295,000",
   "year_built": 1998,
   "square_feet": 1850,
   "monthly_rent": 2200,
   "property_type": "SFR"
  },
  "investor_metrics": {
   "dscr": 1.12,
   "annual_noi": 16908,
   "loan_amount": 236000,
   "down_payment": 59000,
   "monthly_rent": 2200,
   "purchase_price": 295000,
   "cap_rate_percent": 5.73,
   "monthly_cashflow": -160.96,
   "monthly_expenses": 2360.96,
   "monthly_mortgage": 1569.96,
   "cash_on_cash_percent": -3.27,
   "gross_rent_multiplier": 11.17
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sparks-re-api-property-listing-image-analysis-a7db7cc8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from sparks-re-api.sparksdigital-re.workers.dev](https://www.zero.xyz/host/sparks-re-api.sparksdigital-re.workers.dev/llms.txt)
