cURL
curl --request POST \ --url https://api.example.com/v1/integrate \ --header 'Content-Type: application/json' \ --data ' { "api": "<string>", "path": "<string>", "format": "<string>" } '
Get code snippets for an endpoint
orth-sdk
run-api
curl
x402-fetch
x402-python
all
{ "success": true, "api": { "name": "Olostep", "slug": "olostep" }, "endpoint": { "path": "/v1/scrapes", "method": "POST", "price": "$0.005" }, "format": "all", "snippets": { "orth-sdk": "import Orthogonal from \"@orth/sdk\";\n\nconst orthogonal = new Orthogonal(...);\nconst result = await orthogonal.run({...});", "run-api": "curl -X POST 'https://api.orth.sh/v1/run' ...", "curl": "curl -X POST 'https://api.orth.sh/v1/run' ...", "x402-fetch": "import { wrapFetchWithPayment } from \"x402-fetch\"; ...", "x402-python": "from x402.clients.requests import x402_http_adapter ..." }, "setup": { "sdk": "npm install @orth/sdk && export ORTHOGONAL_API_KEY=orth_live_...", "x402": "npm install x402-fetch viem && export PRIVATE_KEY=0x..." } }
curl -X POST 'https://api.orth.sh/v1/integrate' \ -H 'Authorization: Bearer YOUR_API_KEY' \ -H 'Content-Type: application/json' \ -d '{ "api": "hunter", "path": "/domain-search", "format": "all" }'