Real Estate Listings API

A simple REST API that returns a list of properties with location, price, type, and image.

🔗 Endpoint

GET http://freeapi.gravitycoding.com/real_estate.json

📥 Response Format

Returns an array of JSON objects:

[
  {
    "id": 1,
    "title": "Modern Apartment",
    "location": "Mumbai",
    "price": 125000,
    "type": "Apartment",
    "image": "https://source.unsplash.com/featured/?apartment,modern"
  },
  ...
]

💡 Use Cases

💻 Code Examples

▶ JavaScript (fetch)

fetch("http://freeapi.gravitycoding.com/real_estate.json")
  .then(res => res.json())
  .then(data => console.log(data));

▶ Python (requests)

import requests

res = requests.get("http://freeapi.gravitycoding.com/real_estate.json")
print(res.json())

▶ cURL

curl http://freeapi.gravitycoding.com/real_estate.json
← Back to API List
Copied!