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 hereAdd 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.
| Attribute | Default | Description |
|---|---|---|
| data-accent-color | #2563EB | Primary 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-branding | true | Show/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
POST
https://segflowai.com/api/estimateContent-Type: application/json
Request Body
| Field | Type | Required | Validation |
|---|---|---|---|
| purchase_price | number | Yes | Min: $50,000. Max: $50,000,000. Integer. |
| property_type | string (enum) | Yes | Must be one of the values in the Property Type table below |
| square_footage | number | No | Min: 200. Max: 2,000,000. Integer. Not used in calculation. |
| zillow_url | string | No | Must be a valid Zillow URL if provided. Lead context only. |
Property Type Enum
| Enum Value | Display Label |
|---|---|
| multi_family_apartment | Multi-Family (Apartment) |
| short_term_rental | Short-Term Rental (STR / Airbnb) |
| single_family_residential | Single Family Residential |
| condo_townhome | Condo / Townhome |
| medical_dental_office | Medical / Dental Office |
| retail_shopping_center | Retail / Shopping Center |
| warehouse_industrial | Warehouse / Industrial |
| general_office | General Office |
| hotel_hospitality | Hotel / Hospitality |
| restaurant_bar | Restaurant / 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