Documentation

Getting Started

Welcome to the Real Estate API platform. Our API provides comprehensive real estate analytics through a credit-based system, offering access to property data, market conditions, crime statistics, schools, hotels, tourism information, and regulatory restrictions across the United States.

Create an Account

Sign up for an account on PulseReal.com to access our API services. You'll need an active account to:

  • Generate API keys
  • Purchase credits
  • Access all endpoints
  • Monitor your usage

Registration Process:

  1. Visit PulseReal.com
  2. Click "Sign Up"
  3. Complete the registration form
  4. Verify your email address
  5. Access your dashboard

Purchase Credits

Choose a credit package that suits your needs. Credits are consumed when you make API calls.

Credit Consumption:

  • Most standard queries: 1 credit per API call
  • Complex queries with large result sets may consume additional credits
  • Credits do not expire
  • Monitor your usage through the dashboard

Generate API Keys

Create API keys from your dashboard to authenticate your requests.

API Key Management:

  1. Log into your dashboard
  2. Navigate to "API Keys" section
  3. Click "Generate New Key"
  4. Copy and securely store your key
  5. Configure permissions as needed

Make API Calls

Use your API keys to authenticate requests to our endpoints. All endpoints support standard HTTP GET requests with query parameters.

Example Request

curl -H "Authorization: Bearer YOUR_API_KEY" \
     "https://api.pulsereal.com/v1/city_hazard/get?city=San%20Francisco&state=CA"

Authentication

All API requests must be authenticated using your API key. Each request consumes credits based on complexity and data volume.

Header Authentication

Include your API key in the request header:

Header Format

Authorization: Bearer YOUR_API_KEY

Example Request

Authentication Examples

// Using fetch
fetch('https://api.pulsereal.com/v1/city_data/get?city=New%20York&state=NY', {
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  }
})
.then(response => response.json())
.then(data => console.log(data));

// Using curl
curl -H "Authorization: Bearer YOUR_API_KEY" \
     -H "Content-Type: application/json" \
     "https://api.pulsereal.com/v1/city_data/get?city=New%20York&state=NY"

API Endpoints Overview

Our API provides comprehensive real estate data through organized endpoint categories. Each endpoint returns JSON data and supports standard pagination.

City-Based Endpoints

Access comprehensive data organized by city

  • City Hazard Data
  • City Hotels Data
  • City Short-Term Rental Details
  • City Tourism Data

General Data Endpoints

Access general information and restrictions

  • Crime Data
  • Schools Data
  • Homeowner Restrictions
  • Rental Restrictions
  • Short-Term Rental Restrictions

ZIP Code Endpoints

Granular data organized by ZIP code

  • ZIP Code Crime Data
  • ZIP Code General Data
  • ZIP Code Hotels
  • ZIP Code Market Conditions
  • ZIP Code Short-Term Rental Details

Account Management

Manage your account and monitor usage

  • Account Details
  • Health Check

Interactive API Explorer

Use the Swagger UI below to test endpoints directly from this documentation:

City-Based Endpoints

Access comprehensive data organized by city including hazards, hotels, tourism, and short-term rental information.

City Hazard Data

GET /v1/city_hazard/get · 1 credit per call

Retrieve hazard information for specific cities including natural disaster risks, environmental concerns, and safety metrics.

Example Request
GET /v1/city_hazard/get?city=Miami&state=FL&min_population=100000
Parameters
NameTypeRequiredDescription
cityarray[string]NoCity names to filter
countyarray[string]NoCounty names to filter
statearray[string]NoState abbreviations to filter
min_populationintegerNoMinimum population threshold
max_populationintegerNoMaximum population threshold
pageintegerNoPage number (default: 1)
page_sizeintegerNoResults per page (default: 10)
Example Response
{
  "data": [
    {
      "city": "Miami",
      "state": "FL",
      "hazards": {
        "hurricane_risk": "high",
        "flood_risk": "medium",
        "earthquake_risk": "low"
      },
      "safety_score": 7.2,
      "population": 467963
    }
  ],
  "pagination": {
    "page": 1,
    "page_size": 10,
    "total": 1
  }
}

City Hotels Data

GET /v1/city_hotels/get · 1 credit per call

Access hotel and accommodation data for cities including pricing, availability, and market analysis.

