Send a JSON payload
POST to the template endpoint with the values you want rendered. Authenticate with your API key.
Property listing cards for MLS exports, social shares, and email blasts
The Real Estate Listing template is the shortest path to a working real estate listing image generator api from your stack. Send a small JSON payload, get back a tested PNG that fits your brand. No browser, no headless Chrome wrangling, no design tooling on your side.
Common reasons people reach for this template:
POST to the template endpoint with the values you want rendered. Authenticate with your API key.
The template is rendered server-side as a 1200x630 PNG (or whatever dimensions the template defines).
The response includes a CDN URL for the PNG. Cache it, embed it, attach it to a tweet, anything you need.
A single cURL call to render a Real Estate Listing as a PNG:
curl -X POST https://app.html2img.com/api/v1/templates/real-estate-listing \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"price":"$1,495,000","address":"482 Maple Ridge Lane","address_secondary":"Sausalito, CA 94965","beds":"4","baths":"3","sqft":"2,840","status":"Just listed","property_image_url":"https://picsum.photos/seed/real-estate/1200/600","agent_name":"Elena Martinez","agent_title":"Senior Listing Agent","agent_phone":"(415) 555-0142","agent_avatar_url":"https://i.pravatar.cc/160?img=23","brokerage_name":"Bay Bridge Realty","accent_color":"#0F172A"}' For the full PHP, Node and Python equivalents, plus every input the template accepts, see the Real Estate Listing API reference. Setting up your key is covered in the authentication guide.
A quick summary of what the Real Estate Listing template accepts. The full reference, including example values and array shapes, is in the docs.
| Name | Type | Required |
|---|---|---|
| price | string | Required |
| address | string | Required |
| address_secondary | string | Optional |
| beds | string | Optional |
| baths | string | Optional |
| sqft | string | Optional |
| status | string | Optional |
| property_image_url | url | Optional |
| agent_name | string | Optional |
| agent_title | string | Optional |
| agent_phone | string | Optional |
| agent_avatar_url | url | Optional |
| brokerage_name | string | Optional |
| logo_url | url | Optional |
| accent_color | string | Optional |
See the full inputs reference for descriptions, examples and validation rules.
Sign up free, grab an API key, send a payload. The pricing page covers the higher-volume plans if you outgrow the free tier.