TAPSAVE OPEN API

하나의 엔드포인트로 미디어 분석 연동

안정적인 REST 엔드포인트로 공개 미디어를 분석합니다. 사용 가능한 리소스가 반환될 때만 1크레딧이 차감됩니다.

REST / JSON단일 분석 엔드포인트실패 시 차감 없음
POST /openapi/parse
curl -X POST https://api.videotool.cc/openapi/parse \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://..."}'
200 OK1 크레딧

01 · 빠른 시작

분석 요청 보내기

요청 헤더에 API 키를 추가하고 JSON 본문에 공개 URL 하나를 전송하세요.

curl -X POST https://api.videotool.cc/openapi/parse \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://..."}'

02 · 인증

API 키로 인증

각 요청에 X-API-Key를 전송합니다. 콘솔에서 키를 확인하거나 갱신할 수 있습니다.

X-API-KeyYOUR_API_KEY

API 키는 서버에 보관하고 앱이나 공개 저장소에 포함하지 마세요.

03 · 엔드포인트

사용 가능한 엔드포인트

POST/openapi/parse단일 URL

공개 미디어 URL 하나 분석

공개 게시물 또는 동영상 URL을 전송합니다. 사용 가능한 리소스 반환 후 1크레딧이 차감됩니다.

urlstring · required공개 게시물 또는 동영상 URL

04 · 응답

성공 응답

성공 시 AjaxResult 안의 ParseResult로 동영상, 이미지, 오디오와 텍스트를 반환합니다.

{
  "code": 200,
  "msg": "操作成功",
  "data": {
    "resultCode": 0,
    "hasResource": true,
    "resourceType": 200,
    "descList": ["..."],
    "imgList": [],
    "videoList": [],
    "audioList": []
  }
}

Response fields

Fields can be empty depending on the source platform and resource type. Check code, data.resultCode, and data.hasResource before reading a resource list.

codenumberBusiness status code; 200 means the request succeeded.
msgstringProcessing message; failures include a displayable reason.
data.resultCodenumberParse result code; 0 means parsing succeeded.
data.resultMsgstring | nullParse result message; normally null on success.
data.hasResourcebooleanWhether usable media was returned; one credit is charged only when true.
data.resourceTypenumberResource type returned by the parser; use the resource lists to identify actual content.
data.parseBynumber | nullParser source or strategy identifier for display and diagnostics only.
data.ffmpegCmdstring | nullFFmpeg command template for source-required transcoding; normal browser playback does not run it.
data.headersobjectHeaders that can be required for direct raw-media requests; normally unnecessary with webProxyUrl.
data.canWatchAdbooleanWhether ad-based parse entitlement is supported; Open API clients normally do not use it.
data.showProxy / data.proxyBaseUrlboolean / string | nullOrdinary download-proxy settings, separate from the Web display proxy.
data.timestampnumberMillisecond timestamp for this response; required in a web proxy URL.
data.webProxyUrlstring | nullWeb display proxy base URL; append /res/dl when present, otherwise use the resource URL.
data.packageDownloadUrlstring | nullPackage-download base URL, used only for /res/zip and generated /static paths.
data.vipProxyBaseUrl / data.vipDownloadStatusstring | nullVIP fast-download fields; standard Open API integrations should not depend on them.
data.vipPackageDownloadUrl / data.vipPackageDownloadStatusstring | nullVIP package-download fields; standard Open API integrations should not depend on them.
data.descList[]string[] | nullOriginal caption, title, or supplemental descriptions.
data.authorstring | nullXiaohongshu author nickname when available.
data.publishTimestring | nullXiaohongshu publish time in yyyy-MM-dd HH:mm:ss format.
data.publishTimestampnumber | nullXiaohongshu publish timestamp in seconds.
data.imgList[].url / origUrlstringImage resource URL and optional original source URL.
data.imgList[].webImgHashstring | nullWeb image proxy signature; fall back to imgHash only when it is absent.
data.imgList[].videoUrlstring | nullVideo linked to an image item when available.
data.imgList[].webVideoHashstring | nullWeb proxy signature for an image item linked video.
data.videoList[].idstring | nullVideo resource identifier for rendering or deduplication.
data.videoList[].url / origUrlstringVideo resource URL and optional original source URL.
data.videoList[].width / heightstring | nullVideo dimensions in px when supplied by the source.
data.videoList[].webVideoHashstring | nullWeb video proxy signature; fall back to videoHash only when absent.
data.videoList[].audioUrlstring | nullSeparate audio resource URL when available.
data.videoList[].webAudioHashstring | nullWeb audio proxy signature; fall back to audioHash only when absent.
data.videoList[].descstring | nullSupplemental description for the video resource.
data.audioList[].url / origUrlstringStandalone audio URL and optional original source URL.

05 · Proxy URLs

Use the web display proxy URL

When webProxyUrl is present, browsers can use a proxied resource URL to handle CORS or origin hotlink restrictions. Use the raw resource URL when it is empty.

const data = result.data;
const video = data.videoList[0];
const rawUrl = video.url;

const displayUrl = data.webProxyUrl
  ? data.webProxyUrl.replace(/\/+$/, '')
    + '/res/dl?url=' + encodeURIComponent(rawUrl)
    + '&hash=' + (video.webVideoHash || video.videoHash)
    + '&timestamp=' + data.timestamp
  : rawUrl;

// <video src={displayUrl} controls />
Signature and resource rules

Use webImgHash (falling back to imgHash) for images, webVideoHash (falling back to videoHash) for videos, and webAudioHash (falling back to audioHash) for video audio. Use only the hash and timestamp returned by the same parse response. Do not use webProxyUrl for /res/zip package downloads.

06 · 오류

비즈니스 오류 코드

code의미과금
400URL이 없거나 잘못되었습니다차감 없음
401API 키가 없거나 잘못되었거나 비활성화되었습니다차감 없음
403크레딧이 부족합니다차감 없음
422사용 가능한 리소스가 없습니다차감 없음
500분석 서비스 오류차감 없음

07 · 과금

성공 결과만 과금

1사용 가능한 리소스 반환 시 차감 크레딧
0실패·예외·빈 결과 시 차감 크레딧
현재 범위

Open API는 URL 하나를 처리하는 POST /openapi/parse만 제공합니다. 일괄, 기능 조회, 멱등 캐시, 속도 제한 엔드포인트는 없습니다.