매니페스트 조회
curl --request GET \
--url https://api.example.com/v1/data-apps/{app_id}/manifestimport requests
url = "https://api.example.com/v1/data-apps/{app_id}/manifest"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/data-apps/{app_id}/manifest', 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/{app_id}/manifest",
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/{app_id}/manifest"
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/{app_id}/manifest")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/data-apps/{app_id}/manifest")
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_bodyPublishing
매니페스트 조회
최신 Release 전체 매니페스트(runtime 포함) 작성자 읽기. 편집 재게시용.
GET
/
v1
/
data-apps
/
{app_id}
/
manifest
매니페스트 조회
curl --request GET \
--url https://api.example.com/v1/data-apps/{app_id}/manifestimport requests
url = "https://api.example.com/v1/data-apps/{app_id}/manifest"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/data-apps/{app_id}/manifest', 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/{app_id}/manifest",
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/{app_id}/manifest"
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/{app_id}/manifest")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/data-apps/{app_id}/manifest")
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/{app_id}/manifest
인증: API 키 필요(Authorization: Bearer <API Key>). App 작성자만. 그 외 404.
최신 Release 전체 매니페스트(runtime 블록 포함)의 작성자용 읽기 — 「편집 후 재게시」 데이터 원본.
runtime은 백엔드 산출물이며 카드·상세 등 공개 페이로드에 안 나와 이 엔드포인트는 작성자만. auth.secret은 runtime.env 별칭일 뿐, 자격 증명 평문은 여기에도 어디에도 없음.
요청
경로 파라미터
string
필수
App 참조.
요청 예시
curl \
-H "Authorization: Bearer $OCTOPARSE_API_KEY" \
"https://api-datahub.octoparse.com/v1/data-apps/carol/reviews-query/manifest"
응답
200 성공
{
"data": {
"spec_version": "0.2",
"identity": {
"app_name": "probe-b",
"name": "Runs list probe source",
"summary": "Test app for runs list pagination and filters",
"type": "data"
},
"discovery": {
"keywords": [
"runs-list-probe"
]
},
"input": {
"schema": {
"type": "object",
"properties": {
"product": {
"type": "string"
}
},
"required": [
"product"
]
}
},
"output": {
"id_field": "review_id",
"schema": {
"type": "object",
"properties": {
"review_id": {
"type": "string"
}
}
}
},
"execution": {
"mode": "sync",
"timeout_seconds": 60
},
"pricing": {
"events": [
{
"event": "record",
"label": "Fetch one record",
"unit_price": 0.001
}
]
},
"runtime": {
"kind": "api",
"env": {
"base": "PARTNER_API_BASE",
"api_key": "PARTNER_API_KEY"
},
"api": {
"auth": {
"type": "api_key",
"in": "header",
"name": "X-API-Key",
"secret": "api_key"
},
"response_code": {
"path": "code",
"ok_codes": [
20000
],
"message_path": "message"
},
"fetch": {
"request": {
"method": "GET",
"url": "{env.base}/api/envelope/reviews",
"query": {
"product": "{input.product}"
}
},
"response": {
"records_path": "data.records",
"field_map": {
"review_id": "id"
}
}
}
}
},
"status": "published",
"scope": "private",
"namespace": "carol",
"source_locale": "zh-CN"
}
}
data 자체가 매니페스트 객체(위는 앞부분만).
오류
| HTTP | code | category | 설명 |
|---|---|---|---|
| 401 | unauthorized | forbidden | API 키 누락 또는 무효. |
| 404 | release-not-found | not_found | 해당 버전 없음, 또는 App에 아직 Release 없음. |
{"error": {code, category, message, retryable}}입니다. 오류 참고.