Example Request
GET /v1/city_hotels/get?city=Las%20Vegas&state=NV
Parameters
NameTypeRequiredDescription
cityarray[string]NoCity names to filter
countyarray[string]NoCounty names to filter
statearray[string]NoState abbreviations to filter
ziparray[string]NoZIP codes to filter
pageintegerNoPage number (default: 1)
page_sizeintegerNoResults per page (default: 10)
Example Response
{
  "data": [
    {
      "city": "Las Vegas",
      "state": "NV",
      "hotel_count": 150,
      "average_rate": 125.50,
      "occupancy_rate": 0.78,
      "revenue_per_room": 98.29
    }
  ]
}

City Short-Term Rental Details

GET /v1/city_st_details/get · 1 credit per call

Retrieve detailed short-term rental market data including pricing, occupancy rates, and property characteristics.

Example Request
GET /v1/city_st_details/get?city=Austin&state=TX&bedroom_count=2
Parameters
NameTypeRequiredDescription
cityarray[string]NoCity names to filter
countyarray[string]NoCounty names to filter
statearray[string]NoState abbreviations to filter
min_populationintegerNoMinimum population threshold
max_populationintegerNoMaximum population threshold
bedroom_countintegerNoFilter by number of bedrooms
pageintegerNoPage number (default: 1)
page_sizeintegerNoResults per page (default: 10)
Example Response
{
  "data": [
    {
      "city": "Austin",
      "state": "TX",
      "bedroom_count": 2,
      "average_nightly_rate": 145.00,
      "occupancy_rate": 0.72,
      "revenue_per_month": 3132.00
    }
  ]
}

City Tourism Data

GET /v1/city_tourism/get · 1 credit per call

Access tourism statistics and visitor data for cities including seasonal trends and attraction information.

Example Request
GET /v1/city_tourism/get?state=CA&min_population=500000
Parameters
NameTypeRequiredDescription
cityarray[string]NoCity names to filter
countyarray[string]NoCounty names to filter
statearray[string]NoState abbreviations to filter
min_populationintegerNoMinimum population threshold
max_populationintegerNoMaximum population threshold
pageintegerNoPage number (default: 1)
page_sizeintegerNoResults per page (default: 10)
Example Response
{
  "data": [
    {
      "city": "San Francisco",
      "state": "CA",
      "annual_visitors": 25700000,
      "tourism_revenue": 9500000000,
      "top_attractions": ["Golden Gate Bridge", "Alcatraz", "Fisherman's Wharf"]
    }
  ]
}

General Data Endpoints

Access general data including crime statistics, school information, and regulatory restrictions.

Crime Data

GET /v1/crime_data/get · 1 credit per call

Retrieve crime statistics and safety metrics for cities and regions.

Example Request
GET /v1/crime_data/get?city=Chicago&state=IL
Parameters
NameTypeRequiredDescription
cityarray[string]NoCity names to filter
countyarray[string]NoCounty names to filter
statearray[string]NoState abbreviations to filter
pageintegerNoPage number (default: 1)
page_sizeintegerNoResults per page (default: 10)
Example Response
{
  "data": [
    {
      "city": "Chicago",
      "state": "IL",
      "crime_rate": 3.83,
      "violent_crime_rate": 0.95,
      "property_crime_rate": 2.88,
      "safety_index": 6.2
    }
  ]
}

Schools Data

GET /v1/schools/get · 1 credit per call

Access school district information, ratings, and educational quality metrics.

Example Request
GET /v1/schools/get?city=Palo%20Alto&state=CA
Parameters
NameTypeRequiredDescription
cityarray[string]NoCity names to filter
countyarray[string]NoCounty names to filter
statearray[string]NoState abbreviations to filter
ziparray[string]NoZIP codes to filter
pageintegerNoPage number (default: 1)
page_sizeintegerNoResults per page (default: 10)
Example Response
{
  "data": [
    {
      "city": "Palo Alto",
      "state": "CA",
      "district_name": "Palo Alto Unified",
      "rating": 9.2,
      "student_teacher_ratio": 18.5,
      "graduation_rate": 0.96
    }
  ]
}

Homeowner Restrictions

GET /v1/homeowners_restrictions/get · 1 credit per call

Access information about homeowner restrictions, HOA regulations, and property ownership limitations.

