# Bounty API — Full Documentation ## SG Stamp Duty Calculator ### POST /stamp-duty Request: { "price": 1500000, "property_type": "residential", "buyer_profile": "SC", "property_count": 1 } Response: { "price": 1500000, "bsd": 44600, "bsd_breakdown": [ {"range": "$0 - $180,000", "rate_percent": 1, "taxable_amount": 180000, "duty": 1800}, {"range": "$180,000 - $360,000", "rate_percent": 2, "taxable_amount": 180000, "duty": 3600}, {"range": "$360,000 - $1,000,000", "rate_percent": 3, "taxable_amount": 640000, "duty": 19200}, {"range": "$1,000,000 - $1,500,000", "rate_percent": 4, "taxable_amount": 500000, "duty": 20000} ], "absd": 0, "total_stamp_duty": 44600, "effective_rate_percent": 2.97 } ### Buyer profiles: SC (Singapore Citizen), SPR (Permanent Resident), FR (Foreigner), entity, developer, trustee ### ABSD rates: SC 1st=0%, 2nd=20%, 3rd=30%. SPR 1st=5%, 2nd=30%, 3rd=35%. FR=60%. Entity=65%. ## SG Postal Code to District ### GET /postal/{postal_code} Response: { "postal_code": "238801", "sector": "23", "district_number": 5, "district_name": "D5", "general_area": "RCR", "areas": ["Buona Vista", "Dover", "Pasir Panjang", "West Coast"] } ## SG Rental Yield Calculator ### POST /rental-yield/calculate Request: { "property_price": 1200000, "monthly_rent": 4200 } Response: { "gross_annual_rent": 50400, "net_annual_rent": 41328, "gross_yield_percent": 4.2, "net_yield_percent": 3.44, "monthly_cashflow": 3444.0, "cap_rate": 3.44, "price_to_rent_ratio": 23.81, "years_to_break_even": 29.04 } ## HDB Resale Data ### GET /hdb/median/{town} Response: { "town": "ANG MO KIO", "flat_types": [ {"type": "3 ROOM", "median_price": 350000, "count": 5034, "min_price": 200000, "max_price": 600000}, {"type": "4 ROOM", "median_price": 520000, "count": 6892, "min_price": 350000, "max_price": 800000} ] } ## SG Property Pitch ### POST /property/pitch Request: { "property_type": "hdb", "property_price": 550000, "town": "TOA PAYOH", "flat_type": "4 ROOM", "postal_code": "310074", "sqft": 968, "monthly_rent": 3200, "buyer_profile": "SC", "monthly_income": 8000 } Response includes: { "price_per_sqft": 568.18, "price_assessment": {"verdict": "Below median — potential value"}, "stamp_duty": {"bsd": 11100, "absd": 0, "total": 11100}, "affordability": {"affordable": true, "binding_constraint": "MSR"}, "rental_yield": {"gross_yield_pct": 6.98}, "location": {"region": "RCR", "nearest_mrt": [{"station": "Bishan"}]}, "verdict": {"recommendation": "WORTH PURSUING"} }