remote-execution Scenario 3 — cURL Remote Trigger with Response
Written by RTILA X Engineering Team
Advanced ~10 min
Prerequisites: remote-execution/1 remote-execution/2
What You'll Learn
Chain remote triggers with webhooks
Real-World Use Case
Building a fully automated data pipeline
LIVE DEMO
Remote Trigger via cURL
curl -X POST 'https://learn.rtila.com/api/remote' \
-H "Content-Type: application/json" \
-d '{
"api_key": "comp-xyz-789",
"variables": {
"target_url": "https://competitor.example.com",
"fields": ["title", "price"]
}
}' {
"status": "queued",
"job_id": "job-2026-0220-002",
"rows": [
{
"title": "Competitor Widget",
"price": "$19.99"
},
{
"title": "Competitor Gadget",
"price": "$29.99"
},
{
"title": "Competitor Hub",
"price": "$39.99"
}
]
} | Title | Price |
|---|---|
| Competitor Widget | $19.99 |
| Competitor Gadget | $29.99 |
| Competitor Hub | $39.99 |
EXPECTED OUTPUT
RTILA X PROJECT JSON
{
"name": "Competitor_Scraper_Remote",
"settings": {
"urls": [
"https://learn.rtila.com/scenarios/remote-execution/3"
]
},
"datasets": {
"scraped_rows": {
"item_selector": "css=table.curl-output tbody tr",
"properties": [
{
"name": "title",
"type": "text",
"selector": "css=td:nth-child(1)"
},
{
"name": "price",
"type": "text",
"selector": "css=td:nth-child(2)"
}
]
}
},
"commands": [
{
"command": "wait_for_selector",
"params": {
"selector": "css=table.curl-output"
}
},
{
"command": "extract_data",
"params": {
"dataset": "scraped_rows"
}
}
],
"remote": {
"enabled": true,
"api_key": "comp-xyz-789"
}
}
cURL Command
curl -X POST 'https://learn.rtila.com/api/remote' -H "Content-Type: application/json" -d '{"api_key":"comp-xyz-789","variables":{"target_url":"https://competitor.example.com","fields":["title","price"]}}' The cURL command triggers the remote project with a target URL and requested fields. The response includes a job ID for tracking.
Did you complete this scenario?
Ready to run this automation?
Copy the project JSON above, open RTILA X, create a new project, and paste it.
This scenario covers 2 RTILA X commands and is referenced in 2 learning articles.
Continue Learning
Was this helpful?
Thank you for your feedback!