계정 정보
curl --request GET \
--url https://api.example.com/v1/accountimport requests
url = "https://api.example.com/v1/account"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/account', 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/account",
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/account"
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/account")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/account")
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_body{
"user_id": "<string>",
"username": "<string>",
"total_spent": 123,
"currency": "<string>"
}Account & Billing
계정 정보
현재 자격 계정과 누적 데이터 지출.
GET
/
v1
/
account
계정 정보
curl --request GET \
--url https://api.example.com/v1/accountimport requests
url = "https://api.example.com/v1/account"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/account', 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/account",
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/account"
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/account")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/account")
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_body{
"user_id": "<string>",
"username": "<string>",
"total_spent": 123,
"currency": "<string>"
}GET https://api-datahub.octoparse.com/v1/account
인증: API 키 필요(Authorization: Bearer <API Key>).
현재 자격 증명 뒤 계정의 식별 정보와 누적 데이터 지출. 시간 차원 없음. 기간·차원별은 청구 집계.
total_spent는 데이터 요금만 — App 요금표 기준 실행 출력 청구액. 지갑 잔액·충전·인보이스는 Data Hub API 밖. Octoparse 계정 센터에서 확인. 같은 계정 API 키는 동일 누계.
요청
요청 예시
curl -H "Authorization: Bearer $OCTOPARSE_API_KEY" "https://api-datahub.octoparse.com/v1/account"
응답
200 성공
{
"data": {
"user_id": "user-carol",
"username": "carol",
"total_spent": 0.06,
"currency": "USD"
}
}
data로 감쌉니다. 필드:
string
필수
안정 계정 id.
string
현재 사용자 이름. 게시 App 첫 세그먼트
<username>/<app_name>. 미설정 null.number
필수
누적 데이터 지출.
string
통화.
오류
| HTTP | code | category | 설명 |
|---|---|---|---|
| 401 | unauthorized | forbidden | API 키 누락 또는 무효. |
{"error": {code, category, message, retryable}}입니다. 오류 참고.
클라이언트 라이브러리
info = client.account()
print(info["username"], info["total_spent"], info["currency"])
const info = await client.account();
console.log(info.username, info.total_spent, info.currency);