Skip to main content
POST
/
v1
/
integrate
Integrate
curl --request POST \
  --url https://api.example.com/v1/integrate \
  --header 'Content-Type: application/json' \
  --data '
{
  "api": "<string>",
  "path": "<string>",
  "format": "<string>"
}
'
Get ready-to-use code snippets for integrating an API endpoint into your application.

Request

api
string
required
API slug (e.g., “olostep”, “hunter”)
path
string
required
Endpoint path (e.g., “/v1/scrapes”)
format
string
default:"orth-sdk"
Code format to return:
ValueDescription
orth-sdkOrthogonal TypeScript SDK
run-apiDirect HTTP to /v1/run
curlcURL command
x402-fetchx402 payment (JavaScript)
x402-pythonx402 payment (Python)
allAll available formats

Response

{
  "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..."
  }
}

Example

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"
  }'