获取工作区配置
curl --request POST \
--url https://api.pubrio.com/profile \
--header 'Content-Type: application/json' \
--header 'pubrio-api-key: <api-key>' \
--data '
{
"profile_id": 123
}
'import requests
url = "https://api.pubrio.com/profile"
payload = { "profile_id": 123 }
headers = {
"pubrio-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'pubrio-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({profile_id: 123})
};
fetch('https://api.pubrio.com/profile', 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.pubrio.com/profile",
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([
'profile_id' => 123
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"pubrio-api-key: <api-key>"
],
]);
$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.pubrio.com/profile"
payload := strings.NewReader("{\n \"profile_id\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("pubrio-api-key", "<api-key>")
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.pubrio.com/profile")
.header("pubrio-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"profile_id\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pubrio.com/profile")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["pubrio-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"profile_id\": 123\n}"
response = http.request(request)
puts response.read_body{
"data": {
"profile_id": 1,
"credit": 457499,
"topup_credit": 235237,
"name": "Pubrio",
"description": null,
"is_auto_top_up_credits_enabled": false,
"auto_top_up_credit": 2500,
"auto_top_up_balance_fall_below": 500,
"subscription": {
"id": 7,
"credit": 2250,
"max_api_monthly_query": 0,
"max_api_daily_query": 0,
"max_api_hourly_query": 0,
"is_not_able_to_subscribe": false,
"max_portal_monthly_query": 60000,
"max_portal_daily_query": 2000,
"max_portal_hourly_query": 1000,
"amount": 59,
"is_custom_plan": false,
"currency_id": 14,
"currency": "usd",
"topup_credit_amount": 0.035,
"name": "Business - Annual Subscription",
"slug": "business-annual",
"collection": "business",
"is_annual": true,
"is_default": null,
"identifier": "2618b67a-cc4d-4fd1-bbe8-f906e4f6632d",
"last_charged": "2024-11-09T03:40:41.995Z",
"next_charge_date": "2025-11-09T03:40:41.995Z",
"last_usage_charged": "2024-10-30T15:01:54.895Z",
"next_usage_charge_date": "2024-11-13T15:01:54.895Z",
"last_refill_date": "2024-11-09T03:40:41.995Z",
"next_refill_date": "2024-12-09T03:40:41.995Z",
"usage_charge_period": 2,
"usage_charge_period_type": "week",
"charge_period": 12,
"charge_period_type": "month",
"web_intent_signal_credit": 25,
"max_search_page": 100,
"max_search_per_page": 25,
"phone_number_redeem_credit": 30,
"email_redeem_credit": 15,
"people_search_credit": 3,
"company_search_credit": 1,
"data_export_credit": 1,
"max_session_per_page": 100,
"max_export_limit": 25000,
"max_select_limit": 5000,
"max_record_upload_size": 100000,
"max_company_search_select_limit": 1000,
"max_people_search_select_limit": 25,
"max_channel_email_account": 1,
"max_channel_linkedin_account": 1,
"max_channel_slack_account": 0,
"is_full_export_available": true,
"is_api_access_available": false,
"is_add_user_available": true,
"is_refill_without_charge": false,
"is_skip_user_related_calculation": false,
"is_credit_rollover_available": false,
"is_quota_sharing_available": true,
"last_modified": "2024-11-09T03:40:41.995Z",
"total_credit_used": 7025,
"total_charge_credit": 7000,
"credit_refill": 459000,
"total_amount": 8988,
"products": [
{
"currency_id": 14,
"currency": "usd",
"waived_quantity": 6,
"is_full_waived": false,
"id": 3,
"name": "Additional User Licence",
"slug": "additional-user-licence",
"quantity": 16,
"amount": 59,
"prorated_amount": 11328,
"metadata": {
"next_charge_date": "2025-11-09T03:40:41.995Z",
"is_annual": true,
"charge_period": 12,
"charge_period_type": "month",
"total_used_subscription": 16,
"total_user_subscriptions": 33
},
"total_amount": 7080
},
{
"currency_id": 14,
"currency": "usd",
"waived_quantity": 0,
"is_full_waived": false,
"id": 5,
"name": "Profile Subscription",
"slug": "profile-subscription",
"quantity": 1,
"amount": 59,
"prorated_amount": 708,
"metadata": {
"next_charge_date": "2025-11-09T03:40:41.995Z",
"is_annual": true,
"charge_period": 12,
"charge_period_type": "month"
},
"total_amount": 708
}
],
"usage_products": [
{
"currency_id": 14,
"currency": "usd",
"waived_quantity": 1,
"is_full_waived": false,
"id": 2,
"name": "Website Intent Data",
"slug": "website-intent-data",
"quantity": 281,
"amount": 0.88,
"prorated_amount": 245.88,
"metadata": {
"web_intent_signal_credit": 25,
"topup_credit_amount": 0.035
},
"total_amount": 245,
"total_credit_used": 7025,
"total_charge_credit": 7000
}
]
}
}
}{
"code": 40001,
"message": "错误及代码会根据不同场景有所不同,详情请参阅文档。",
"details": {}
}{
"error": "请求频率超出限制。请稍后再试。"
}{
"error": "服务器在处理请求时遇到了未预料的异常。"
}团队(工作区)
团队详细信息
获取当前工作区配置详情,包括计划信息和设置。
POST
/
profile
获取工作区配置
curl --request POST \
--url https://api.pubrio.com/profile \
--header 'Content-Type: application/json' \
--header 'pubrio-api-key: <api-key>' \
--data '
{
"profile_id": 123
}
'import requests
url = "https://api.pubrio.com/profile"
payload = { "profile_id": 123 }
headers = {
"pubrio-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'pubrio-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({profile_id: 123})
};
fetch('https://api.pubrio.com/profile', 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.pubrio.com/profile",
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([
'profile_id' => 123
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"pubrio-api-key: <api-key>"
],
]);
$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.pubrio.com/profile"
payload := strings.NewReader("{\n \"profile_id\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("pubrio-api-key", "<api-key>")
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.pubrio.com/profile")
.header("pubrio-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"profile_id\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pubrio.com/profile")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["pubrio-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"profile_id\": 123\n}"
response = http.request(request)
puts response.read_body{
"data": {
"profile_id": 1,
"credit": 457499,
"topup_credit": 235237,
"name": "Pubrio",
"description": null,
"is_auto_top_up_credits_enabled": false,
"auto_top_up_credit": 2500,
"auto_top_up_balance_fall_below": 500,
"subscription": {
"id": 7,
"credit": 2250,
"max_api_monthly_query": 0,
"max_api_daily_query": 0,
"max_api_hourly_query": 0,
"is_not_able_to_subscribe": false,
"max_portal_monthly_query": 60000,
"max_portal_daily_query": 2000,
"max_portal_hourly_query": 1000,
"amount": 59,
"is_custom_plan": false,
"currency_id": 14,
"currency": "usd",
"topup_credit_amount": 0.035,
"name": "Business - Annual Subscription",
"slug": "business-annual",
"collection": "business",
"is_annual": true,
"is_default": null,
"identifier": "2618b67a-cc4d-4fd1-bbe8-f906e4f6632d",
"last_charged": "2024-11-09T03:40:41.995Z",
"next_charge_date": "2025-11-09T03:40:41.995Z",
"last_usage_charged": "2024-10-30T15:01:54.895Z",
"next_usage_charge_date": "2024-11-13T15:01:54.895Z",
"last_refill_date": "2024-11-09T03:40:41.995Z",
"next_refill_date": "2024-12-09T03:40:41.995Z",
"usage_charge_period": 2,
"usage_charge_period_type": "week",
"charge_period": 12,
"charge_period_type": "month",
"web_intent_signal_credit": 25,
"max_search_page": 100,
"max_search_per_page": 25,
"phone_number_redeem_credit": 30,
"email_redeem_credit": 15,
"people_search_credit": 3,
"company_search_credit": 1,
"data_export_credit": 1,
"max_session_per_page": 100,
"max_export_limit": 25000,
"max_select_limit": 5000,
"max_record_upload_size": 100000,
"max_company_search_select_limit": 1000,
"max_people_search_select_limit": 25,
"max_channel_email_account": 1,
"max_channel_linkedin_account": 1,
"max_channel_slack_account": 0,
"is_full_export_available": true,
"is_api_access_available": false,
"is_add_user_available": true,
"is_refill_without_charge": false,
"is_skip_user_related_calculation": false,
"is_credit_rollover_available": false,
"is_quota_sharing_available": true,
"last_modified": "2024-11-09T03:40:41.995Z",
"total_credit_used": 7025,
"total_charge_credit": 7000,
"credit_refill": 459000,
"total_amount": 8988,
"products": [
{
"currency_id": 14,
"currency": "usd",
"waived_quantity": 6,
"is_full_waived": false,
"id": 3,
"name": "Additional User Licence",
"slug": "additional-user-licence",
"quantity": 16,
"amount": 59,
"prorated_amount": 11328,
"metadata": {
"next_charge_date": "2025-11-09T03:40:41.995Z",
"is_annual": true,
"charge_period": 12,
"charge_period_type": "month",
"total_used_subscription": 16,
"total_user_subscriptions": 33
},
"total_amount": 7080
},
{
"currency_id": 14,
"currency": "usd",
"waived_quantity": 0,
"is_full_waived": false,
"id": 5,
"name": "Profile Subscription",
"slug": "profile-subscription",
"quantity": 1,
"amount": 59,
"prorated_amount": 708,
"metadata": {
"next_charge_date": "2025-11-09T03:40:41.995Z",
"is_annual": true,
"charge_period": 12,
"charge_period_type": "month"
},
"total_amount": 708
}
],
"usage_products": [
{
"currency_id": 14,
"currency": "usd",
"waived_quantity": 1,
"is_full_waived": false,
"id": 2,
"name": "Website Intent Data",
"slug": "website-intent-data",
"quantity": 281,
"amount": 0.88,
"prorated_amount": 245.88,
"metadata": {
"web_intent_signal_credit": 25,
"topup_credit_amount": 0.035
},
"total_amount": 245,
"total_credit_used": 7025,
"total_charge_credit": 7000
}
]
}
}
}{
"code": 40001,
"message": "错误及代码会根据不同场景有所不同,详情请参阅文档。",
"details": {}
}{
"error": "请求频率超出限制。请稍后再试。"
}{
"error": "服务器在处理请求时遇到了未预料的异常。"
}⌘I

