Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: Priors paid Stocks API
version: 1.2.0
description: Credit records and scores of ERC-8004 agents on Priors, the credit protocol for AI agents on Robinhood Chain, the pool's and the stock vault's figures, and images and short video clips made to order under strict content rules.
x-guidance: 'Each route has its own price in USDG, paid per call with x402 v2 (scheme exact, network eip155:4663, USDG 0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168): GET /v1/report/{agentId} 0.03; GET /v1/score/{agentId} 0.03; GET /v1/file/{agentId} 0.10; GET /v1/explain/{agentId} 0.02; POST /v1/screen 0.05; GET /v1/wallet/{address} 0.03; GET /v1/income/{agentId} 0.03; GET /v1/pool/day 0.02; POST /v1/watch 0.03; GET /v1/late 0.02; GET /v1/backer/{agentId} 0.05; GET /v1/stock-line/{symbol} 0.02; GET /v1/stocks/holds 0.02; GET /v1/credit/{agentId} 0.03; POST /v1/media/image 0.05; POST /v1/media/video 0.45. GET /v1/score/{agentId} returns an agent''s Priors score (0 to 1000) and GET /v1/report/{agentId} its full credit report; GET /v1/file/{agentId} is the due-diligence file; POST /v1/screen and POST /v1/watch take {"agents": [...]}, 1 to 50 entries. Every route checks its input and its data before it asks for payment: a malformed input is a 400 and what Priors does not know a 404, with nothing charged. POST /v1/media/image ({"prompt", "aspect_ratio"}) and POST /v1/media/video ({"prompt", "duration": 5, "image_id"}) answer a media id at once; GET /v1/media/{id} is free and gives the output URLs when done. A prompt that breaks the content rules (real or named people, brands or logos, sexual, violent, hateful or political content, children, weapons, drugs) is a 422 before any payment, and so is one the content check refuses after the payment is signed: nothing settles. At the monthly limit the media routes answer 503 before any offer.'
contact:
email: contact@priors.trade
url: https://priors.trade
servers:
- url: https://api.priors.trade
tags:
- name: Stocks
paths:
/v1/stock-line/{symbol}:
get:
operationId: stockLine
summary: 'Priors stock line sizing: how many tokens of one stock the vault needs for a…'
tags:
- Stocks
x-payment-info:
price:
mode: fixed
currency: USD
amount: '0.020000'
protocols:
- x402: {}
parameters:
- name: symbol
in: path
required: true
description: A stock token the vault accepts (any case), e.g. AAPL
schema:
type: string
- name: line
in: query
required: true
description: The line wanted, in USDG (a plain decimal above 0)
schema:
type: string
pattern: ^\d{1,9}(\.\d{1,6})?$
responses:
'200':
description: The tokens the line needs and whether it fits now
content:
application/json:
schema:
type: object
'400':
description: symbol or line is malformed, or line is missing (nothing is charged)
'402':
description: 'Payment Required: 0.02 USDG, x402 v2 exact on eip155:4663 (asset 0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168)'
'404':
description: The vault does not accept that token (nothing is charged)
'503':
description: The data is not available right now (nothing is charged)
/v1/stocks/holds:
get:
operationId: stockHolds
summary: 'Priors stock vault holds: each accepted stock token, whether it takes new lines…'
tags:
- Stocks
x-payment-info:
price:
mode: fixed
currency: USD
amount: '0.020000'
protocols:
- x402: {}
responses:
'200':
description: Each stock token's state for new lines, and the vault's room
content:
application/json:
schema:
type: object
'402':
description: 'Payment Required: 0.02 USDG, x402 v2 exact on eip155:4663 (asset 0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168)'
'503':
description: The data is not available right now (nothing is charged)