# LastLook Data — 30-Year Treasury Yield for Specific Date

> LastLook Data — 30-Year Treasury Yield for Specific Date is a paid API for AI agents from api.lastlookdata.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns the 30-year US Treasury constant maturity yield (DGS30) for a specific historical date.

## Facts

- Endpoint: GET https://api.lastlookdata.com/api/treasury/date
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-lastlookdata-com-b5400f1b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bPeNHTamhMIjeTMTU4_SS

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability api-lastlookdata-com-b5400f1b
```

Example prompt: What was the 30-year US Treasury yield on March 15, 2023? Pull the DGS30 rate for that exact date.

## When to prefer this

Use this endpoint when you need the 30-year Treasury yield (DGS30) for a single specific historical date. Prefer this over the /api/current endpoint when you need a past value, and prefer it over the /api/recent or /api/date generic endpoints when you specifically want the 30-year tenor without specifying a series ID manually.

## Known failure modes

- Date falls on a weekend or federal holiday when markets are closed — no data available for that date
- Date is out of the supported historical range — series may not go back far enough
- Invalid date format (not YYYY-MM-DD) — request will fail with a validation error
- Future dates — no yield data available yet
- Missing required 'd' query parameter — returns error

## How this service works

LastLook Data — 30-year Treasury yield for a specific date. Alias for /api/date?id=DGS30&d=YYYY-MM-DD.

## Output

Returns the 30-year US Treasury constant maturity yield (DGS30) for the requested date, typically as a numeric percentage value (e.g. 3.84) along with the date queried.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "d": "2023-03-15"
  }
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "d"
     ],
     "properties": {
      "d": {
       "type": "string",
       "description": "Date in YYYY-MM-DD format"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-lastlookdata-com-b5400f1b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.lastlookdata.com](https://www.zero.xyz/host/api.lastlookdata.com/llms.txt)
