도메인별 인용 통계 조회
curl --request GET \
--url https://platform-api.trychainshift.ai/api/v1beta/platform/sources/statistics/domains \
--header 'API-Key: <api-key>'import requests
url = "https://platform-api.trychainshift.ai/api/v1beta/platform/sources/statistics/domains"
headers = {"API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'API-Key': '<api-key>'}};
fetch('https://platform-api.trychainshift.ai/api/v1beta/platform/sources/statistics/domains', 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://platform-api.trychainshift.ai/api/v1beta/platform/sources/statistics/domains",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://platform-api.trychainshift.ai/api/v1beta/platform/sources/statistics/domains"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://platform-api.trychainshift.ai/api/v1beta/platform/sources/statistics/domains")
.header("API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://platform-api.trychainshift.ai/api/v1beta/platform/sources/statistics/domains")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"domains": [
{
"citationCount": 78,
"domain": "reddit.com",
"models": [
{
"citationCount": 69,
"model": "CHATGPT"
}
]
}
],
"totalCitations": 1571,
"totalDomains": 354
}{
"code": "COMMON_VALIDATION",
"details": [
"limit: 100 이하여야 합니다"
],
"message": "데이터 검증에 실패했습니다"
}{
"code": "COMMON_UNAUTHORIZED",
"message": "인증되지 않은 사용자입니다"
}{
"code": "INSUFFICIENT_CREDITS",
"message": "크레딧이 부족합니다."
}{
"code": "PLATFORM_RATE_LIMIT_EXCEEDED",
"message": "요청이 너무 많습니다. 잠시 후 다시 시도해주세요."
}{
"message": "Internal Server Error",
"requestID": "bkZqnHQepkgTOocTvyHWSlHcGzRqQbZk"
}API
인용 도메인 통계
[BETA] 베타 API 입니다. 응답 스펙이 예고 없이 변경될 수 있습니다.
답변에 인용된 출처를 도메인 단위로 집계합니다.
domains는 인용 수가 많은 순으로 상위limit개를 담은 랭킹이며, 페이지네이션을 지원하지 않습니다.- 기본 집계 단위는 루트 도메인입니다. 예를 들어
blog.naver.com과cafe.naver.com은naver.com으로 합산됩니다.groupBy=subdomain을 지정하면 서브도메인 단위로 집계합니다. - 조회 범위 전체의 총 인용 수(
totalCitations)와 고유 도메인 수(totalDomains)를 함께 반환합니다.
오류
| HTTP | 코드 | 설명 |
|---|---|---|
| 400 | COMMON_VALIDATION | • runIDs·promptIDs 둘 다 누락 • runIDs 개수(5개)·promptIDs 개수(10개) 초과 • limit 범위 위반(1~200) • domains 필터 개수(50개)·길이(253자) 초과 • 지원하지 않는 groupBy·model·include 값 |
| 400 | COMMON_BINDING | runIDs·promptIDs 형식 오류 (details 에 PLATFORM_INVALID_ID) |
| 401 | COMMON_UNAUTHORIZED | API 키 또는 액세스 토큰이 없거나 유효하지 않음 |
| 402 | INSUFFICIENT_CREDITS | 조직 크레딧 잔액이 이 요청의 단가보다 적음 |
| 429 | PLATFORM_RATE_LIMIT_EXCEEDED | 요청 한도 초과. Retry-After 헤더의 초만큼 기다린 뒤 재시도 |
| 500 | — | 서버 내부 오류. code 없이 message 와 requestID 를 반환 |
GET
/
v1beta
/
platform
/
sources
/
statistics
/
domains
도메인별 인용 통계 조회
curl --request GET \
--url https://platform-api.trychainshift.ai/api/v1beta/platform/sources/statistics/domains \
--header 'API-Key: <api-key>'import requests
url = "https://platform-api.trychainshift.ai/api/v1beta/platform/sources/statistics/domains"
headers = {"API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'API-Key': '<api-key>'}};
fetch('https://platform-api.trychainshift.ai/api/v1beta/platform/sources/statistics/domains', 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://platform-api.trychainshift.ai/api/v1beta/platform/sources/statistics/domains",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://platform-api.trychainshift.ai/api/v1beta/platform/sources/statistics/domains"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://platform-api.trychainshift.ai/api/v1beta/platform/sources/statistics/domains")
.header("API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://platform-api.trychainshift.ai/api/v1beta/platform/sources/statistics/domains")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"domains": [
{
"citationCount": 78,
"domain": "reddit.com",
"models": [
{
"citationCount": 69,
"model": "CHATGPT"
}
]
}
],
"totalCitations": 1571,
"totalDomains": 354
}{
"code": "COMMON_VALIDATION",
"details": [
"limit: 100 이하여야 합니다"
],
"message": "데이터 검증에 실패했습니다"
}{
"code": "COMMON_UNAUTHORIZED",
"message": "인증되지 않은 사용자입니다"
}{
"code": "INSUFFICIENT_CREDITS",
"message": "크레딧이 부족합니다."
}{
"code": "PLATFORM_RATE_LIMIT_EXCEEDED",
"message": "요청이 너무 많습니다. 잠시 후 다시 시도해주세요."
}{
"message": "Internal Server Error",
"requestID": "bkZqnHQepkgTOocTvyHWSlHcGzRqQbZk"
}실측 예시와 해석은 통계로 분석하기 가이드를 참고하세요.
자주 묻는 질문
결과가 비어 있습니다. 실행이 아직 진행 중이거나, 지정한 범위에 출처를 제공한 성공 답변이 없는 경우입니다.인증
"조직 API 키를 입력하세요. 예: 'cs_live_xxxx'"
쿼리 매개변수
프롬프트 실행 필터 (실행 요청 시 발급된 ID, 반복 전달, 최대 5개 — 여러 개면 합집합). runIDs·promptIDs 중 최소 하나 필수
프롬프트 필터 (프롬프트 목록·생성 응답의 id, 반복 전달, 최대 10개 — 여러 개면 합집합). runIDs·promptIDs 중 최소 하나 필수
모델 필터. GET /models 로 조회 가능한 모델만 허용
사용 가능한 옵션:
CHATGPT, GOOGLE_OVERVIEW, GOOGLE_AI, PERPLEXITY, GEMINI, NAVER_AI_BRIEFING, NAVER_AI_TAB, CLAUDE 도메인 필터 (반복 전달, 최대 50개, 각 253자 이내). 매칭 기준은 groupBy 를 따릅니다. 상위 limit 밖 도메인도 지정하면 지표를 볼 수 있습니다
추가로 포함할 필드. models 를 주면 도메인별 모델 분해를 함께 반환합니다
상위 몇 개 도메인까지 반환할지 (기본 50, 최대 200)