# Delx Object Get

> Delx Object Get is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-22).

Safely retrieves a value from a JSON object by key, returning the value, whether the key was found, and a default if missing.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/obj-get?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-object-get-ae93edc4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QKr-o3gKM6uhE76jaIrxV

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 delx-object-get-ae93edc4 -d '<json body>'
```

Example prompt: Can you get the value of the key 'timeout' from this config object {"retries":3,"verbose":true} and return 30 as the default if it's not there?

## When to prefer this

Choose this endpoint when an AI agent needs to safely read optional or uncertain fields from a JSON object without risking a key-not-found error, and wants an explicit 'found' flag alongside the value. It is especially useful for agent pipelines where JSON structure is variable and a hardcoded default is needed as a fallback. Prefer it over inline code when the agent runtime does not support safe optional-chaining or when auditability of the lookup matters.

## Known failure modes

- Missing 'key' field causes validation error
- Non-object 'object' input causes type error
- Network or payment (x402) failure results in no response
- Invalid JSON in object field causes parse error

## How this service works

Get object[key] with default. Call when you read optional agent JSON fields safely. Returns value, key, found for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.

## Output

Returns a JSON object containing the extracted value for the requested key (or the caller-supplied default if the key is absent), the key that was looked up, and a boolean 'found' flag indicating whether the key existed in the original object.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "key": {
   "type": "string",
   "description": "Input field: key."
  },
  "object": {
   "type": "object",
   "description": "Input field: object."
  },
  "default": {
   "description": "Input field: default."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "key": "a",
  "found": true,
  "value": 1,
  "schema": "delx/util-obj-get/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-object-get-ae93edc4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
