api-ninjas-com Treasury Yield API
Current and historical U.S. Treasury yield curve: nominal Constant Maturity Treasury (CMT) par yields (1 month to 30 years), the real (TIPS) yield curve, and Treasury bill rates, with precomputed 2s10s / 3m10s / 5s30s spreads and a yield-curve inversion flag. Data sourced from the U.S. Department of the Treasury.