요청 템플릿 변수
curl --request GET \
--url https://api.example.com/v1/data-apps/template-variablesimport requests
url = "https://api.example.com/v1/data-apps/template-variables"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/data-apps/template-variables', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/v1/data-apps/template-variables",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/data-apps/template-variables"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/v1/data-apps/template-variables")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/data-apps/template-variables")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyDiscovery
요청 템플릿 변수
api-kind 템플릿 플레이스홀더.
GET
/
v1
/
data-apps
/
template-variables
요청 템플릿 변수
curl --request GET \
--url https://api.example.com/v1/data-apps/template-variablesimport requests
url = "https://api.example.com/v1/data-apps/template-variables"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/data-apps/template-variables', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/v1/data-apps/template-variables",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/data-apps/template-variables"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/v1/data-apps/template-variables")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/data-apps/template-variables")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyGET https://api-datahub.octoparse.com/v1/data-apps/template-variables
인증: 없음. 익명 호출 가능.
api-kind 요청 템플릿이 각 스테이지(url/query/headers/body)에서 쓸 플레이스홀더 목록. 변수마다 짧은 설명, 렌더 예, 사용 가능 스테이지.
게시 파이프라인이 검증에 쓰는 어휘와 같음. 에디터·코딩 어시스턴트가 어긋난 목록을 복사하지 않고 정확히 안내 가능.
요청
요청 예시
curl "https://api-datahub.octoparse.com/v1/data-apps/template-variables"
응답
200 성공
{
"data": {
"syntax": "Single curly braces; a placeholder should be the whole string value ("{input.keyword}"), except inside url where it may be embedded.",
"variables": [
{
"name": "input.<field>",
"description": "A caller-supplied input value; <field> must be a top-level property of input.schema.",
"example": "wireless charger",
"stages": ["submit", "status", "fetch"]
},
{
"name": "env.<alias>",
"description": "Value of a platform-side environment entry declared in runtime.env under <alias>.",
"example": "https://api.example-upstream.com",
"stages": ["submit", "status", "fetch"]
}
]
}
}
syntax는 플레이스홀더 구문. variables[]는 name·description·example·stages.