{
 "openapi": "3.1.0",
 "info": {
  "title": "opportunityzones.help API",
  "version": "1.0.0",
  "description": "Opportunity Zone lookup and calculators. Inputs are query parameters (or a JSON body on POST); the live tool list with input schemas is at /api/oz."
 },
 "servers": [
  {
   "url": "https://www.opportunityzones.help"
  }
 ],
 "paths": {
  "/api/oz/lookup_address": {
   "get": {
    "operationId": "lookup_address",
    "summary": "Address to 2018 zone status (2010 tract) and 2027 round status (2020 tract), rural flags, Census statistics.",
    "responses": {
     "200": {
      "description": "Result",
      "content": {
       "application/json": {}
      }
     }
    }
   }
  },
  "/api/oz/lookup_coordinates": {
   "get": {
    "operationId": "lookup_coordinates",
    "summary": "The same for a latitude and longitude.",
    "responses": {
     "200": {
      "description": "Result",
      "content": {
       "application/json": {}
      }
     }
    }
   }
  },
  "/api/oz/get_tract": {
   "get": {
    "operationId": "get_tract",
    "summary": "One tract GEOID's status in both rounds.",
    "responses": {
     "200": {
      "description": "Result",
      "content": {
       "application/json": {}
      }
     }
    }
   }
  },
  "/api/oz/get_state": {
   "get": {
    "operationId": "get_state",
    "summary": "State counts and 2027 status with the official source.",
    "responses": {
     "200": {
      "description": "Result",
      "content": {
       "application/json": {}
      }
     }
    }
   }
  },
  "/api/oz/get_key_dates": {
   "get": {
    "operationId": "get_key_dates",
    "summary": "The program calendar.",
    "responses": {
     "200": {
      "description": "Result",
      "content": {
       "application/json": {}
      }
     }
    }
   }
  },
  "/api/oz/calc_180_day_deadline": {
   "get": {
    "operationId": "calc_180_day_deadline",
    "summary": "Every allowed 180-day start date and deadline, and whether the window reaches OZ 2.0.",
    "responses": {
     "200": {
      "description": "Result",
      "content": {
       "application/json": {}
      }
     }
    }
   }
  },
  "/api/oz/calc_2026_inclusion": {
   "get": {
    "operationId": "calc_2026_inclusion",
    "summary": "The OZ 1.0 amount included on Dec 31, 2026 and the estimated tax.",
    "responses": {
     "200": {
      "description": "Result",
      "content": {
       "application/json": {}
      }
     }
    }
   }
  },
  "/api/oz/calc_oz2_benefit": {
   "get": {
    "operationId": "calc_oz2_benefit",
    "summary": "OZ 2.0 investment against paying the tax now.",
    "responses": {
     "200": {
      "description": "Result",
      "content": {
       "application/json": {}
      }
     }
    }
   }
  },
  "/api/oz/calc_substantial_improvement": {
   "get": {
    "operationId": "calc_substantial_improvement",
    "summary": "The 30-month basis test at 100% or the 50% rural threshold.",
    "responses": {
     "200": {
      "description": "Result",
      "content": {
       "application/json": {}
      }
     }
    }
   }
  },
  "/api/oz/calc_90_percent_test": {
   "get": {
    "operationId": "calc_90_percent_test",
    "summary": "The QOF semiannual asset test and penalty estimate.",
    "responses": {
     "200": {
      "description": "Result",
      "content": {
       "application/json": {}
      }
     }
    }
   }
  },
  "/api/oz/check_qozb": {
   "get": {
    "operationId": "check_qozb",
    "summary": "The five Qualified Opportunity Zone Business tests.",
    "responses": {
     "200": {
      "description": "Result",
      "content": {
       "application/json": {}
      }
     }
    }
   }
  },
  "/api/oz/plan_working_capital": {
   "get": {
    "operationId": "plan_working_capital",
    "summary": "Spend-by dates under the working capital safe harbor.",
    "responses": {
     "200": {
      "description": "Result",
      "content": {
       "application/json": {}
      }
     }
    }
   }
  },
  "/api/oz/get_financing_link": {
   "get": {
    "operationId": "get_financing_link",
    "summary": "Where a sponsor can request project debt financing.",
    "responses": {
     "200": {
      "description": "Result",
      "content": {
       "application/json": {}
      }
     }
    }
   }
  }
 }
}