Data App を公開
curl --request POST \
--url https://api.example.com/v1/data-apps \
--header 'Content-Type: application/json' \
--data '
{
"manifest": "<string>",
"files": {},
"secrets": {}
}
'import requests
url = "https://api.example.com/v1/data-apps"
payload = {
"manifest": "<string>",
"files": {},
"secrets": {}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({manifest: '<string>', files: {}, secrets: {}})
};
fetch('https://api.example.com/v1/data-apps', 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",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'manifest' => '<string>',
'files' => [
],
'secrets' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/data-apps"
payload := strings.NewReader("{\n \"manifest\": \"<string>\",\n \"files\": {},\n \"secrets\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/v1/data-apps")
.header("Content-Type", "application/json")
.body("{\n \"manifest\": \"<string>\",\n \"files\": {},\n \"secrets\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/data-apps")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"manifest\": \"<string>\",\n \"files\": {},\n \"secrets\": {}\n}"
response = http.request(request)
puts response.read_body{
"app_name": "<string>",
"namespace": "<string>",
"version": "<string>",
"status": "<string>",
"card": {},
"missing_secrets": [
"<string>"
],
"name_reused_from": "<string>"
}Publishing
Data App を公開
api 型 App のワンショット公開糖衣。契約インポート導線が後継。
POST
/
v1
/
data-apps
Data App を公開
curl --request POST \
--url https://api.example.com/v1/data-apps \
--header 'Content-Type: application/json' \
--data '
{
"manifest": "<string>",
"files": {},
"secrets": {}
}
'import requests
url = "https://api.example.com/v1/data-apps"
payload = {
"manifest": "<string>",
"files": {},
"secrets": {}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({manifest: '<string>', files: {}, secrets: {}})
};
fetch('https://api.example.com/v1/data-apps', 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",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'manifest' => '<string>',
'files' => [
],
'secrets' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/data-apps"
payload := strings.NewReader("{\n \"manifest\": \"<string>\",\n \"files\": {},\n \"secrets\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/v1/data-apps")
.header("Content-Type", "application/json")
.body("{\n \"manifest\": \"<string>\",\n \"files\": {},\n \"secrets\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/data-apps")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"manifest\": \"<string>\",\n \"files\": {},\n \"secrets\": {}\n}"
response = http.request(request)
puts response.read_body{
"app_name": "<string>",
"namespace": "<string>",
"version": "<string>",
"status": "<string>",
"card": {},
"missing_secrets": [
"<string>"
],
"name_reused_from": "<string>"
}非推奨。 提出はポータルの契約インポートウィザード(assemble-contract エンドポイント基盤)へ。新規はそちらを。
POST https://api-datahub.octoparse.com/v1/data-apps
認証:APIキー必須(Authorization: Bearer <API Key>)。
api 型(宣言的)App 向けワンショット公開糖衣: 内部は識別子作成 → ワークスペース保存 → Build 作成 → Release 作成の原子チェーン。
バージョンは公開アクションが決める: 既定では現在の最大版の patch が +1(初回は 0.1.0)。提出物にバージョン番号は不要・不可(テンプレや手付けの stale 値を避ける)。
名前空間は認証から推定: マニフェストの identity.app_name は App 名のみ。App は発行者自身の(user, app name)配下に載る。app_id は一度発行され、ユーザー名や App 名の変更後も生き残る。
リクエスト
リクエスト body
string
必須
生マニフェストテキスト。
object
Attached files.
object
シークレット名→平文のマップ。
リクエスト例
curl -X POST \
-H "Authorization: Bearer $OCTOPARSE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"manifest": "spec_version: \"0.2\"\n…", "secrets": {"EXAMPLE_API_KEY": "sk-example"}}' \
"https://api-datahub.octoparse.com/v1/data-apps"
レスポンス
200 成功
{
"data": {
"app_id": "app_6dfe4e839ccf",
"namespace": "carol",
"app_name": "reviews-query",
"version": "0.1.0",
"build_id": "bld_a583f440a0ab",
"published_at": "2026-09-15T08:00:00+00:00"
}
}
data に包まれます。フィールド:
string
必須
App 名。
string
発行者ユーザー名。
string
公開バージョン番号。
string
—
object
必須
—
string[]
—
string
—
エラー
| HTTP | code | category | Description |
|---|---|---|---|
| 401 | unauthorized | forbidden | API キー欠落または無効。 |
| 422 | invalid-manifest | invalid_input | マニフェスト検証失敗。issues[] に問題一覧。 |
| 400 | username-required | invalid_input | アカウントにまだユーザー名がなく <username>/<app_name> を構成できない。 |
| 409 | app-name-reserved | forbidden | 他者の履歴バインドが名前を保持(ユーザー名移管後 30 日凍結)。 |
| 400 | invalid-app-name | invalid_input | Name fails naming rules or is a reserved word. |
{"error": {code, category, message, retryable}} です。エラー を参照。