Example Request
GET /v1/homeowners_restrictions/get?city=Miami&state=FL
Parameters
NameTypeRequiredDescription
cityarray[string]NoCity names to filter
countyarray[string]NoCounty names to filter
statearray[string]NoState abbreviations to filter
pageintegerNoPage number (default: 1)
page_sizeintegerNoResults per page (default: 10)
Example Response
{
  "data": [
    {
      "city": "Miami",
      "state": "FL",
      "hoa_prevalence": 0.78,
      "average_hoa_fee": 325.00,
      "common_restrictions": ["pet restrictions", "rental restrictions", "architectural guidelines"]
    }
  ]
}

Rental Restrictions

GET /v1/rental_restrictions/get · 1 credit per call

Retrieve rental property restrictions and regulations including rent control and tenant protection laws.

Example Request
GET /v1/rental_restrictions/get?city=San%20Francisco&state=CA
Parameters
NameTypeRequiredDescription
cityarray[string]NoCity names to filter
countyarray[string]NoCounty names to filter
statearray[string]NoState abbreviations to filter
ziparray[string]NoZIP codes to filter
pageintegerNoPage number (default: 1)
page_sizeintegerNoResults per page (default: 10)
Example Response
{
  "data": [
    {
      "city": "San Francisco",
      "state": "CA",
      "rent_control": true,
      "max_annual_increase": 0.025,
      "tenant_protections": ["just cause eviction", "relocation assistance"]
    }
  ]
}

Short-Term Rental Restrictions

GET /v1/st_restrictions/get · 1 credit per call

Retrieve regulations and restrictions specific to short-term rental properties and Airbnb-style accommodations.

Example Request
GET /v1/st_restrictions/get?city=New%20York&state=NY
Parameters
NameTypeRequiredDescription
cityarray[string]NoCity names to filter
countyarray[string]NoCounty names to filter
statearray[string]NoState abbreviations to filter
ziparray[string]NoZIP codes to filter
pageintegerNoPage number (default: 1)
page_sizeintegerNoResults per page (default: 10)
Example Response
{
  "data": [
    {
      "city": "New York",
      "state": "NY",
      "str_allowed": false,
      "min_stay_requirement": 30,
      "registration_required": true,
      "licensing_fees": 850.00
    }
  ]
}

ZIP Code Endpoints

Access data organized by ZIP code for granular location analysis including market conditions, demographics, and crime statistics.

ZIP Code Crime Data

GET /v1/zip_crimes/get · 1 credit per call

Access crime statistics organized by ZIP code for granular location analysis.

Example Request
GET /v1/zip_crimes/get?zip_code=10001&state=NY
Parameters
NameTypeRequiredDescription
statearray[string]NoState abbreviations to filter
zip_codearray[string]NoSpecific ZIP codes to query
pageintegerNoPage number (default: 1)
page_sizeintegerNoResults per page (default: 10)
Example Response
{
  "data": [
    {
      "zip_code": "10001",
      "state": "NY",
      "crime_rate": 2.45,
      "violent_crime_rate": 0.68,
      "property_crime_rate": 1.77
    }
  ]
}

ZIP Code General Data

GET /v1/zip_data/get · 1 credit per call

Retrieve comprehensive demographic and economic data organized by ZIP code.

Example Request
GET /v1/zip_data/get?zip_code=90210&state=CA
Parameters
NameTypeRequiredDescription
statearray[string]NoState abbreviations to filter
zip_codearray[string]NoSpecific ZIP codes to query
pageintegerNoPage number (default: 1)
page_sizeintegerNoResults per page (default: 10)
Example Response
{
  "data": [
    {
      "zip_code": "90210",
      "state": "CA",
      "population": 23026,
      "median_income": 174167,
      "median_home_value": 2750000
    }
  ]
}

ZIP Code Market Conditions

GET /v1/zip_market_condition/get · 1 credit per call

Retrieve real estate market conditions and trends by ZIP code including pricing and inventory data.

Example Request
GET /v1/zip_market_condition/get?zip_code=78701&state=TX
Parameters
NameTypeRequiredDescription
statearray[string]NoState abbreviations to filter
zip_codearray[string]NoSpecific ZIP codes to query
pageintegerNoPage number (default: 1)
page_sizeintegerNoResults per page (default: 10)
Example Response
{
  "data": [
    {
      "zip_code": "78701",
      "state": "TX",
      "median_price": 675000,
      "price_per_sqft": 425,
      "days_on_market": 18,
      "inventory_months": 2.1
    }
  ]
}

Account Management

Manage your account and monitor API usage with these endpoints.

