- Docs
- Build With Roxy
- SDK (TypeScript / Python)
SDK (TypeScript / Python)
Coming soon. Typed SDKs for TypeScript (@roxy/sdk) and Python (roxy-sdk) are in development.
In the meantime, you can call any endpoint directly with fetch or any HTTP client. See the Quickstart for examples.
TypeScript (fetch)
const response = await fetch('https://roxyapi.com/api/v2/tarot/daily', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': process.env.ROXY_API_KEY!,
},
body: JSON.stringify({}),
});
const card = await response.json();
Python (requests)
import requests
response = requests.post(
'https://roxyapi.com/api/v2/tarot/daily',
headers={'X-API-Key': 'your_api_key'},
json={}
)
card = response.json()
Generate types from OpenAPI
You can generate TypeScript types from any Roxy OpenAPI spec today:
npx openapi-typescript https://roxyapi.com/api/v2/astrology/openapi.json -o astrology.d.ts
Next steps
- AI Prompts — build without writing code
- API Reference — browse all endpoints