データセット一覧
curl --request GET \
--url https://api.example.com/v1/datasetsimport requests
url = "https://api.example.com/v1/datasets"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/datasets', 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/datasets",
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/datasets"
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/datasets")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/datasets")
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_bodyDatasets
データセット一覧
自分のと公開シードのデータセット。
GET
/
v1
/
datasets
データセット一覧
curl --request GET \
--url https://api.example.com/v1/datasetsimport requests
url = "https://api.example.com/v1/datasets"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/datasets', 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/datasets",
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/datasets"
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/datasets")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/datasets")
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/datasets
認証:APIキー必須(Authorization: Bearer <API Key>)。
所有データセットと公開プラットフォームのシードを一覧。実行結果はデータセットに入る。既定保持を超えて残すなら retention を立てる。
リクエスト
クエリパラメータ
integer
オフセット。0 始まり。
integer
ページサイズ。
リクエスト例
curl -H "Authorization: Bearer $OCTOPARSE_API_KEY" "https://api-datahub.octoparse.com/v1/datasets?limit=50"
レスポンス
200 成功
{
"data": {
"items": [
{
"dataset_id": "ds_0bd5345d13d0",
"row_count": 120,
"retained": false,
"created_at": "2026-09-01T08:00:00+00:00"
}
],
"pagination": {
"offset": 0,
"limit": 50,
"count": 1,
"total": 1,
"has_more": false
}
}
}
エラー
| HTTP | code | category | Description |
|---|---|---|---|
| 401 | unauthorized | forbidden | API キー欠落または無効。 |
{"error": {code, category, message, retryable}} です。エラー を参照。
クライアントライブラリ
page = client.list_datasets(limit=50)
for ds in page["items"]:
print(ds["dataset_id"], ds["row_count"], ds["retained"])
const page = await client.listDatasets({ limit: 50 });
for (const ds of page.items) {
console.log(ds.dataset_id, ds.row_count, ds.retained);
}