Account Details

GET /v1/account/ · 1 credit per call

Retrieve your account information including credit balance, usage statistics, and subscription details.

Example Request
GET /v1/account/
Example Response
{
  "account_id": "acc_12345",
  "email": "user@example.com",
  "plan": "professional",
  "credits": {
    "remaining": 8543,
    "total_purchased": 10000,
    "last_purchase": "2024-05-15"
  },
  "usage": {
    "current_month": 1457,
    "last_month": 2103
  },
  "created_at": "2024-01-15T10:30:00Z"
}

Health Check

GET /

Simple health check endpoint to verify API availability.

Health Check Example

GET /

Response:
{
  "status": "ok",
  "timestamp": "2024-06-06T15:30:00Z",
  "version": "1.0.0"
}

Rate Limits

To ensure fair usage and optimal performance for all users, the following rate limits apply to API requests.

Currently, we are offering a free tier of 100 requests per minute.

Rate Limit Headers

Each response includes rate limit information in the headers:

Response Headers

X-RateLimit-Limit: 1000
X-RateLimit-Remaining: 999
X-RateLimit-Reset: 1640995200
X-RateLimit-Retry-After: 3600

Best Practices

  • Implement exponential backoff for retry logic
  • Cache responses when appropriate to reduce API calls
  • Use batch requests where possible
  • Monitor rate limit headers in responses
  • Distribute requests evenly over time

Error Handling

The API uses standard HTTP status codes and returns detailed error information in JSON format.

CodeStatusDescription
200 OKSuccess
400 Bad RequestInvalid parameters
401 UnauthorizedInvalid API key
403 ForbiddenInsufficient permissions
404 Not FoundEndpoint doesn't exist
422 Validation ErrorInvalid input data
429 Too Many RequestsRate limit exceeded
500 Internal Server ErrorServer error

Error Response Format

General Error Format

{
  "detail": [
    {
      "loc": ["query", "parameter_name"],
      "msg": "Error description",
      "type": "error_type"
    }
  ]
}

Common Error Scenarios

Invalid API Key:

401 Unauthorized

{
  "detail": "Invalid authentication credentials"
}

Validation Error:

422 Validation Error

{
  "detail": [
    {
      "loc": ["query", "min_population"],
      "msg": "ensure this value is greater than 0",
      "type": "value_error.number.not_gt"
    }
  ]
}

Rate Limit Exceeded:

429 Too Many Requests

{
  "detail": "Rate limit exceeded. Try again in 3600 seconds.",
  "retry_after": 3600
}

Credit System

Our credit-based system allows you to pay only for what you use while providing predictable costs for your API consumption.

How Credits Work

  • Each API call consumes credits based on complexity and data volume
  • Credits are deducted in real-time
  • Monitor usage through your dashboard
  • Receive notifications when credits run low
  • Credits never expire
Operation TypeCredits per CallDescription
Standard queries1Most API endpoints with default parameters
Large result sets (>100 records)2-3Queries returning extensive data
Complex geographic queries2-5Multi-city or multi-state requests
Account information0Checking balance and usage

Credit Management

Monitor and manage your credit usage effectively:

  • View balance: Use the /v1/account/ endpoint
  • Purchase more: Available through your dashboard
  • Auto-renewal: Optional for convenience
  • Usage alerts: Configurable thresholds
  • Usage analytics: Detailed breakdown by endpoint

Support

Get help with our API through multiple support channels and resources.

Email Support

support@pulsereal.com

  • Response time: 24-48 hours
  • Include your account email
  • Include API key (last 4 characters only)

Developer Resources

  • Developer Portal with guides
  • Code samples and SDKs
  • Community forums
  • API status page

Best Practices

  1. Cache responses when appropriate to reduce API calls
  2. Implement retry logic with exponential backoff
  3. Use pagination for large datasets
  4. Monitor your usage to optimize credit consumption
  5. Handle errors gracefully in your applications

Common Integration Patterns

Batch Processing:

Batch Request Example

// Process multiple cities efficiently
GET /v1/city_data/get?city=New%20York&city=Los%20Angeles&city=Chicago&state=NY&state=CA&state=IL

Geographic Analysis:

Multi-Source Analysis

// Combine multiple data sources
GET /v1/zip_market_condition/get?zip_code=10001
GET /v1/zip_crimes/get?zip_code=10001
GET /v1/schools/get?zip=10001