SpendPreflight
All tools / Data APIs

Data APIs

Use cached endpoint observations, historical FillPoint station proximity and an off-grid solar energy-balance calculator with explicit provenance and limits.

Browse data API schemas

Who it’s for

Developers and agents needing small, bounded data and calculation tools.

Price

Cached endpoint check: 0.005 USDC. Archived station query: 0.01 USDC. Solar estimate: 0.02 USDC. Complete dated station projection is free under ODbL.

Paid calls use x402 with USDC on Base. Read the quote before authorizing payment; examples below do not pay automatically.

Know the limits

Endpoint evidence must be fresh and publicly listed; unknown is not paid delivery proof. FillPoint is a September 17, 2026 historical snapshot, not current availability. Solar output is arithmetic, not weather, electrical design or installation certification. Scout discovery is not generally enabled.

A 30-second integration

Examples use placeholders. Plain requests to paid tools return a payment challenge, not a paid result. Free Lint can perform an unpaid public probe. Inspect the response status and evidence scope before using any result.

curl

curl -i https://api.spendpreflight.com/v1/endpoint \
  -H 'Content-Type: application/json' \
  -d '{"url":"https://api.example.com/data"}'

MCP

Connect to https://api.spendpreflight.com/mcp. Call the existing tool:

{
  "name": "check_endpoint",
  "arguments": {
    "url": "https://api.example.com/data"
  }
}

SDK / JavaScript

Use standard fetch alongside the SpendPreflight SDK; the example does not invent a dedicated exported method.

// Node.js SDK integration: use your explicitly budgeted fetch.
// Plain fetch below never signs or pays. There is no dedicated
// spendpreflight SDK helper for this operation.
const response = await fetch('https://api.spendpreflight.com/v1/endpoint', {
  method: 'POST', headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({"url":"https://api.example.com/data"})
});
console.log(response.status, await response.text());

Frequently asked questions

Can I reuse the station dataset?

The complete derived public projection is free under ODbL with attribution and source links. Charges buy proximity computation, not exclusive dataset access.

Which other MCP tools are available?

find_rv_stations accepts coordinates and bounded radius; size_solar accepts explicit loads and solar assumptions. Inspect the live OpenAPI and MCP metadata for current schemas.

Related tools

Payee Screening · Listing Guard · Seller Monitoring

Authoritative OpenAPI schemas · What this service stores · Practical guides