Developers / API Documentation
Yield data, explained.
A practical look at the data behind Quid: the available endpoint, the shape of a yield record, and the limits you should understand before building on it.
01 / Endpoint
One route. One collection.
The current Next.js application exposes a GET endpoint used by the Quid interface. It is an application endpoint, not a versioned or supported third-party API product.
/api/yieldsReturns a JSON array of CeFi reference offers and eligible DeFi pools, sorted by descending TVL and limited to 100 records. When upstream DeFiLlama retrieval fails, the endpoint can return HTTP 500 instead of a partial array.
Error: 500 {"error":"Erreur lors de la récupération"}
Current availability
No published SLA, API keys, rate-limit contract, or compatibility guarantees. Avoid depending on this endpoint for production integrations without an explicit agreement.
02 / Response schema
Know what each field means.
The following is an illustrative response shape, not a live quote or a promise that the sample yield exists.
GET /api/yields
HTTP/1.1 200 OK
Content-Type: application/json
[
{
"id": "example-sol",
"platform": "Example Provider",
"logo": "example",
"type": "CeFi",
"asset": "SOL",
"apy": 5.25,
"lockup": "Flexible",
"riskLevel": "medium",
"riskRating": "B",
"riskLabel": "Moderate Risk",
"tvl": 1000000,
"url": "https://example.com"
}
]idstringIdentifier generated by Quid; do not assume permanent stability.platform / logostringProvider display name and local logo key.type / assetstringCeFi or DeFi, and the normalized asset symbol.apynumberAnnual percentage yield as a percentage (5.25 means 5.25%).tvlnumberUSD liquidity figure; CeFi values may be estimates.lockupstringDisplay label; verify actual withdrawal terms with provider.riskLevel / riskRating / riskLabelstringInternal indicative classifications, not audited safety ratings.urlstring?Optional provider link; some links may contain affiliate referrals.03 / Data pipeline
From source to screen.
01
Collect
DeFi pools come from DeFiLlama. CeFi offers currently include manually maintained reference rates, with a Binance fetch attempt for selected stablecoins.
02
Transform
The backend normalizes selected symbols and providers, combines eligible pools and catalog entries, then sorts by TVL.
03
Display
External fetches request a 300-second revalidation window. The API response sets no-store, so this does not guarantee every number is live.
04 / Important limits
What the endpoint does not guarantee.
The 4% rule is a product rule
The comparison experience is intended to display APYs from 4% to below 100%. The current API implementation itself does not consistently apply the 4% floor to every record; external consumers must not assume it does.
No historical or regional contract
The endpoint does not provide historical yield series, country-specific eligibility, audited risk scoring or guaranteed real-time verification. Provider conditions can differ from the displayed fields.
05 / FAQ
Common integration questions.
Can I use this as a public production API?
Not as a guaranteed service. It is currently the application's own endpoint and may change without notice.
Does every APY update automatically?
No. DeFi data is fetched from an external source, while several CeFi rates are static references or fallbacks.
Does the API validate product eligibility in my country?
No. Availability, account requirements and restrictions must be checked with each provider.
Are risk ratings independent audits?
No. They are internal labels and should not be interpreted as certification or investment advice.
Have an integration question?
Share your use case or report an inconsistency in the endpoint documentation.
Contact Quid