Consumer sends JSON → Opsalis converts to XML-RPC → Owner API processes → XML response converted back to JSON
Why XML-RPC on Opsalis?
XML-RPC powers millions of WordPress sites, legacy enterprise systems, and embedded devices. These APIs are battle-tested but difficult to monetize directly. Opsalis bridges that gap: register your XML-RPC endpoint, set a price per call, and the wrapper handles everything else.
Consumers interact using simple JSON — they never need to construct XML-RPC envelopes or parse XML responses. The Opsalis wrapper auto-converts between JSON and XML-RPC in both directions, making legacy APIs as easy to consume as any modern REST endpoint.
Every call is settled in USDC on Base L2 with transparent 5% platform commission. No payment integration, no invoice chasing — just register and earn.
Try It Live
XML-RPC Method Call
Code Samples
# Call an XML-RPC API through Opsalis
$ curl -X POST https://opsalis.com/api/demo/api/bb-xmlrpc \
-H "Content-Type: application/json" \
-H "X-Consumer-Key: demo-public-key-2026" \
-d '{
"method": "wp.getPost",
"params": {
"blog_id": 1,
"post_id": 42,
"fields": ["post_title", "post_content", "post_date"]
}
}'
// Call an XML-RPC API through Opsalis
const response = await fetch('https://opsalis.com/api/demo/api/bb-xmlrpc', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-Consumer-Key': 'demo-public-key-2026'
},
body: JSON.stringify({
method: 'wp.getPost',
params: {
blog_id: 1,
post_id: 42,
fields: ['post_title', 'post_content', 'post_date']
}
})
});
const data = await response.json();
console.log(data);
# Call an XML-RPC API through Opsalis
import requests
response = requests.post(
'https://opsalis.com/api/demo/api/bb-xmlrpc',
headers={
'Content-Type': 'application/json',
'X-Consumer-Key': 'demo-public-key-2026'
},
json={
'method': 'wp.getPost',
'params': {
'blog_id': 1,
'post_id': 42,
'fields': ['post_title', 'post_content', 'post_date']
}
}
)
print(response.json())
Self-Host in Minutes
Install Opsalis
Pull and run the free Docker container on your own hardware. No cloud dependency.
$ docker pull opsalis/node:latest
$ docker run -d --name opsalis -p 3000:3000 opsalis/node:latest
Register Your XML-RPC API
Open the control center and add your XML-RPC endpoint. Set per-call pricing in USDC.
# In the Opsalis control center:
API Name: my-xmlrpc-service
Protocol: XML-RPC
Endpoint URL: http://localhost:8080/xmlrpc
Price/call: $0.001 USDC
Configure XML-RPC Methods
Whitelist which XML-RPC methods consumers can call. The wrapper handles JSON↔XML conversion automatically.
# Allowed methods configuration:
Methods: wp.getPost, wp.getPosts, wp.getUsers
Auth: Optional (Opsalis handles consumer auth)
Start Earning
Consumers discover your API on the marketplace and pay per call. USDC settles automatically to your wallet on Base L2.