# DDG Rail Compare

> DDG Rail Compare is a paid API for AI agents from agents.daedalusdevelopmentgroup.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-11).

Compares rail (train/transit) options between two points, returning a structured comparison of routes, prices, or schedules

## Facts

- Endpoint: POST https://agents.daedalusdevelopmentgroup.com/v1/spend/rail-compare?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ddg-rail-compare-6029799d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6FbIPoQMXV_Q8K7c_ccqQ

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 ddg-rail-compare-6029799d -d '<json body>'
```

Example prompt: Compare all available rail options from New York Penn Station to Washington DC Union Station for this Friday, including prices and travel times, so I can pick the best one.

## When to prefer this

Use this endpoint when an agent needs to programmatically compare rail/train travel options between two points, especially when price or schedule comparison is the goal. Prefer this over general travel search APIs when the user specifically wants rail/train options and cost comparison. Particularly useful when building travel planning agents that need structured rail data for decision-making.

## Known failure modes

- No rail routes found for the given origin/destination pair — returns empty result or error
- Invalid station names or unsupported routes — may return 400-level error
- Travel date in the past or too far in advance — may return no results
- Payment failure or insufficient USDC balance — 402 Payment Required before response
- Malformed request body — returns validation error

## How this service works

DDG agent-payable service request

## Output

Returns a structured comparison of available rail options for the requested route and date, including fares, departure/arrival times, journey durations, and potentially a recommended option based on price or speed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object"
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": true
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "ok": true
    }
   },
   "additionalProperties": true
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ddg-rail-compare-6029799d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.daedalusdevelopmentgroup.com](https://www.zero.xyz/host/agents.daedalusdevelopmentgroup.com/llms.txt)
