Developer API & Widget

Cost Segregation Estimator API

Add a cost segregation savings calculator to your website in under 2 minutes. Give your clients instant estimates — powered by SegFlow AI.

Try It Live

This is exactly what the widget looks like when embedded on your website. Enter a property and see the estimated savings.

API Response
// Submit the form to see the live API response here

Add to Your Website

Paste this into any HTML page, WordPress site, Squarespace site, or web app. The widget handles everything — no API keys required.

<div id="costseg-estimator"></div>
<script src="https://segflowai.com/widget/costseg-estimator.js" async></script>

Customize the Widget

Configure the widget using data attributes on the container element.

AttributeDefaultDescription
data-accent-color#2563EBPrimary button and highlight color (hex)
data-cta-text"Get Your Free Cost Segregation Quote →"Call-to-action button text
data-cta-url#Where the CTA button links (e.g., your contact page)
data-show-brandingtrueShow/hide "Powered by SegFlow AI" footer

Customized Example

<div id="costseg-estimator"
  data-accent-color="#16A34A"
  data-cta-text="Schedule a Free Consultation"
  data-cta-url="https://your-firm.com/contact">
</div>
<script src="https://segflowai.com/widget/costseg-estimator.js" async></script>

API Reference

For developers who want to integrate directly rather than using the widget.

Endpoint

POSThttps://segflowai.com/api/estimate

Content-Type: application/json

Request Body

FieldTypeRequiredValidation
purchase_pricenumberYesMin: $50,000. Max: $50,000,000. Integer.
property_typestring (enum)YesMust be one of the values in the Property Type table below
square_footagenumberNoMin: 200. Max: 2,000,000. Integer. Not used in calculation.
zillow_urlstringNoMust be a valid Zillow URL if provided. Lead context only.

Property Type Enum

Enum ValueDisplay Label
multi_family_apartmentMulti-Family (Apartment)
short_term_rentalShort-Term Rental (STR / Airbnb)
single_family_residentialSingle Family Residential
condo_townhomeCondo / Townhome
medical_dental_officeMedical / Dental Office
retail_shopping_centerRetail / Shopping Center
warehouse_industrialWarehouse / Industrial
general_officeGeneral Office
hotel_hospitalityHotel / Hospitality
restaurant_barRestaurant / Bar

Example Request

curl -X POST https://segflowai.com/api/estimate \
  -H "Content-Type: application/json" \
  -d '{
    "purchase_price": 1250000,
    "property_type": "multi_family_apartment"
  }'

Example Response

{
  "property_type": "multi_family_apartment",
  "property_type_label": "Multi-Family (Apartment)",
  "purchase_price": 1250000,
  "reclassifiable_percentage_range": {
    "low": 0.2,
    "high": 0.3
  },
  "accelerated_depreciation_range": {
    "low": 250000,
    "high": 375000
  },
  "estimated_tax_savings_range": {
    "low": 92500,
    "high": 138750
  },
  "assumptions": {
    "tax_rate": 0.37,
    "method": "rule_of_thumb",
    "disclaimer": "This is a preliminary estimate..."
  }
}

Error Responses

400Validation Error

{
  "error": "validation_error",
  "message": "purchase_price must be at least $50,000",
  "field": "purchase_price"
}

429Rate Limit

{
  "error": "rate_limit",
  "message": "Rate limit exceeded. Try again in 60 seconds."
}

Rate Limits

60 requests per minute per IP address. If you exceed this limit, you'll receive a 429 response. Wait 60 seconds before retrying.

Ready to Offer Cost Segregation to Your Clients?

SegFlow AI handles the full study — the widget is just the beginning.

Get Started