SkinCheckv1
ドキュメント概要
はじめにv1

クイックスタート

API キーを作成

API キー、ベース URL、API 製品を準備し、各 API ページでパラメーターとリクエスト方法を確認してください。

01

API キーを取得

個人センター → 開発者センター → API キーに移動し、開発者キーを作成します。完全なキーは作成時またはローテーション時のみ表示されるため、安全に保管してください。

02

API ベース URL を設定

このページとオンライン試用では、設定済みの場合は NEXT_PUBLIC_API_BASE_URL を使用し、未設定の場合は現在のドキュメントサイトのオリジンを使用します。サンプルコードは SKINCHECK_API_BASE_URL 環境変数から URL を読み込みます。

使用中の API Base URL

03

API 製品を選択

最初は Skin Analyze Basic をお試しください。正面 JPG/JPEG 画像を 1 枚受け取り、分析完了後に同じレスポンスで結果を返します。

API 名Skin Analyze
HTTP MethodPOST
パス/api/developer/v1/skin-analysis-basic
形式multipart/form-data
成功したリクエストごと— クレジット
04

同期 API と非同期 API を理解する

Basic、Advanced、Pro はリクエスト完了時に分析結果を直接返します。スキンケア提案、顔評価、魅力度テストはまず非同期タスクを作成し、その後ステータスと結果を照会します。

同期

  1. POST 分析リクエスト
  2. 分析の完了を待つ
  3. レスポンスに result を含む

非同期

  1. POST タスクを作成
  2. task_id を受信
  3. ステータスを確認 → 結果を取得
05

開発を続ける

必要に応じて認証、製品の違い、API 呼び出し、タスク取得、エラー処理の各セクションを確認してください。

認証とセキュリティ

API Key を作成

Create an API key in SkinCheck Developer Center to access the SkinCheck Developer API. Authenticate every request from your server using an HTTP header.

API キーを作成

まずキーを保護してください

API Key は個人アカウントの認証情報です。サーバー側の環境変数または専用のシークレット管理ツールにのみ保存してください。ブラウザー上の JavaScript、公開モバイルアプリ、公開リポジトリ、アプリケーションログ、URL パラメーターには含めず、安全でない経路で完全なキーを共有しないでください。

01

API キーを作成

Open key management and create a key using this path:

  1. 01Open Personal Center
  2. 02Open Developer Center
  3. 03Open API Key management
  4. 04Create a new API key
  5. 05Copy the full key and store it securely
API キーを作成This opens Developer Center in Personal Center and selects the API Keys tab.
Save it immediately after creation: キーの作成またはローテーションが成功した直後に限り、完全なキーが一度表示されます。ダイアログを閉じると再表示できません。キー一覧には完全なキーは表示されず、名前、マスクされたプレフィックス、ステータス、日時が表示されます。
02

API 認証

すべての API リクエストで、HTTP ヘッダーに API Key を含めてください。以下のヘッダー名はバックエンドの認証実装と一致しています。

HTTP Header
skincheck-api-key: YOUR_API_KEY

YOUR_API_KEY is a placeholder. Supply the key read by your server. Do not put the key in a URL query parameter.

03

言語別の認証例

These examples show only how to read the key securely and construct the authentication header. When using headers in an API call, add the endpoint URL, HTTP method, and body required by that API.

#!/usr/bin/env bash
set -euo pipefail
: "${SKINCHECK_API_KEY:?Set SKINCHECK_API_KEY}"
: "${SKINCHECK_API_BASE_URL:?Set SKINCHECK_API_BASE_URL}"
: "${SKINCHECK_API_PATH:?Set SKINCHECK_API_PATH to the API endpoint path}"

url="${SKINCHECK_API_BASE_URL%/}/${SKINCHECK_API_PATH#/}"
curl --include "$url" \
  --header "skincheck-api-key: ${SKINCHECK_API_KEY}"
# Add the HTTP method and body required by the selected API endpoint.

Keep SKINCHECK_API_KEY on the server only. These snippets show the authentication header; add the method and body required by the chosen API. Never print the key.

04

API キーをローテーション

ローテーションすると新しい有効なキーが作成されます。古いキーは個別に失効するまで有効です。次の順序で移行してください。

  1. 1

    Create a new key

    Rotate the current key in API Key management and copy the replacement.

  2. 2

    Deploy the new key

    Update the server environment variable or dedicated secret manager.

  3. 3

    Verify the new key

    Make a real API request from the server with the new key and confirm it succeeds.

  4. 4

    Revoke the old key

    Revoke the old key separately after the replacement is confirmed to work.

新しいキーの動作を確認する前に古いキーを失効させないでください。サービスの認証に失敗する可能性があります。
05

キーの失効と漏えいへの対応

失効後、そのキーを使用した新しいリクエストは認証に失敗します。失効しても、すでに流出した可能性のあるコピーは削除されません。キーが漏えいした可能性がある場合は、直ちに対応してください。

  1. 1.Revoke the exposed key immediately.
  2. 2.Create a new API key.
  3. 3.Update and deploy the server configuration.
  4. 4.Review recent API calls and credit usage.
  5. 5.Find the exposure in repositories, logs, or deployment configuration.
API キーを作成A revoked key cannot authenticate new requests. Configure the replacement key.
06

よくある認証の問題

Invalid API key

症状
The response error_code is ERROR_API_KEY_INVALID.
考えられる原因
The key was copied incorrectly, is inactive, or belongs to another account.
確認と対処
Reload the server-side secret and confirm the key status and account in API Key management.

Missing HTTP header

症状
Authentication fails with error_code ERROR_API_KEY_INVALID.
考えられる原因
The request does not send the skincheck-api-key header.
確認と対処
Inspect the outgoing request headers and ensure the server passes the auth header to its HTTP client.

Misspelled header name

症状
Authentication fails with error_code ERROR_API_KEY_INVALID.
考えられる原因
The request uses a different header name.
確認と対処
Use skincheck-api-key exactly; check spelling and hyphens.

Using a revoked key

症状
New requests with this key fail authentication.
考えられる原因
The key was revoked separately.
確認と対処
Check its status in API Key management; create a replacement and update server configuration.

Old key still used after rotation

症状
The service still uses the old credential; it may work until revoked.
考えられる原因
The new environment variable was not applied to the running process or deployment.
確認と対処
Check which key version the process reads, update configuration, restart/redeploy, and verify with the new key.

Calling from browser code

症状
The key can be exposed in source code, developer tools, or network requests.
考えられる原因
A personal credential was placed in the browser environment.
確認と対処
Move the call behind your server, which reads the key; rotate any key that was exposed.

Server environment variable not loaded

症状
The auth header is missing, empty, or still contains an old key.
考えられる原因
The variable name, deployment scope, or process startup configuration does not match.
確認と対処
Check variable presence without printing its value, deployment scope, and process restart status; then retry securely.

肌分析エディション

SkinCheck には Basic、Advanced、Pro の皮膚分析 API があります。検出範囲、結果の詳細度、領域の特定、可視化機能が異なるため、製品に合った API を選択できます。

Claims are checked against the API request definitions and response schemas in this repository. Capabilities absent from a published schema are marked “Needs confirmation”; “Not supported” is used only where the endpoint explicitly excludes that input or output. Optional fields also depend on request parameters and analysis results.
Edition-table reconciliation notes
  • • Pigmentation severity: the local overview and detail table both listed Pro support, though the overview lacked detail. They now share the Pro schema-backed status; maps/outlines show their required parameters.
  • • Fine-line counts and area: the old overview only summarized Pro support and the detail table did not identify count/area fields. The Pro schema defines fine_line, wrinkle_count, and wrinkle_area_ratio, now used consistently. Basic/Advanced remain pending.
  • • Skin type vs oiliness: Skin Type IV classification and regional oiliness are separate capabilities. The Pro detail now follows oily_intensity area/severity fields; Basic/Advanced remain pending.
  • • Sensitive areas: edition-comparison material says Advanced provides area/severity, while its published response schema currently documents only the red_area map. Area/severity remain pending product/backend confirmation.

エディションを選択

SKIN ANALYSIS API

Basic

— クレジット / 成功リクエスト

Get foundational skin-analysis classifications and confidence values.

  • Skin type and eye features
  • Basic wrinkle, pore, acne, and spot detection
View API

SKIN ANALYSIS API

Advanced

— クレジット / 成功リクエスト

Adds skin color, skin age, issue-region rectangles, and an optional redness map.

  • Skin color and skin age
  • Acne, closed-comedone, mole, and spot rectangles
  • Optional red_area map
View API

SKIN ANALYSIS API

Pro

— クレジット / 成功リクエスト

Returns rich structured data, detailed regions, optional maps, and side-profile analysis.

  • Detailed metrics and scores
  • Rectangles/polygons and optional maps
  • Side-profile jawline, acne, and pigmentation results
View API

主な機能の比較

Summary rows and the detailed table below share the same capability data.

狭い画面では横スクロールできます
主な機能BasicAdvancedPro
Skin Type IV classification
対応

skin_type / details

対応

skin_type / details

対応

skin_type / details

Five-category skin-color classification
要確認

Not listed in the current response schema

対応

skin_color.value / confidence

対応

skintone.value / confidence

Skin-age analysis
要確認

Not listed in the current response schema

対応

skin_age.value

対応

skin_age

Acne-region localization
要確認

Region fields are not listed in the current response schema

対応

Rectangular regions

対応

Rectangles and polygons

Pore and blackhead enhancement map
非対応

The Basic request does not expose map parameters

非対応

Advanced return_maps accepts red_area only

パラメーターが必要

Pass return_maps=texture_enhanced_pores,texture_enhanced_blackheads, or texture_enhanced_bw

Redness map
非対応

The Basic request does not expose map parameters

パラメーターが必要

Pass return_maps=red_area

パラメーターが必要

Pass return_maps=red_area

Pigmentation severity analysis
要確認

Not listed in the current response schema

要確認

Not listed in the current response schema

対応

melanin fields; maps/outlines require return_maps / return_marks

Wrinkle/fine-line counts and area analysis
要確認

Count/area fields are not listed in the current response schema

要確認

Count/area fields are not listed in the current response schema

対応

fine_line, wrinkle_count, wrinkle_area_ratio, etc.; coordinates require return_marks

Side-profile jawline analysis
非対応

Basic accepts a front image only

非対応

Advanced accepts a front image only

パラメーターが必要

Upload a side-profile image and pass return_side_results=jawline_info

Individual feature scores
要確認

Not listed in the current response schema

要確認

Not listed in the current response schema

対応

score_info includes feature scores and total_score

対応一部対応パラメーターが必要非対応要確認

詳細な分析項目

Expand a category to see the published output fields for each edition. “Needs confirmation” means the available API information cannot establish support or non-support.

01Skin quality3
分析項目BasicAdvancedPro結果形式
Skin Type IV classification
対応

skin_type / details

対応

skin_type / details

対応

skin_type / details

Classification and confidence by type
Oil-area detection
要確認

Not listed in the current response schema

要確認

Not listed in the current response schema

対応

Regional area share, severity, and score; map requires return_maps

Regional area share and oiliness; enhancement map is optional
Moisture testing
要確認

Not listed in the current response schema

要確認

Not listed in the current response schema

対応

Moisture severity and area share; map requires return_maps

Dehydration severity and regional area share; map is optional
02Skin tone3
分析項目BasicAdvancedPro結果形式
Five-category skin-color classification
要確認

Not listed in the current response schema

対応

skin_color.value / confidence

対応

skintone.value / confidence

Classification and confidence
ITA skin-color classification
要確認

Not listed in the current response schema

要確認

Not listed in the current response schema

対応

skintone_ita

ITA angle and category
HA skin-hue classification
要確認

Not listed in the current response schema

要確認

Not listed in the current response schema

対応

skin_hue_ha

HA angle and hue category
03Pores and blackheads3
分析項目BasicAdvancedPro結果形式
Pore detection
対応

Full-face/regional classification and confidence

対応

Regional classification and confidence

対応

Regional values, counts, severity, and score

Classification and confidence; Pro also includes regional counts, severity, and score
Blackhead detection
対応

Presence classification and confidence

対応

Classification and confidence

対応

Count, severity, and score

Classification and confidence; Pro also includes count, severity, and score
Pore and blackhead enhancement map
非対応

The Basic request does not expose map parameters

非対応

Advanced return_maps accepts red_area only

パラメーターが必要

Pass return_maps=texture_enhanced_pores,texture_enhanced_blackheads, or texture_enhanced_bw

Base64 image map
04Pigmentation and spots3
分析項目BasicAdvancedPro結果形式
Pigmentation/spot detection
一部対応

Mole/spot presence and confidence

対応

Mole/spot rectangles

対応

Mole/spot rectangles and polygons

Classification; rectangles in Advanced; rectangles and polygons in Pro
Pigmentation severity analysis
要確認

Not listed in the current response schema

要確認

Not listed in the current response schema

対応

melanin fields; maps/outlines require return_maps / return_marks

Area share, concentration/severity, and score; optional map and outline
Mole detection
対応

mole.value / confidence

対応

mole.rectangle

対応

mole.rectangle / polygon / count

Presence and confidence; Advanced adds rectangles; Pro adds polygons
05Acne4
分析項目BasicAdvancedPro結果形式
Acne presence detection
対応

acne.value / confidence

対応

acne.rectangle

対応

Acne types, regions, and counts

Classification and confidence; Advanced/Pro also return region data
Acne-region localization
要確認

Region fields are not listed in the current response schema

対応

Rectangular regions

対応

Rectangles and polygons

Rectangles; Pro also includes polygon coordinates
Acne grading
一部対応

Presence classification only

一部対応

Region boxes; grading fields need confirmation

対応

Comedone, papule, pustule, nodule types and score

Types/severity, regional results, and score
Closed-comedone detection
要確認

Not listed in the current response schema

対応

Rectangular regions

対応

Rectangles, polygons, and counts

Region boxes; Pro also includes polygons and counts
06Sensitivity4
分析項目BasicAdvancedPro結果形式
Redness map
非対応

The Basic request does not expose map parameters

パラメーターが必要

Pass return_maps=red_area

パラメーターが必要

Pass return_maps=red_area

Optional base64 image map
Redness-region localization
要確認

Not listed in the current response schema

要確認

The schema documents only the red_area map

パラメーターが必要

Pass return_marks=sensitivity_mark; sensitivity also requires the red_area map

Region coordinates/outlines; Pro requires annotation request
Sensitive-area size
要確認

Not listed in the current response schema

要確認

Edition comparison and API schema differ

要確認

The current schema does not define an area field

Area or area share
Sensitivity level
要確認

Not listed in the current response schema

要確認

Edition comparison and API schema differ

パラメーターが必要

The sensitivity field requires return_maps=red_area

Severity classification and score
07Aging and wrinkles10
分析項目BasicAdvancedPro結果形式
Skin-age analysis
要確認

Not listed in the current response schema

対応

skin_age.value

対応

skin_age

Skin-age value
Forehead lines/wrinkles
対応

forehead_wrinkle.value / confidence

対応

Forehead-line field; see response for severity details

対応

Severity, score, count/area, and coordinates

Presence and confidence; Advanced/Pro include severity
Facial lines/nasolabial folds
対応

nasolabial_fold.value / confidence

対応

nasolabial_fold.value / confidence

対応

nasolabial_fold and per-side details

Presence classification; Advanced/Pro include severity details
Crow’s feet
対応

crows_feet.value / confidence

対応

crows_feet.value / confidence

対応

Per-eye severity, scores, and coordinates

Presence and confidence; Pro adds severity and coordinates
Under-eye fine lines
対応

eye_finelines.value / confidence

対応

eye_finelines.value / confidence

対応

Per-eye severity, scores, and coordinates

Presence and confidence; Pro adds severity and coordinates
Mouth-corner lines
要確認

Whether this is the same as nasolabial folds needs confirmation

要確認

The schema does not distinguish mouth-corner lines

対応

Per-side severity; coordinates require return_marks

Per-side severity; Pro can return coordinates
Glabellar lines
対応

glabella_wrinkle.value / confidence

対応

glabella_wrinkle.value / confidence

対応

Severity, score, and coordinates

Presence and confidence; Pro adds severity and coordinates
Forehead wrinkles
対応

forehead_wrinkle.value / confidence

対応

forehead_wrinkle.value / confidence

対応

forehead_wrinkle_info / severity / score

Classification and confidence; Pro adds depth, area, and coordinates
Cheek wrinkles
要確認

Not listed in the current response schema

要確認

Not listed in the current response schema

対応

Per-side fields; coordinates require return_marks

Per-side severity, scores, and coordinates
Wrinkle/fine-line counts and area analysis
要確認

Count/area fields are not listed in the current response schema

要確認

Count/area fields are not listed in the current response schema

対応

fine_line, wrinkle_count, wrinkle_area_ratio, etc.; coordinates require return_marks

Counts, area share, severity, and score; annotation coordinates are optional
08Facial features5
分析項目BasicAdvancedPro結果形式
Eyelid type
対応

left/right_eyelids

対応

left/right_eyelids

対応

left/right_eyelids

Per-eye classification and confidence
Eye bags
対応

eye_pouch.value / confidence

対応

eye_pouch.value / confidence

対応

Severity, score, and per-eye regions

Presence classification; Pro adds severity and regions
Dark circles
対応

dark_circle.value / confidence

対応

dark_circle.value / confidence

対応

Type, subtype severity, score; outline requires return_marks

Type and confidence; Pro adds per-eye severity and outlines
Side-profile jawline analysis
非対応

Basic accepts a front image only

非対応

Advanced accepts a front image only

パラメーターが必要

Upload a side-profile image and pass return_side_results=jawline_info

Angle, quality status, and landmark coordinates
Apple-cheek coordinates
要確認

Not listed in the current response schema

要確認

Not listed in the current response schema

パラメーターが必要

Pass return_marks=cheekbone_mark

Left/right coordinates
09Image quality and scores6
分析項目BasicAdvancedPro結果形式
Face coordinates
対応

face_rectangle

対応

face_rectangle

対応

image_quality.face_rect

Face rectangle or landmark coordinates
Face-size ratio
要確認

Not listed in the current response schema

要確認

Not listed in the current response schema

対応

image_quality.face_ratio

Face area ratio in the image
Bangs occlusion ratio
要確認

Not listed in the current response schema

要確認

Not listed in the current response schema

対応

image_quality.hair_occlusion

Occlusion ratio
Face angle
要確認

Not listed in the current response schema

要確認

Not listed in the current response schema

対応

image_quality.face_orientation

yaw / pitch / roll
Glasses detection
要確認

Not listed in the current response schema

要確認

Not listed in the current response schema

対応

image_quality.glasses

Wearing status
Individual feature scores
要確認

Not listed in the current response schema

要確認

Not listed in the current response schema

対応

score_info includes feature scores and total_score

Per-feature scores and total score

クレジットと課金

Basic— クレジット / 成功リクエスト
Advanced— クレジット / 成功リクエスト
Pro— クレジット / 成功リクエスト
3 つのエディションはすべて同期 API です。リクエスト中はクレジットが保留され、成功時に課金、失敗時に解放されます。ここに示すのは API リクエスト 1 回あたりのクレジット数であり、クレジットパッケージの価格ではありません。各 API エンドポイントに設定された料金を使用します。

どのエディションを選ぶべきですか?

Basic

Get foundational skin-analysis classifications and confidence values.

Advanced

Adds skin color, skin age, issue-region rectangles, and an optional redness map.

Pro

Returns rich structured data, detailed regions, optional maps, and side-profile analysis. For left/right jawline, acne, or pigmentation results, upload the corresponding side image and pass return_side_results=jawline_info.

FAQ

3 つのエディションの違いは何ですか?

Basic は基本的な分類と信頼度を返します。Advanced は肌色、肌年齢、問題領域の矩形、任意の赤みマップを追加します。Pro はより詳細な構造化指標、個別スコア、任意の輪郭/マップ、側面結果を定義します。「要確認」の項目は、対応/非対応のいずれも確認されていません。

Advanced と Pro の違いは何ですか?

Advanced は肌色、肌年齢、問題領域の矩形、red_area マップを中心とします。Pro では ITA/HA、領域別指標とスコア、任意のポリゴン/注釈マップ、左右の側面結果も定義されています。任意の出力はドキュメント記載のパラメーターで要求してください。

側面写真に対応していますか?

Pro accepts optional left and right side-profile files. Jawline information requires at least one side image and return_side_results=jawline_info. The current Basic and Advanced request definitions accept only the front image.

可視化マップに対応していますか?

Advanced supports only the redness map via return_maps=red_area. Pro supports the documented map values through return_maps; some outlines/annotations use return_marks. Basic has no map parameter.

3 つのエディションはすべて同期 API ですか?

Yes. Each request waits for analysis and returns the result in that response. They do not use an async queued-submission-and-polling flow.

失敗したリクエストも課金されますか?

Credits are held when analysis is submitted. Successful tasks settle the charge; failed tasks release the hold. Validation errors before task creation do not enter task billing.

Basic から始めて後でアップグレードできますか?

Yes. Switch to the Advanced or Pro endpoint and update the server integration for its parameters, response structure, and credit cost. Response fields differ by edition, so update your parser accordingly.

エンドポイントリファレンス

肌分析 Basic

正面のポートレートから肌タイプ、目元の特徴、しわ、ニキビ、毛穴、黒ずみ、ほくろ、シミなどを検出し、分類と信頼度を返します。

— クレジット / 成功リクエストAPI キーを作成
POST/api/developer/v1/skin-analysis-basic

Content-Type

multipart/form-data

処理中

同期 · 分析結果を返します

Request body · multipart/form-data

Parameter型必須デフォルト説明
imagefileYes—Main portrait; JPG/JPEG, up to 2 MB, resolution above 200×200 and below 4096×4096.
multipart/form-data リクエスト全体 · 展開 / 折りたたみ
#!/usr/bin/env bash
set -euo pipefail
: "${SKINCHECK_API_BASE_URL:?Set SKINCHECK_API_BASE_URL}"
: "${SKINCHECK_API_KEY:?Set SKINCHECK_API_KEY}"

response=$(curl --silent --show-error --connect-timeout 10 --max-time 180 \
  --request POST "${SKINCHECK_API_BASE_URL%/}/api/developer/v1/skin-analysis-basic" \
  --header "skincheck-api-key: ${SKINCHECK_API_KEY}" \
  --form "image=@./portrait.jpg;type=image/jpeg")
if ! jq -e '.error_code == "OK" and .code == 0 and .data.status == "succeeded"' <<< "$response" >/dev/null; then
  jq '{error_code, code, msg, data: {task_id: .data.task_id, status: .data.status, error: .data.error}}' <<< "$response" >&2
  exit 1
fi
jq '.data.result.result' <<< "$response"

Set SKINCHECK_API_BASE_URL and SKINCHECK_API_KEY on your server, and replace the image path with a local JPG/JPEG file. The cURL example requires jq, Python requires requests, PHP requires the cURL extension, and Node.js uses built-in fetch / FormData. The 180-second value is a client read-timeout setting, not the server’s maximum processing time. If the client times out, check Developer Center task history before taking further action; do not retry blindly and create a duplicate request.

画像要件

格式与大小
JPG/JPEG; no more than 2 MB.
分辨率
Both dimensions must be above 200 px and below 4096 px.
人脸尺寸与角度
Recommended face-box side is at least 200 px (160 px calibration minimum); recommended roll, yaw, and pitch are within ±45°.

画像アップロードガイド

Choose a clear, complete front-facing photo

合成イラスト · API テスト結果ではありません

All portraits below are synthetic illustrations showing framing and capture conditions. They do not represent real users or API analysis results. Click an image to enlarge it.

推奨する正面写真

顔全体、目、各パーツがはっきり見えるようにカメラを正面から見てください。均一な照明を使用し、強い影、美肌フィルター、過度なレタッチは避けてください。

Synthetic illustration, not an API test photo.

Conditions to avoid

Dark areas reduce the visibility of details around the eyes and lines; prefer even, clear lighting.
Move hair away from the eyes and other key facial features before taking the photo.
Keep the full face and features visible; avoid obstruction by hands or other objects.

Basic API の定義では、眼鏡が分析に与える影響は確認されていません。反射や重要な部分の隠れを避けるための提案であり、実際の影響は未検証です。

Image dimensions and face-box dimensions

これらは別々の測定値です。画像の幅と高さはアップロードファイルを示し、顔枠の幅と高さは画像内の顔領域を示します。図中のピクセル値は説明用です。

Full image · file pixel dimensions

幅 × 高さ(px)。Basic API の仕様は JPG/JPEG、最大 2 MB、幅と高さがそれぞれ 200 px 超かつ 4096 px 未満です。

Face box · face region in the image

幅 × 高さ(px)。顔枠の各辺は 200 px 以上を推奨し、仕様に記載された較正の最小値は 160 px です。200 px は推奨値であり、ファイル寸法の制限ではありません。

*Illustrative labels only; they are not measurements of this image or API response values. The face_rectangle origin, units, and coordinate mapping need backend confirmation.

Recommended size

Recommended face-box side ≥200 px · Recommendation

Near calibration minimum

Illustrative range: 160–199 px · 160 px calibration minimum

Face too small

Illustration: below 160 px · Avoid submitting

Face boxes are visual illustrations on synthetic portraits, not pixel measurements. They do not establish that the service rejects requests at a specific face-box size.

Face-angle guide

仕様では roll、yaw、pitch をそれぞれ ±45° 以内にすることを推奨しています。これらは頭部姿勢の異なる軸を表すため、混同しないでください。

Facing camera
Head tilts toward one shoulder; recommended within ±45°.
Head turns left or right; recommended within ±45°.
Head tilts up or down; recommended within ±45°.

Angle portraits illustrate the difference between roll, yaw, and pitch; they are not calibrated test images at exactly ±45°.

The response waits for analysis and returns result inline. — credits are charged on success; task_id is for history and follow-up recommendations.

分析が完了するまで接続は維持されます。クライアントに適切な読み取りタイムアウトを設定してください。タイムアウトした場合は、重複送信を避けるため、再試行する前に Developer Center のタスク履歴を確認してください。

Synchronous response fields

A successful Basic request returns the standard envelope and the full underlying result synchronously. Paths reflect the actual nesting: data.result is the raw underlying response, and data.result.result contains the skin-analysis fields. The success example does not use the async queued state.

Back to request
The sample values 0, 0.89, 1, empty strings, and empty arrays illustrate structure only. They are not analysis findings, thresholds, or accuracy claims. The current API reference does not fully define the codes in each detection value; this page does not infer them.

Envelope and task fields

JSONPathカテゴリ型Availability / requiredness説明サンプル
$.error_codeStandard envelopestring現在の成功サンプルに存在。必須かどうかは未確認Business error code in the standard envelope; OK in the success example. Distinct from underlying data.result.error_detail.code.OK
$.codeStandard envelopeinteger現在の成功サンプルに存在。必須かどうかは未確認Standard response envelope code; 0 in the success example.0
$.msgStandard envelopestring現在の成功サンプルに存在。必須かどうかは未確認Standard response envelope message; empty in the success example.""
$.hasnextStandard envelopeinteger現在の成功サンプルに存在。必須かどうかは未確認Pagination flag in the standard response envelope; 0 in this synchronous success example.0
$.lastidStandard envelopestring | integer現在の成功サンプルに存在。必須かどうかは未確認Cursor in the standard response envelope; empty in this synchronous success example.""
$.dataRequest info and statusobject現在の成功サンプルに存在。必須かどうかは未確認Container for task metadata and synchronous result.{ ... }
$.data.task_idRequest info and statusstring現在の成功サンプルに存在。必須かどうかは未確認Task ID associated with this synchronous analysis, used for Developer Center history and follow-up recommendation flows; the Basic result is already returned in this response."TASK_UUID"
$.data.productRequest info and statusstring現在の成功サンプルに存在。必須かどうかは未確認Product identifier; skin_analysis_basic in the Basic example."skin_analysis_basic"
$.data.statusRequest info and statusstring現在の成功サンプルに存在。必須かどうかは未確認Final status for a synchronous task: succeeded or failed; the success example is succeeded."succeeded"
$.data.created_atRequest info and statusinteger現在の成功サンプルに存在。必須かどうかは未確認Task creation time; sample uses Unix seconds.1793840400
$.data.completed_atRequest info and statusinteger | null現在の成功サンプルに存在。必須かどうかは未確認Task completion time; the success sample uses Unix seconds.1793840460
$.data.expires_atRequest info and statusinteger | null現在の成功サンプルに存在。必須かどうかは未確認Result expiration time; successful results return a timestamp under the current retention policy, while failed tasks may be null.1793926860
$.data.resultRequest info and statusobject現在の成功サンプルに存在。必須かどうかは未確認Preserves the complete raw response from the underlying service for synchronous analysis.{ ... }
$.data.result.request_idRequest info and statusstring現在の成功サンプルに存在。必須かどうかは未確認Request identifier from the underlying analysis service; empty in the sample.""
$.data.result.log_idRequest info and statusstring現在の成功サンプルに存在。必須かどうかは未確認Log identifier from the underlying analysis service; empty in the sample.""
$.data.result.error_detailErrors and warningsobject現在の成功サンプルに存在。必須かどうかは未確認Underlying-service error details; separate from top-level error_code / code / msg.{"code":"","code_message":"","message":""}
$.data.result.error_detail.codeErrors and warningsstring現在の成功サンプルに存在。必須かどうかは未確認Underlying error-detail code; empty in the success sample, with enums defined by the underlying service.""
$.data.result.error_detail.code_messageErrors and warningsstring現在の成功サンプルに存在。必須かどうかは未確認Description of the underlying error code; empty in the success sample.""
$.data.result.error_detail.messageErrors and warningsstring現在の成功サンプルに存在。必須かどうかは未確認Underlying error-detail message; empty in the success sample.""
$.data.result.warningErrors and warningsarray現在の成功サンプルに存在。必須かどうかは未確認Underlying-service warning array; empty in the current success sample. Item schema and warning-code meanings are not defined in the Basic docs.[]
$.data.result.face_rectangleFace locationobject現在の成功サンプルに存在。必須かどうかは未確認Face rectangle; coordinate origin, units, and mapping to the uploaded image need backend confirmation.{"top":0,"left":0,"width":0,"height":0}
$.data.result.face_rectangle.topFace locationnumber現在の成功サンプルに存在。必須かどうかは未確認Rectangle position field; origin and units need backend confirmation.0
$.data.result.face_rectangle.leftFace locationnumber現在の成功サンプルに存在。必須かどうかは未確認Rectangle position field; axis direction, origin, and units need backend confirmation.0
$.data.result.face_rectangle.widthFace locationnumber現在の成功サンプルに存在。必須かどうかは未確認Face-rectangle width; units need backend confirmation.0
$.data.result.face_rectangle.heightFace locationnumber現在の成功サンプルに存在。必須かどうかは未確認Face-rectangle height; units need backend confirmation.0
$.data.result.resultAnalysis result fieldsobject現在の成功サンプルに存在。必須かどうかは未確認Container for skin-analysis fields; contains the 19 direct fields listed below.19 fields; see full JSON
$.data.error.codeErrors and warningsstringFailed tasks only; requiredness within failures is unconfirmedPresent only when task status is failed; use the code returned by the failure response.as returned by the failure response

Underlying result fields · data.result.result

Includes every analysis field in the Basic response sample. Search matches field names, paths, child fields, and descriptions.

JSONPathカテゴリType / children必須説明サンプルコピー
$.data.result.result.left_eyelidsEye featuresobject

value, confidence

Present in current success sample; requiredness across all successes is unconfirmedField name is left_eyelids; the value enum and the reference for “left” are not defined in the current docs.{"value":0,"confidence":0.89}
$.data.result.result.right_eyelidsEye featuresobject

value, confidence

Present in current success sample; requiredness across all successes is unconfirmedField name is right_eyelids; the value enum and the reference for “right” are not defined in the current docs.{"value":0,"confidence":0.89}
$.data.result.result.eye_pouchEye featuresobject

value, confidence

Present in current success sample; requiredness across all successes is unconfirmedEye-pouch detection; value and confidence ranges are not defined in the current docs.{"value":0,"confidence":0.89}
$.data.result.result.dark_circleEye featuresobject

value, confidence

Present in current success sample; requiredness across all successes is unconfirmedDark-circle detection; value and confidence ranges are not defined in the current docs.{"value":0,"confidence":0.89}
$.data.result.result.forehead_wrinkleWrinklesobject

value, confidence

Present in current success sample; requiredness across all successes is unconfirmedForehead-wrinkle detection; its enum mapping is not defined in the current docs.{"value":0,"confidence":0.89}
$.data.result.result.crows_feetWrinklesobject

value, confidence

Present in current success sample; requiredness across all successes is unconfirmedCrow’s-feet detection; its enum mapping is not defined in the current docs.{"value":0,"confidence":0.89}
$.data.result.result.eye_finelinesWrinklesobject

value, confidence

Present in current success sample; requiredness across all successes is unconfirmedEye fine-line detection; its enum mapping is not defined in the current docs.{"value":0,"confidence":0.89}
$.data.result.result.glabella_wrinkleWrinklesobject

value, confidence

Present in current success sample; requiredness across all successes is unconfirmedGlabellar-wrinkle detection; its enum mapping is not defined in the current docs.{"value":0,"confidence":0.89}
$.data.result.result.nasolabial_foldWrinklesobject

value, confidence

Present in current success sample; requiredness across all successes is unconfirmedNasolabial-fold detection; its enum mapping is not defined in the current docs.{"value":0,"confidence":0.89}
$.data.result.result.skin_typeSkin typeobject

skin_type, details.0–3.value, details.0–3.confidence

Present in current success sample; requiredness across all successes is unconfirmedSkin-type object containing skin_type and details. The current Basic API documentation does not define the meaning of codes 0–3; do not map them to skin-type names. Each details item 0–3 contains value / confidence, but item meanings also need confirmation.{"skin_type":0,"details":{"0":{"value":1,"confidence":0.89},"1":{"value":1,"confidence":0.89},"2":{"value":1,"confidence":0.89},"3":{"value":1,"confidence":0.89}}}
$.data.result.result.poresPoresobject

value, confidence

Present in current success sample; requiredness across all successes is unconfirmedFull-face pore detection.{"value":0,"confidence":1}
$.data.result.result.pores_foreheadPoresobject

value, confidence

Present in current success sample; requiredness across all successes is unconfirmedForehead pore detection.{"value":0,"confidence":1}
$.data.result.result.pores_left_cheekPoresobject

value, confidence

Present in current success sample; requiredness across all successes is unconfirmedLeft-cheek pore detection.{"value":0,"confidence":1}
$.data.result.result.pores_right_cheekPoresobject

value, confidence

Present in current success sample; requiredness across all successes is unconfirmedRight-cheek pore detection.{"value":0,"confidence":1}
$.data.result.result.pores_jawPoresobject

value, confidence

Present in current success sample; requiredness across all successes is unconfirmedJaw-area pore detection.{"value":0,"confidence":1}
$.data.result.result.blackheadSkin concernsobject

value, confidence

Present in current success sample; requiredness across all successes is unconfirmedBlackhead detection.{"value":0,"confidence":1}
$.data.result.result.acneSkin concernsobject

value, confidence

Present in current success sample; requiredness across all successes is unconfirmedAcne detection.{"value":0,"confidence":1}
$.data.result.result.moleSkin concernsobject

value, confidence

Present in current success sample; requiredness across all successes is unconfirmedMole detection.{"value":0,"confidence":1}
$.data.result.result.skin_spotSkin concernsobject

value, confidence

Present in current success sample; requiredness across all successes is unconfirmedSkin-spot detection.{"value":0,"confidence":1}
Expand complete paths for child fields (46)
JSONPath型Availability説明サンプルコピー
$.data.result.result.left_eyelids.valuenumber現在の成功サンプルに存在。必須かどうかは未確認Raw detection value returned by the underlying service. The current API reference does not define its enum, range, or meaning, so no business interpretation is inferred.0
$.data.result.result.left_eyelids.confidencenumber現在の成功サンプルに存在。必須かどうかは未確認Confidence field returned by the underlying service; the sample is numeric. Its range, interpretation, and whether all detections use the same rule are unconfirmed.0.89
$.data.result.result.right_eyelids.valuenumber現在の成功サンプルに存在。必須かどうかは未確認Raw detection value returned by the underlying service. The current API reference does not define its enum, range, or meaning, so no business interpretation is inferred.0
$.data.result.result.right_eyelids.confidencenumber現在の成功サンプルに存在。必須かどうかは未確認Confidence field returned by the underlying service; the sample is numeric. Its range, interpretation, and whether all detections use the same rule are unconfirmed.0.89
$.data.result.result.eye_pouch.valuenumber現在の成功サンプルに存在。必須かどうかは未確認Raw detection value returned by the underlying service. The current API reference does not define its enum, range, or meaning, so no business interpretation is inferred.0
$.data.result.result.eye_pouch.confidencenumber現在の成功サンプルに存在。必須かどうかは未確認Confidence field returned by the underlying service; the sample is numeric. Its range, interpretation, and whether all detections use the same rule are unconfirmed.0.89
$.data.result.result.dark_circle.valuenumber現在の成功サンプルに存在。必須かどうかは未確認Raw detection value returned by the underlying service. The current API reference does not define its enum, range, or meaning, so no business interpretation is inferred.0
$.data.result.result.dark_circle.confidencenumber現在の成功サンプルに存在。必須かどうかは未確認Confidence field returned by the underlying service; the sample is numeric. Its range, interpretation, and whether all detections use the same rule are unconfirmed.0.89
$.data.result.result.forehead_wrinkle.valuenumber現在の成功サンプルに存在。必須かどうかは未確認Raw detection value returned by the underlying service. The current API reference does not define its enum, range, or meaning, so no business interpretation is inferred.0
$.data.result.result.forehead_wrinkle.confidencenumber現在の成功サンプルに存在。必須かどうかは未確認Confidence field returned by the underlying service; the sample is numeric. Its range, interpretation, and whether all detections use the same rule are unconfirmed.0.89
$.data.result.result.crows_feet.valuenumber現在の成功サンプルに存在。必須かどうかは未確認Raw detection value returned by the underlying service. The current API reference does not define its enum, range, or meaning, so no business interpretation is inferred.0
$.data.result.result.crows_feet.confidencenumber現在の成功サンプルに存在。必須かどうかは未確認Confidence field returned by the underlying service; the sample is numeric. Its range, interpretation, and whether all detections use the same rule are unconfirmed.0.89
$.data.result.result.eye_finelines.valuenumber現在の成功サンプルに存在。必須かどうかは未確認Raw detection value returned by the underlying service. The current API reference does not define its enum, range, or meaning, so no business interpretation is inferred.0
$.data.result.result.eye_finelines.confidencenumber現在の成功サンプルに存在。必須かどうかは未確認Confidence field returned by the underlying service; the sample is numeric. Its range, interpretation, and whether all detections use the same rule are unconfirmed.0.89
$.data.result.result.glabella_wrinkle.valuenumber現在の成功サンプルに存在。必須かどうかは未確認Raw detection value returned by the underlying service. The current API reference does not define its enum, range, or meaning, so no business interpretation is inferred.0
$.data.result.result.glabella_wrinkle.confidencenumber現在の成功サンプルに存在。必須かどうかは未確認Confidence field returned by the underlying service; the sample is numeric. Its range, interpretation, and whether all detections use the same rule are unconfirmed.0.89
$.data.result.result.nasolabial_fold.valuenumber現在の成功サンプルに存在。必須かどうかは未確認Raw detection value returned by the underlying service. The current API reference does not define its enum, range, or meaning, so no business interpretation is inferred.0
$.data.result.result.nasolabial_fold.confidencenumber現在の成功サンプルに存在。必須かどうかは未確認Confidence field returned by the underlying service; the sample is numeric. Its range, interpretation, and whether all detections use the same rule are unconfirmed.0.89
$.data.result.result.skin_type.skin_typenumber現在の成功サンプルに存在。必須かどうかは未確認Skin-type classification code; the mapping for 0–3 is not defined in the current API reference.0
$.data.result.result.skin_type.detailsobject現在の成功サンプルに存在。必須かどうかは未確認Detail object with string keys 0, 1, 2, and 3. Each item contains value and confidence; the meaning of each item is unconfirmed.{"0":{"value":1,"confidence":0.89},"1":{"value":1,"confidence":0.89},"2":{"value":1,"confidence":0.89},"3":{"value":1,"confidence":0.89}}
$.data.result.result.skin_type.details['0'].valuenumber現在の成功サンプルに存在。必須かどうかは未確認Raw value for details key 0; item meaning and value encoding need confirmation.1
$.data.result.result.skin_type.details['0'].confidencenumber現在の成功サンプルに存在。必須かどうかは未確認Confidence for details key 0; its range, interpretation, and relationship to other detection rules need confirmation.0.89
$.data.result.result.skin_type.details['1'].valuenumber現在の成功サンプルに存在。必須かどうかは未確認Raw value for details key 1; item meaning and value encoding need confirmation.1
$.data.result.result.skin_type.details['1'].confidencenumber現在の成功サンプルに存在。必須かどうかは未確認Confidence for details key 1; its range, interpretation, and relationship to other detection rules need confirmation.0.89
$.data.result.result.skin_type.details['2'].valuenumber現在の成功サンプルに存在。必須かどうかは未確認Raw value for details key 2; item meaning and value encoding need confirmation.1
$.data.result.result.skin_type.details['2'].confidencenumber現在の成功サンプルに存在。必須かどうかは未確認Confidence for details key 2; its range, interpretation, and relationship to other detection rules need confirmation.0.89
$.data.result.result.skin_type.details['3'].valuenumber現在の成功サンプルに存在。必須かどうかは未確認Raw value for details key 3; item meaning and value encoding need confirmation.1
$.data.result.result.skin_type.details['3'].confidencenumber現在の成功サンプルに存在。必須かどうかは未確認Confidence for details key 3; its range, interpretation, and relationship to other detection rules need confirmation.0.89
$.data.result.result.pores.valuenumber現在の成功サンプルに存在。必須かどうかは未確認Raw detection value returned by the underlying service. The current API reference does not define its enum, range, or meaning, so no business interpretation is inferred.0
$.data.result.result.pores.confidencenumber現在の成功サンプルに存在。必須かどうかは未確認Confidence field returned by the underlying service; the sample is numeric. Its range, interpretation, and whether all detections use the same rule are unconfirmed.1
$.data.result.result.pores_forehead.valuenumber現在の成功サンプルに存在。必須かどうかは未確認Raw detection value returned by the underlying service. The current API reference does not define its enum, range, or meaning, so no business interpretation is inferred.0
$.data.result.result.pores_forehead.confidencenumber現在の成功サンプルに存在。必須かどうかは未確認Confidence field returned by the underlying service; the sample is numeric. Its range, interpretation, and whether all detections use the same rule are unconfirmed.1
$.data.result.result.pores_left_cheek.valuenumber現在の成功サンプルに存在。必須かどうかは未確認Raw detection value returned by the underlying service. The current API reference does not define its enum, range, or meaning, so no business interpretation is inferred.0
$.data.result.result.pores_left_cheek.confidencenumber現在の成功サンプルに存在。必須かどうかは未確認Confidence field returned by the underlying service; the sample is numeric. Its range, interpretation, and whether all detections use the same rule are unconfirmed.1
$.data.result.result.pores_right_cheek.valuenumber現在の成功サンプルに存在。必須かどうかは未確認Raw detection value returned by the underlying service. The current API reference does not define its enum, range, or meaning, so no business interpretation is inferred.0
$.data.result.result.pores_right_cheek.confidencenumber現在の成功サンプルに存在。必須かどうかは未確認Confidence field returned by the underlying service; the sample is numeric. Its range, interpretation, and whether all detections use the same rule are unconfirmed.1
$.data.result.result.pores_jaw.valuenumber現在の成功サンプルに存在。必須かどうかは未確認Raw detection value returned by the underlying service. The current API reference does not define its enum, range, or meaning, so no business interpretation is inferred.0
$.data.result.result.pores_jaw.confidencenumber現在の成功サンプルに存在。必須かどうかは未確認Confidence field returned by the underlying service; the sample is numeric. Its range, interpretation, and whether all detections use the same rule are unconfirmed.1
$.data.result.result.blackhead.valuenumber現在の成功サンプルに存在。必須かどうかは未確認Raw detection value returned by the underlying service. The current API reference does not define its enum, range, or meaning, so no business interpretation is inferred.0
$.data.result.result.blackhead.confidencenumber現在の成功サンプルに存在。必須かどうかは未確認Confidence field returned by the underlying service; the sample is numeric. Its range, interpretation, and whether all detections use the same rule are unconfirmed.1
$.data.result.result.acne.valuenumber現在の成功サンプルに存在。必須かどうかは未確認Raw detection value returned by the underlying service. The current API reference does not define its enum, range, or meaning, so no business interpretation is inferred.0
$.data.result.result.acne.confidencenumber現在の成功サンプルに存在。必須かどうかは未確認Confidence field returned by the underlying service; the sample is numeric. Its range, interpretation, and whether all detections use the same rule are unconfirmed.1
$.data.result.result.mole.valuenumber現在の成功サンプルに存在。必須かどうかは未確認Raw detection value returned by the underlying service. The current API reference does not define its enum, range, or meaning, so no business interpretation is inferred.0
$.data.result.result.mole.confidencenumber現在の成功サンプルに存在。必須かどうかは未確認Confidence field returned by the underlying service; the sample is numeric. Its range, interpretation, and whether all detections use the same rule are unconfirmed.1
$.data.result.result.skin_spot.valuenumber現在の成功サンプルに存在。必須かどうかは未確認Raw detection value returned by the underlying service. The current API reference does not define its enum, range, or meaning, so no business interpretation is inferred.0
$.data.result.result.skin_spot.confidencenumber現在の成功サンプルに存在。必須かどうかは未確認Confidence field returned by the underlying service; the sample is numeric. Its range, interpretation, and whether all detections use the same rule are unconfirmed.1

Needs backend confirmation: meanings of skin_type and details.0–3; face_rectangle origin, units, and image-coordinate mapping; warning item schema and definitions such as improper_headpose.

Expand / collapse JSON
{
  "error_code": "OK",
  "code": 0,
  "msg": "",
  "data": {
    "task_id": "TASK_UUID",
    "product": "skin_analysis_basic",
    "status": "succeeded",
    "result": {
      "request_id": "",
      "log_id": "",
      "error_detail": {
        "code": "",
        "code_message": "",
        "message": ""
      },
      "warning": [],
      "face_rectangle": {
        "top": 0,
        "left": 0,
        "width": 0,
        "height": 0
      },
      "result": "{19 analysis fields; select “Full JSON” to expand}"
    }
  }
}
JSON 全体をダウンロードThe download always contains every field in the successful response sample.

Error responses use the standard top-level envelope (error_code, code, msg, data). Do not confuse underlying data.result.error_detail with top-level error fields. Sample timestamps are illustrative.

エンドポイントリファレンス

肌分析 Advanced

Advanced は製品画面で利用できる構造化された肌分析データを返します。肌色、肌年齢、検出カテゴリに加え、ニキビ、閉鎖面皰、ほくろ、シミの領域矩形を含む場合があります。オプションで品質チェック、領域の信頼度、赤みマップを制御できます。

— クレジット / 成功リクエストAPI キーを作成
POST/api/developer/v1/skin-analysis-advanced

Content-Type

multipart/form-data

処理中

同期 · 分析結果を返します

Request body · multipart/form-data

Parameter型必須デフォルト説明
imagefileYes—正面メイン画像。JPG/JPEG、最大 5 MB、解像度は 200×200 より大きく 4096×4096 未満。
face_quality_controlintegerNo未传时不在 API 层注入值0:顔画像の品質チェックをスキップ、1:有効化。省略時に API 層は値を設定しません。チェック失敗時の HTTP ステータス、業務コード、レスポンス構造は実際のバックエンドレスポンスで確認が必要です。
return_rect_confidenceintegerNo未传时不在 API 层注入值0:領域の信頼度を要求しない、1:要求する。省略時に API 層は値を設定しません。現在の Advanced レスポンス例には返却フィールドがなく、JSON Path、範囲、未検出時の挙動は実レスポンスで確認が必要です。
return_mapsstringNo未传时不在 API 层注入值現在は red_area のみ受け付けます。省略時に API 層は値を設定しません。記載されたパスは data.result.result.face_maps.red_area ですが、現在のレスポンス例にはありません。Base64 プレフィックス、エンコード、MIME タイプ、寸法、座標対応は実レスポンスで確認が必要です。

Parameter combinations and request / response mapping

Choose a combination to see a complete multipart request in four languages. Unselected options are omitted; no default values are assumed.

Structure example · not a live test

Observe the endpoint behavior when optional fields are omitted.

multipart/form-data リクエスト全体 · 展開 / 折りたたみ
#!/usr/bin/env bash
set -euo pipefail
: "${SKINCHECK_API_BASE_URL:?Set SKINCHECK_API_BASE_URL}"
: "${SKINCHECK_API_KEY:?Set SKINCHECK_API_KEY}"

http_status=$(curl --silent --show-error --connect-timeout 10 --max-time 180 \
  --output response.json --write-out '%{http_code}' \
  --request POST "${SKINCHECK_API_BASE_URL%/}/api/developer/v1/skin-analysis-advanced" \
  --header "skincheck-api-key: ${SKINCHECK_API_KEY}" \
  --form 'image=@./portrait.jpg;type=image/jpeg' \
  )
if [[ "$http_status" -lt 200 || "$http_status" -ge 300 ]] || ! jq -e '.error_code == "OK" and .code == 0 and .data.status == "succeeded"' response.json >/dev/null; then
  jq '{error_code, code, msg, data: {status: .data.status, error_detail: .data.result.error_detail, error: .data.error}}' response.json >&2 || cat response.json >&2
  exit 1
fi
jq '.data.result.result' response.json
ScenarioFields sentResponse path / what to inspect
A · Image onlyimagedata.result.result; defaults for omitted options are determined by the upstream service.
B · Enable face-quality controlimage · face_quality_controlRead data.result.result on success; failure code and shape need confirmation.
C · Region confidence + redness mapimage · return_rect_confidence · return_mapsRectangle paths appear in the sample; confidence paths and face_maps.red_area encoding need confirmation.
D · All optional parametersimage · face_quality_control · return_rect_confidence · return_mapsSame paths as individual options; compare actual response changes without assuming every field will appear.

All examples read credentials from SKINCHECK_API_KEY and SKINCHECK_API_BASE_URL. cURL, Python, PHP, and Node.js check HTTP and the standard response envelope, then read data.result.result on success.

画像要件

格式与大小
JPG/JPEG; no more than 5 MB.
分辨率
Both dimensions must be above 200 px and below 4096 px.
人脸尺寸与质量
Recommended face-box side is above 400 px. Avoid occlusion, blur, overexposure, low light, and backlight; recommended yaw ≤ ±30° and pitch ≤ ±40°.

画像品質ガイド

活用しやすい構造化結果を得るための画像準備

合成イラスト · API テスト結果ではありません

以下のポートレートは、同じ架空の成人欧米人女性を描いた合成イラストです。撮影品質を説明するもので、実在の人物、API テスト、分析結果を示すものではありません。クリックすると拡大できます。

Recommended front portrait

Face the camera with a full face and clear features. Use even lighting and avoid strong shadows, beauty filters, or heavy retouching.

Use a clear original as the upload; see the request table for enforced file limits.

Image dimensions and face size

Image width and height describe the uploaded file. Face-box width and height describe the face region inside it; these measurements are separate.

Full image: width × height (px)Face box: width × height (px)640 px* (示意 / illustrative)

API の制限
JPG/JPEG、5 MB 以下、幅と高さがそれぞれ 200 px 超かつ 4096 px 未満。

Face-box recommendation
各辺 400 px 超を推奨します。これは目安であり、API の確定した制限ではありません。

顔が小さいと見えるディテールが少なくなります。このイラストは API のしきい値を定義するものではありません。
Move closer while keeping the full face and head in frame.

照明の比較

露出不足では細部が見えにくくなり、露出過多では肌の質感が失われ、逆光では顔が影になります。均一な照明は見えるディテールの保持に役立ちます。成功率についての主張はありません。

Recommended · Even light
Avoid · Low light
Texture contrast is reduced in highlights.
Facial shadows obscure local features.

遮蔽の比較

目にかかる髪や、顔のパーツを覆う手・物を避けてください。Advanced API の仕様では眼鏡の影響は確定していません。検証までは反射を避けるための予防策として扱ってください。

Avoid · Hair over eyes
Avoid · Object occlusion

Face angle

Yaw は頭部の左右回転(推奨 ≤±30°)、Pitch は上下の傾き(推奨 ≤±40°)です。それぞれ別の軸です。

Front reference
yaw · Left/right turn
pitch · Up/down tilt

画像出典:本プロジェクトで生成した架空の成人欧米人ポートレートの合成画像で、教育用イラストとして表示しています。実際のユーザー画像や API テスト結果ではありません。

The response waits for analysis and returns result inline. — credits are charged on success; task_id is for history and follow-up recommendations.

分析が完了するまで接続は維持されます。クライアントに適切な読み取りタイムアウトを設定してください。タイムアウトした場合は、重複送信を避けるため、再試行する前に Developer Center のタスク履歴を確認してください。

Advanced synchronous response fields

The Developer API wraps the result in the standard data task envelope; the upstream Advanced JSON is preserved under data.result. The table follows the current repository sample and marks conditional outputs and unresolved details explicitly.

Schema boundary: the current Advanced JSON sample contains neither confidence fields for return_rect_confidence nor face_maps.red_area. This page does not invent unknown fields, image formats, or analysis output.

GroupJSON Path型MeaningCondition
レスポンス形式error_codestringBusiness error code; the success sample is OK.始终返回 / Always present
レスポンス形式codeintegerGeneral response code; the success sample is 0.始终返回 / Always present
レスポンス形式msgstringResponse message.始终返回 / Always present
レスポンス形式hasnextintegerPagination marker; the synchronous sample is 0.始终返回 / Always present
レスポンス形式lastidstringPagination cursor; the synchronous sample is an empty string.始终返回 / Always present
Task metadatadataobjectSynchronous task metadata, status, and analysis result.始终返回 / Always present
Task metadatadata.task_idstringAnalysis task ID.始终返回 / Always present
Task metadatadata.productstringProduct identifier; Advanced is skin_analysis_advanced.始终返回 / Always present
Task metadatadata.statusstringSynchronous result status; succeeded on success and failed on failure.始终返回 / Always present
Task metadatadata.created_atnumberTask creation time (Unix seconds).始终返回 / Always present
Task metadatadata.completed_atnumber | nullAnalysis completion time (Unix seconds).响应可能为 null / May be null
Task metadatadata.expires_atnumber | nullResult expiry metadata (Unix seconds).响应可能为 null / May be null
Upstream responsedata.resultobjectThe original JSON result from the underlying Advanced service.成功时 / On success
Upstream responsedata.result.request_idstringUpstream request ID.当前结构样例 / In current sample
Upstream responsedata.result.log_idstringUpstream log ID.当前结构样例 / In current sample
Errors and warningsdata.result.error_detailobjectUpstream error detail with code, code_message, and message; distinct from top-level error_code.当前结构样例 / In current sample
Errors and warningsdata.result.warningarrayUpstream warnings; empty in the current sample.可能为空 / May be empty
Face localizationdata.result.face_rectangleobjectFace box with top, left, width, and height; origin, units, and boundary rules need backend confirmation.当前结构样例 / In current sample
Skin color and agedata.result.result.skin_colorobjectSkin-color detection object with value and confidence.当前结构样例 / In current sample
Skin color and agedata.result.result.skin_age.valuenumberSkin-age result; units and classification are not defined in the current sample.当前结构样例 / In current sample
Eye featuresdata.result.result.left_eyelids / right_eyelidsobjectLeft and right eyelid types and confidence.当前结构样例 / In current sample
Eye featuresdata.result.result.eye_pouch / dark_circleobjectEye-pouch and dark-circle values and confidence.当前结构样例 / In current sample
Wrinklesdata.result.result.forehead_wrinkle / crows_feet / eye_finelines / glabella_wrinkle / nasolabial_foldobjectForehead wrinkles, crow’s feet, eye fine lines, glabellar lines, and nasolabial folds; the sample contains value and confidence.当前结构样例 / In current sample
Skin type and poresdata.result.result.skin_type.skin_typeintegerSkin-type classification code; the current response sample does not define the code mapping.当前结构样例 / In current sample
Skin type and poresdata.result.result.skin_type.details.*.value / confidenceobjectEach indexed detail has value and confidence; the meaning of each index needs confirmation.当前结构样例 / In current sample
Skin type and poresdata.result.result.pores_forehead / pores_left_cheek / pores_right_cheek / pores_jaw / blackheadobjectRegional pore and blackhead values and confidence.当前结构样例 / In current sample
Issue regionsdata.result.result.acne.rectangle[]array<object>Acne detection rectangle array; each entry contains top, left, width, and height.当前结构样例 / In current sample
Issue regionsdata.result.result.closed_comedones.rectangle[]array<object>Closed-comedone rectangle array; each entry contains top, left, width, and height.当前结构样例 / In current sample
Issue regionsdata.result.result.mole.rectangle[]array<object>Mole rectangle array; each entry contains top, left, width, and height.当前结构样例 / In current sample
Issue regionsdata.result.result.skin_spot.rectangle[]array<object>Skin-spot rectangle array; each entry contains top, left, width, and height.当前结构样例 / In current sample
Parameter-dependent outputdata.result.result.*.confidence (for rectangles)not confirmedThe current Advanced sample does not show this field for return_rect_confidence=1; paths, range, and empty-result behavior need confirmation from a real response.待真实响应 / Awaiting real response
Parameter-dependent outputdata.result.result.face_maps.red_areaBase64 image (documented)Documented as conditional on return_maps=red_area; absent from the current sample. Encoding and Data URL prefix are not confirmed.条件返回 / Conditional
Expand complete synchronous response JSON
Advanced success response shape (illustrative)
{
  "error_code": "OK",
  "code": 0,
  "msg": "",
  "hasnext": 0,
  "lastid": "",
  "data": {
    "task_id": "TASK_UUID",
    "product": "skin_analysis_advanced",
    "status": "succeeded",
    "created_at": 1793840400,
    "completed_at": 1793840460,
    "expires_at": 1793926860,
    "result": {
      "request_id": "",
      "log_id": "",
      "error_detail": {
        "code": "",
        "code_message": "",
        "message": ""
      },
      "warning": [],
      "face_rectangle": {
        "top": 0,
        "left": 0,
        "width": 0,
        "height": 0
      },
      "result": {
        "skin_color": {
          "value": 0,
          "confidence": 0.89
        },
        "skin_age": {
          "value": 9
        },
        "left_eyelids": {
          "value": 0,
          "confidence": 0.89
        },
        "right_eyelids": {
          "value": 0,
          "confidence": 0.89
        },
        "eye_pouch": {
          "value": 0,
          "confidence": 0.89
        },
        "dark_circle": {
          "value": 0,
          "confidence": 0.89
        },
        "forehead_wrinkle": {
          "value": 0,
          "confidence": 0.89
        },
        "crows_feet": {
          "value": 0,
          "confidence": 0.89
        },
        "eye_finelines": {
          "value": 0,
          "confidence": 0.89
        },
        "glabella_wrinkle": {
          "value": 0,
          "confidence": 0.89
        },
        "nasolabial_fold": {
          "value": 0,
          "confidence": 0.89
        },
        "skin_type": {
          "skin_type": 0,
          "details": {
            "0": {
              "value": 1,
              "confidence": 0.89
            },
            "1": {
              "value": 1,
              "confidence": 0.89
            },
            "2": {
              "value": 0,
              "confidence": 0.01
            },
            "3": {
              "value": 0,
              "confidence": 0.01
            }
          }
        },
        "pores_forehead": {
          "value": 0,
          "confidence": 1
        },
        "pores_left_cheek": {
          "value": 0,
          "confidence": 1
        },
        "pores_right_cheek": {
          "value": 0,
          "confidence": 1
        },
        "pores_jaw": {
          "value": 0,
          "confidence": 1
        },
        "blackhead": {
          "value": 0,
          "confidence": 1
        },
        "acne": {
          "rectangle": [
            {
              "width": 3,
              "top": 17,
              "height": 1,
              "left": 35
            },
            {
              "width": 4,
              "top": 20,
              "height": 1,
              "left": 35
            }
          ]
        },
        "closed_comedones": {
          "rectangle": [
            {
              "width": 3,
              "top": 17,
              "height": 1,
              "left": 35
            },
            {
              "width": 4,
              "top": 20,
              "height": 1,
              "left": 35
            }
          ]
        },
        "mole": {
          "rectangle": [
            {
              "width": 3,
              "top": 17,
              "height": 1,
              "left": 35
            },
            {
              "width": 4,
              "top": 20,
              "height": 1,
              "left": 35
            }
          ]
        },
        "skin_spot": {
          "rectangle": [
            {
              "width": 3,
              "top": 17,
              "height": 1,
              "left": 35
            },
            {
              "width": 4,
              "top": 20,
              "height": 1,
              "left": 35
            }
          ]
        }
      }
    }
  }
}

Values illustrate field shape only and are not analysis results. Rectangle values and timestamps are not from a live API test.

REGION COORDINATE GUIDE

Map structured region results into your interface

The Advanced sample contains rectangle arrays for acne, closed_comedones, mole, and skin_spot; each entry has top, left, width, and height. These values can drive local callouts, filtering, or region detail views. The backend has not confirmed origin, units, normalization, or boundary rules, so the diagram explains the fields without overlaying fabricated detections on a portrait.

topleftwidthheightCoordinate reference must follow backend field definition

Not to scale. It does not establish a top-left origin or pixel units.

data.result.result.acne.rectangle[]

{
  "width": 3,
  "top": 17,
  "height": 1,
  "left": 35
}

Rectangle values reproduce the repository’s structural sample, not a real detection. Confirm coordinate conversion before integration.

Canvas multi-region drawing template (coordinate transform must be confirmed)
JavaScript Canvas
// The API coordinate mapping must be confirmed before drawing.
// Supply a transform that converts an API rectangle to source-image pixels.
function drawRectangles(ctx, rectanglesByType, imageSize, canvasSize, toImagePixels) {
  if (typeof toImagePixels !== "function") {
    throw new Error("Confirm coordinate units and origin before drawing");
  }
  const scaleX = canvasSize.width / imageSize.width;
  const scaleY = canvasSize.height / imageSize.height;
  const colors = { acne: "#d94841", closed_comedones: "#a14fc2", mole: "#2d79c7", skin_spot: "#bd7b20" };
  ctx.clearRect(0, 0, canvasSize.width, canvasSize.height);
  for (const [type, rectangles] of Object.entries(rectanglesByType)) {
    ctx.strokeStyle = colors[type] || "#263b37";
    ctx.lineWidth = 2;
    for (const rectangle of rectangles || []) {
      const box = toImagePixels(rectangle, imageSize);
      if (!box) continue;
      ctx.strokeRect(box.left * scaleX, box.top * scaleY, box.width * scaleX, box.height * scaleY);
    }
  }
}

The template scales from the image naturalWidth/naturalHeight to canvas size. The integrator must implement toImagePixels from the confirmed backend units, origin, and boundary rules. Without that mapping, drawing stops.

Redness map · Base64 output

After requesting return_maps=red_area, the documented path is data.result.result.face_maps.red_area. The current Advanced response sample has no map field, so this page does not show a fabricated map or overlay.

No verifiable red_area sample yet

A real response is required to confirm encoding, dimensions, transparency, and alignment with the source image.

Browser: validate, detect format, preview / download
function showRedArea(data, imageElement, onStatus) {
  const raw = data?.result?.result?.face_maps?.red_area;
  if (typeof raw !== "string" || !raw.trim()) {
    onStatus("No red_area was returned; check return_maps=red_area.");
    return () => {};
  }
  try {
    const match = raw.trim().match(/^data:([^;,]+)?;base64,(.+)$/s);
    const base64 = match ? match[2] : raw.trim();
    const bytes = Uint8Array.from(atob(base64), char => char.charCodeAt(0));
    const starts = (...signature) => signature.every((byte, index) => bytes[index] === byte);
    const mime = match?.[1] || (starts(0xff, 0xd8, 0xff) ? "image/jpeg"
      : starts(0x89, 0x50, 0x4e, 0x47) ? "image/png"
      : String.fromCharCode(...bytes.slice(0, 4)) === "RIFF" && String.fromCharCode(...bytes.slice(8, 12)) === "WEBP" ? "image/webp" : "");
    if (!mime) throw new Error("Unsupported or unknown image encoding");
    const url = URL.createObjectURL(new Blob([bytes], { type: mime }));
    imageElement.src = url;
    imageElement.onerror = () => { URL.revokeObjectURL(url); onStatus("Map image could not be decoded."); };
    imageElement.onload = () => onStatus("Map loaded; confirm image dimensions and alignment before overlay.");
    return () => URL.revokeObjectURL(url);
  } catch (error) {
    onStatus(error.message || "Invalid Base64 image data.");
    return () => {};
  }
}
Node.js: decode and save using detected format
import { writeFile } from "node:fs/promises";

function decodeImage(base64Value) {
  const match = base64Value.trim().match(/^data:([^;,]+)?;base64,(.+)$/s);
  const encoded = match ? match[2] : base64Value.trim();
  const bytes = Buffer.from(encoded, "base64");
  const mime = match?.[1]
    || (bytes[0] === 0xff && bytes[1] === 0xd8 && bytes[2] === 0xff ? "image/jpeg"
    : bytes.subarray(0, 4).toString() === "RIFF" && bytes.subarray(8, 12).toString() === "WEBP" ? "image/webp"
    : bytes.subarray(0, 4).equals(Buffer.from([0x89, 0x50, 0x4e, 0x47])) ? "image/png" : null);
  if (!mime || !bytes.length) throw new Error("Empty or unsupported image data");
  const ext = { "image/jpeg": "jpg", "image/png": "png", "image/webp": "webp" }[mime];
  if (!ext) throw new Error("Unsupported MIME type: " + mime);
  return { bytes, mime, ext };
}

const value = response.data?.result?.result?.face_maps?.red_area;
if (!value) throw new Error("red_area missing; request return_maps=red_area");
const { bytes, ext } = decodeImage(value);
await writeFile("red-area." + ext, bytes);

The snippets accept bare Base64 and Data URL input and identify JPEG/PNG/WebP from byte signatures; they do not assume the service returns a particular format. Successful decoding does not prove alignment or matching dimensions; inspect naturalWidth/naturalHeight before overlaying.

エンドポイントリファレンス

肌分析 Pro

構造化された肌分析データを同期的に返します。マップ、領域アノテーション、スコア、左右の側面結果を任意で要求でき、製品内の分析レポート作成に利用できます。成功結果はタスク履歴にも保存されます。

— クレジット / 成功リクエストAPI キーを作成

Pro レポートの全体例を見る

Explore the complete report: overview, analysis visuals, and care plan.

レポート例を見る
POST/api/developer/v1/skin-analysis-pro

Content-Type

multipart/form-data

処理中

同期 · 分析結果を返します

Request body · multipart/form-data

Parameter型必須デフォルト説明
imagefileYes无(必填)正面メイン画像ファイル。JPEG/JPG、最大 8 MB、解像度は 200×200 より大きく 4096×4096 未満。
left_side_imagefileNo未提供时不分析左侧脸任意の左側面画像ファイル。JPEG/JPG、最大 8 MB。
right_side_imagefileNo未提供时不分析右侧脸任意の右側面画像ファイル。JPEG/JPG、最大 8 MB。
return_mapsstringNo未传时不请求额外图层Comma-separated. Options: red_area, brown_area, texture_enhanced_pores, texture_enhanced_blackheads, texture_enhanced_oily_area, texture_enhanced_lines, water_area, rough_area, roi_outline_map, texture_enhanced_bw, right_roi_outline_map, left_roi_outline_map. Requests visual maps returned as base64 values in face_maps.
return_marksstringNo未传时不请求额外标注Comma-separated. Options: wrinkle_mark, right_nasolabial_list, right_mouth_list, right_eye_wrinkle_list, right_crowsfeet_list, right_cheek_list, left_nasolabial_list, left_mouth_list, left_eye_wrinkle_list, left_crowsfeet_list, left_cheek_list, glabella_wrinkle_list, forehead_wrinkle_list, dark_circle_outline, sensitivity_mark, melanin_mark, cheekbone_mark. Frontal paths use data.result.result.<field>; inspect the actual return for each exact structure.
return_side_resultsstringNo未传时不返回侧脸扩展结果オプション:jawline_info。使用するには側面画像を 1 枚以上アップロードしてください。
roi_outline_colorstring (JSON)No底层默认色值(见说明)JSON string configuring ROI outline colors by category. Use the listed keys and six hexadecimal digits without #. Defaults: pores 0000FF, blackheads FF0000, wrinkles 6E9900, fine lines 8DFE2A, closed comedones 00FF00, pustules 9F21F6, nodules FF00FD, acne FE0100, brown spots 7E2A28.

Skin Analysis Pro parameter details

Based on the locally archived Skin Analyze Pro V1.7.6 request reference. Optional outputs are not requested by default; pass comma-separated field names as needed.

Generate skincare advice from analysis data

1

Upload multi-view portraits

Front, optional left/right profiles

2

Call Pro synchronously

Wait for analysis in the same response

3

Compose report data

Maps, region marks, scores, structured fields

4

Continue to skincare advice

Pass the full data from the successful response

// Keep the complete data object from a successful Pro response.
const skin_analysis_data = proResponse.data;
// Send skin_analysis_data to the Skincare Advice API.

The skincare advice API does not accept only a task_id; do not extract or re-wrap data.result.

Optional output request example
curl -X POST "$API_BASE_URL/api/developer/v1/skin-analysis-pro" \
  -H "skincheck-api-key: $SKINCHECK_API_KEY" \
  -F "image=@./portrait.jpg;type=image/jpeg" \
  -F "return_maps=red_area,texture_enhanced_pores,roi_outline_map" \
  -F "return_marks=wrinkle_mark,dark_circle_outline,melanin_mark" \
  -F "return_side_results=jawline_info" \
  -F 'roi_outline_color={"pores_color":"0000FF","acne_color":"FE0100"}'

Add optional fields to multipart/form-data as needed. Use left_side_image and right_side_image for profile images. Omit maps, marks, or color overrides you do not need.

Request configurator · choose outputs

Optional outputs are off by default. Select maps, marks, side results, or color overrides, then copy the fields or use the existing API tester.

return_maps · 12 maps
return_marks · 17 marks
return_side_results
roi_outline_color · color overrides

Blank keeps the backend default; overrides are six hex RGB digits without #.

curl -X POST "$SKINCHECK_API_BASE_URL/api/developer/v1/skin-analysis-pro" \
  -H "skincheck-api-key: $SKINCHECK_API_KEY" \
  -F "image=@./portrait.jpg;type=image/jpeg"

Set SKINCHECK_API_BASE_URL and SKINCHECK_API_KEY server-side. Successful analysis is at data.result.result.

Map selection and preview

Frontal map path: data.result.result.face_maps.<map_name>. Profile outlines are under data.result.left_side_result / right_side_result face_maps. Transparent PNGs overlay the matching frontal photo; white-background and cropped maps are shown alone. No paired profile-photo sample is available.

This map is not present in the full response sample.

texture_enhanced_pores

transparent PNG overlay

Source + transparent PNG

Samples illustrate output formats, not guaranteed fields. Actual output depends on return_maps. Map-to-source alignment still needs backend confirmation.

Region annotations and coordinates

Inspect point sets and rectangles from a historical JSON field, overlaid on its source photo as a structure illustration. This view does not confirm the coordinate contract.

result.wrinkle_mark

Historical sample contains 0 rectangles and 0 point sets; up to 100 shapes are drawn.

Field absent from this sample.
Backend confirmation needed: coordinate units, origin, and mapping to each map. Rectangles and points are drawn as recorded in the historical sample; do not use this as a general production transform until confirmed.
enhanced_bw_info · cropped enhanced-image coordinate transform

The source describes a separate transform for the enhanced black-and-white crop: x_enhance=(x_img-left)×ratio, y_enhance=(y_img-top)×ratio; inverse: x_img=x_enhance/ratio+left, y_img=y_enhance/ratio+top.

Use only when enhanced_bw_info exists and ratio is finite and positive; do not apply to other maps.

function toEnhanced(x, y, info) {
  if (!Number.isFinite(info?.ratio) || info.ratio <= 0) throw new Error('Invalid ratio');
  return { x: (x - info.left) * info.ratio, y: (y - info.top) * info.ratio };
}
Sample portraits and result JSON

These four examples come from the Skin Analyze Pro reference. Download the JSON to inspect the full result structure; image URLs in historical samples may have expired.

Version history
DateVersionChanges
2024-08-06V1.7.6Added side-face acne and pigmentation detection parameters.
2023-07-28V1.7.1Added standard jawline-angle assessment.
2023-06-14V1.6.6Added glasses detection and regional pore/dark-circle scores; updated their total-score logic.
2023-04-05V1.6.2Added image-quality checks (face ratio, coordinates, bangs, angle) and side-profile results.
2023-02-17V1.5.1Added moisture, sensitivity, pigmentation, wrinkle, roughness and scoring features, plus contour coordinates and custom colors.
return_maps · Image maps
値Meaning and output
red_areaFacial redness or sensitivity; white background with darker red indicating stronger intensity.
brown_areaFacial pigmentation areas on a white background.
texture_enhanced_poresPore overlay; transparent PNG at original image size.
texture_enhanced_blackheadsBlackhead overlay; transparent PNG at original image size.
texture_enhanced_oily_areaOily-area overlay; transparent PNG at original image size.
texture_enhanced_linesDeep and fine wrinkle overlay; transparent PNG at original image size.
water_areaDryness map; white background PNG, with darker blue indicating more dehydration.
rough_areaSkin roughness map on a white background.
roi_outline_mapPigmentation and acne outlines; transparent PNG at original image size.
texture_enhanced_bwEnhanced blackhead and pore image; cropped JPG. Use enhanced_bw_info rectangle and ratio to map coordinates to the original image.
right_roi_outline_map / left_roi_outline_mapRight/left pigmentation and acne outlines; transparent PNG at original image size.
return_marks · Region coordinates and marks
値Returned data
wrinkle_markWrinkle contour coordinates for forehead, nose, crow’s feet, cheeks, and glabella.
right_nasolabial_list / left_nasolabial_listCoordinates, depth, and length of left/right nasolabial folds.
right_mouth_list / left_mouth_listCoordinates, depth, and length of left/right mouth-corner wrinkles.
right_eye_wrinkle_list / left_eye_wrinkle_listCoordinates of wrinkles around the left/right eyes.
right_crowsfeet_list / left_crowsfeet_listCoordinates, depth, and length of left/right crow’s feet.
right_cheek_list / left_cheek_listCoordinates, depth, and length of left/right cheek wrinkles.
glabella_wrinkle_list / forehead_wrinkle_listCoordinates, depth, and length of glabella and forehead wrinkles.
dark_circle_outlineLeft and right under-eye dark-circle contour coordinates.
sensitivity_mark / melanin_markCoordinates of redness/sensitivity and pigmentation regions.
cheekbone_markCoordinates for left and right cheekbone/apple-cheek regions.
roi_outline_color · Outline colors
JSON keyデフォルトApplies to
pores_color0000FFPore map
blackhead_colorFF0000Blackhead map
wrinkle_color6E9900Deep wrinkle map
fine_line_color8DFE2AFine-line map
closed_comedones_color00FF00Closed-comedone outlines
acne_pustule_color9F21F6Pustule outlines
acne_nodule_colorFF00FDNodule outlines
acne_colorFE0100Papule outlines
brown_spot_color7E2A28Pigmentation and brown-spot outlines

Send a JSON string. Colors use six hexadecimal RGB digits without #; either case is accepted. Override only the keys you need; other keys keep their defaults. Colors apply to outlines in return_maps outputs.

return_side_results · Side profile and jawline

Pass jawline_info and upload a left or right profile file to receive the corresponding left_side_result or right_side_result. Upload both for both sides. jawline_quality: 1 = accepted (profile angle 20°–120°, angle and landmarks returned); 2 = too low (<20°); 3 = too high (>120°); 4 = no face detected; 5 = invalid face; 6 = other. jawline_angle_level: 0 = standard (116°–120°); 1 = non-standard.

Side results may be JSON strings; check the type and JSON.parse strings before reading fields. Coordinates are relative to the image.

Image quality recommendations (not additional request fields): aim for a face-box side length above 400 px in the main image and a near-frontal angle (yaw within ±30°, pitch within ±40°); avoid blur, occlusion, overexposure, backlight, and underexposure. image_quality may include face_ratio, face_orientation (yaw/pitch/roll), face_rect, hair_occlusion, and glasses for client-side quality guidance.

画像要件

提交方式
Upload the main and side-profile images as files; do not pass image URLs.
格式与大小
JPEG/JPG; no more than 8 MB per image.
分辨率
Both dimensions must be above 200 px and below 4096 px.
人脸尺寸
A face-box side above 400 px is recommended for the main image.

The response waits for analysis and returns result inline. — credits are charged on success; task_id is for history and follow-up recommendations.

分析が完了するまで接続は維持されます。クライアントに適切な読み取りタイムアウトを設定してください。タイムアウトした場合は、重複送信を避けるため、再試行する前に Developer Center のタスク履歴を確認してください。

Full Pro synchronous response JSON · load on demandAbout 1.6 MB
{
  "error_code": "OK",
  "code": 0,
  "msg": "",
  "data": {
    "task_id": "TASK_UUID",
    "product": "skin_analysis_pro",
    "status": "succeeded",
    "result": {
      "error_code": "OK",
      "error_detail": null,
      "face_rectangle": { "top": 0, "left": 0, "width": 0, "height": 0 },
      "result": {
        "score_info": { "total_score": 0 },
        "face_maps": { "[requested map key]": "[base64 image]" }
      },
      "left_side_result": null,
      "right_side_result": null
    }
  }
}
JSON 全体をダウンロード
Skin Analysis Pro · synchronous response data.result
フィールド型説明
error_code / code / msgstring / integer / string外側の API 結果:error_code OK と code 0 は成功を示し、msg はメッセージ本文です。
hasnext / lastidinteger / string同期 Pro レスポンスの外側に保持される一般的なページネーションメタデータです。
dataobject同期タスクと分析結果のコンテナです。Pro 分析の成功結果は data.result.result にあります。
data.task_id / product / statusstringタスク ID、製品識別子、タスクステータスです。同期処理で、成功時のステータスは succeeded です。
data.created_at / completed_at / expires_atstringタスクの作成時刻、完了時刻、結果の有効期限です。
data.result.error_code / error_detail / log_id / request_idstring / object / string分析サービスの結果コード、エラー詳細、リクエスト追跡 ID です。HTTP ステータス、外側の code/error_code、タスクステータスを確認してください。
data.result.face_rectangleobjecttop、left、width、height を含む顔の矩形です。
data.result.resultobject肌タイプ、検出結果、スコア、マップ、補正画像のメタデータを含む Pro 分析の主要オブジェクトです。
resultobject肌分析結果の主要オブジェクトです。以下の result.* フィールドはこのオブジェクトを基準とします。
result.image_qualityJSON string / objectface_ratio、face_orientation(yaw/pitch/roll)、face_rect、hair_occlusion、glasses を含みます。スキーマでは JSON 文字列と記載されています。実際に返された型に応じて解析してください。
result.skin_type / oily_intensity / waterobject肌タイプと信頼度、T ゾーン・頬・顎・顔全体の皮脂、乾燥領域と範囲です。肌タイプ:0 脂性、1 乾燥、2 普通、3 混合。
result.skintone / skintone_ita / skin_hue_haobject肌色カテゴリ、ITA 肌色分類、HA 色相分類です。照明が不適切な場合、異常/その他のカテゴリになることがあります。
result.blackhead / blackhead_count / enlarged_pore_count / pores_* / roughobject / integer黒ずみの数、領域別の毛穴数と重症度、領域別の肌の粗さの面積と重症度です。
result.melanin / melanin_mark / mole / brown_spot / melasma / freckleobject色素領域と濃度、ほくろ、茶色いシミ、肝斑、そばかすの検出結果です。件数、信頼度、矩形、ポリゴン座標を含む場合があります。
result.acne / acne_pustule / acne_nodule / acne_mark / closed_comedonesobjectニキビ、膿疱、結節、ニキビ跡、閉鎖面皰の検出結果です。通常、スコア、件数、信頼度、矩形、ポリゴンを含みます。
result.sensitivity / sensitivity_markobject敏感度/赤みの重症度、面積、関連座標です。
result.skin_age / forehead_wrinkle / crows_feet / eye_finelines / glabella_wrinkle / nasolabial_fold / …object肌年齢、シワ領域、重症度、数、長さ、深さ、マーク座標です。具体的なフィールドは検出結果によって異なります。
result.eye_pouch / dark_circle / *_severity / *_rectangle / dark_circle_markobject目袋の有無/重症度、クマの種類/重症度、左右の目の枠、輪郭マークです。
result.score_infoobjectdark_circle_score, skin_type_score, wrinkle_score, oily_intensity_score, pores_score, blackhead_score, acne_score, sensitivity_score, melanin_score, water_score, rough_score, total_score, plus regional pore and dark-circle scores.
result.face_mapsobject · base64要求されたマップのみを含み、値は Base64 画像データです。マップの定義は上記の return_maps を参照してください。
result.enhanced_bw_infoobject補正画像の切り抜き矩形 left/top/width/height と比率です。座標は x_enhance=(x_img-left)×ratio、y_enhance=(y_img-top)×ratio で変換します。
data.result.left_side_result / right_side_resultobject / JSON stringreturn_side_results=jawline_info を指定した場合、対応する側面写真について返されます。サンプルはオブジェクトですが、API リファレンスでは JSON 文字列も許可されています。両方の型に対応してください。顎のライン、ニキビ/色素の結果、任意の face_maps を含む場合があります。

Handle object and JSON-string values

function parseJsonValue(value) {
  if (typeof value !== 'string') return value;
  try { return JSON.parse(value); } catch { return value; }
}
const analysis = response.data?.result?.result;
const imageQuality = parseJsonValue(analysis?.image_quality);
const leftSide = parseJsonValue(response.data?.result?.left_side_result);
const rightSide = parseJsonValue(response.data?.result?.right_side_result);

ローカルの完全なレスポンスサンプルでは image_quality と側面結果にオブジェクトを使用しますが、フィールドリファレンスには JSON 文字列も記載されています。どちらの形式にも対応してください。

レスポンスフィールド一覧 (V1.7.6)

The complete field list loads on demand and can be searched by field name or description.

スコア範囲と分類

Score visualization (historical sample)

Displays returned scores as-is; no scores are recalculated.

total_score

—/ 100

Higher means better overall skin condition.

No numeric detail scores in this sample.

Product/backend confirmation needed: handling for total scores below 70 and whether undetected items contribute. The scoring reference defines total-score bands starting at 70; the behavior below 70 cannot be inferred.

スコア範囲と分類

Fields, score ranges, and notes below follow the Skin Analyze Pro scoring reference.

Overall Skin Score

The overall skin score represents the general condition of the analyzed skin. A higher score indicates better overall skin condition.

RatingScore Range
Poor[70, 75]
Fair[76, 87]
Good[88, 94]
Excellent[95, 100]

Skin Concern Severity

The following severity classification applies to all skin concern scores listed in this section.

Higher scores indicate less severe skin concerns.

SeverityScore Range
Severe[30, 49]
Moderate[50, 69]
Mild[70, 89]
None[90, 100]

Skin Concern Scores

Skin ConcernAPI Field
Porespores_score
Blackheadsblackhead_score
Acneacne_score
Wrinkleswrinkle_score
Dark Circlesdark_circle_score
Skin Moisturewater_score
Skin Sensitivitysensitivity_score
Melaninmelanin_score
Skin Roughnessrough_score
Oilinessoily_intensity_score

Regional Pore Scores

The API also provides individual pore scores for different facial regions.

All regional pore scores follow the same severity classification defined above.

Facial RegionAPI Field
Foreheadpores_type_score.pores_forehead_score
Right Cheekpores_type_score.pores_rightcheek_score
Left Cheekpores_type_score.pores_leftcheek_score
Jawpores_type_score.pores_jaw_score

Regional Dark Circle Scores

The API provides separate dark circle scores for each eye.

Both scores follow the same severity classification defined above.

Facial RegionAPI Field
Left Eyedark_circle_type_score.left_dark_circle_score
Right Eyedark_circle_type_score.right_dark_circle_score

Skin Type Classification

Unlike skin concern scores, this value is used to classify skin type rather than measure severity.

Higher values indicate different skin type categories, not necessarily better or worse skin condition.

Skin TypeScore Range
Normal Skin[1, 15]
Dry Skin[16, 40]
Combination Skin[41, 60]
Oily Skin[61, 100]

Score Interpretation Notes

Overall Skin Score: Higher scores indicate better overall skin condition.

Skin Concern Scores: Higher scores indicate less severe skin concerns.

Skin Type Score: Values represent skin type categories rather than quality or severity.

Score Ranges: All ranges are inclusive of their minimum and maximum values.

エンドポイントリファレンス

スキンケアの提案

Skin Analysis Pro の成功レスポンスから data オブジェクト全体を渡してください。API はその result を使ってスキンケア提案を生成します。Basic と Advanced のレスポンスには対応せず、task_id のみでは処理できません。

— credits / successAPI キーを作成

Pro analysis → async care task → raw JSON result

このエンドポイントには、成功した Pro レスポンスの data オブジェクト全体を渡します。ホームページの無料レポートは複数サービスの出力を組み合わせたローカル表示であり、このエンドポイントのレスポンススキーマを定義するものではありません。

View free report presentation
POST/api/developer/v1/skincare-advice/tasks

Content-Type

application/json

処理中

非同期 · task_id を返します

Prerequisite: only a successful skin_analysis_pro result is accepted. See the Skin Analysis Pro API. Basic/Advanced results and a standalone task_id are not supported.

Request body · application/json

Parameter型必須デフォルト説明
skin_analysis_dataobjectYes无(必填)成功した Skin Analysis Pro レスポンスの data オブジェクト全体(data フィールドの値)を渡してください。さらに data でラップしないでください。product="skin_analysis_pro"、status="succeeded"、JSON オブジェクトの result が必要です。task_id のみでは不十分です。
languagestringNoen対応する言語コード(大文字小文字を区別。正確なコードを指定):英語 en、簡体字中国語 zh-CN、繁体字中国語(台湾)zh-TW、繁体字中国語(香港)zh-HK、日本語 ja、韓国語 ko、フランス語 fr、ドイツ語 de、スペイン語 es、イタリア語 it、ポルトガル語 pt、ベトナム語 vi、インドネシア語 id。

エンドツーエンド連携

Pro 分析からケアレポートまで

On your server, call Skin Analysis Pro synchronously, then pass its complete successful data object unchanged to the asynchronous skincare advice endpoint. It returns personalized care guidance and does not search for or recommend products. Poll using the returned task_id and fetch the final result. Keep the API key in a server-side environment variable.

  1. 01Upload imagesFront image required; profiles optional
  2. 02Call ProReceive response.data synchronously
  3. 03Submit care taskskin_analysis_data = response.data
  4. 04Keep task_idAcceptance does not mean completion
  5. 05Poll statusEvery 2–5 seconds; stop at a terminal state
  6. 06Fetch final JSONPreserve the complete data.result
Do not immediately resubmit after a timeout. Idempotency keys are not supported. First check whether you received a task_id; if so, continue querying that task. If not, check task history before retrying because a new task may be created.

サーバー側のエンドツーエンド例

Each example calls Pro synchronously, submits the recommendation task, polls with a finite limit, fetches the final result, and saves the full JSON. The default language is en; replace it with an exact code from the table below. Run on a server.

import { readFile, writeFile } from 'node:fs/promises';
import { basename } from 'node:path';

const apiKey = process.env.SKINCHECK_API_KEY;
const baseUrl = process.env.SKINCHECK_API_BASE_URL?.replace(/\/+$/, '');
if (!apiKey || !baseUrl) throw new Error('Set SKINCHECK_API_KEY and SKINCHECK_API_BASE_URL');
const headers = { 'skincheck-api-key': apiKey };
const request = async (url, options = {}, timeoutMs = 60_000) => {
  const response = await fetch(url, { ...options, headers: { ...headers, ...options.headers }, signal: AbortSignal.timeout(timeoutMs) });
  const raw = await response.text();
  let json;
  try { json = JSON.parse(raw); } catch { throw new Error('API returned invalid JSON'); }
  if (!response.ok || json.error_code !== 'OK' || json.code !== 0) throw new Error(json.msg || 'API request failed');
  return json;
};

// Skin Analysis Pro is synchronous. Supply side-profile files only when available.
const form = new FormData();
for (const [field, path] of [['image', './front.jpg'], ['left_side_image', './left.jpg'], ['right_side_image', './right.jpg']]) {
  try { form.append(field, new Blob([await readFile(path)], { type: 'image/jpeg' }), basename(path)); }
  catch (error) { if (field === 'image') throw error; if (error.code !== 'ENOENT') throw error; }
}
if (form.has('left_side_image') || form.has('right_side_image')) form.append('return_side_results', 'jawline_info');
const analysisResponse = await request(`${baseUrl}/api/developer/v1/skin-analysis-pro`, { method: 'POST', body: form }, 240_000);
const analysisData = analysisResponse.data;
if (analysisData?.product !== 'skin_analysis_pro' || analysisData.status !== 'succeeded' || !analysisData.result || typeof analysisData.result !== 'object') throw new Error('Expected successful Skin Analysis Pro data');

// Pass analysisResponse.data as-is; do not add a data wrapper.
const submitted = await request(`${baseUrl}/api/developer/v1/skincare-advice/tasks`, {
  method: 'POST', headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({ skin_analysis_data: analysisData, language: 'en' }),
});
const taskId = submitted.data?.task_id;
if (!taskId) throw new Error('Submission response has no task_id');

let taskStatus;
for (let attempt = 0; attempt < 100; attempt += 1) { // 3 sec × 100 = 5 min maximum
  const state = await request(`${baseUrl}/api/developer/v1/tasks/${encodeURIComponent(taskId)}`);
  taskStatus = state.data?.status;
  if (taskStatus === 'succeeded' || taskStatus === 'failed') break;
  if (!['queued', 'processing'].includes(taskStatus)) throw new Error(`Unexpected task status: ${taskStatus}`);
  await new Promise(resolve => setTimeout(resolve, 3000));
}
if (taskStatus !== 'succeeded') throw new Error(`Task failed or exceeded polling window: ${taskStatus}`);
const finalResponse = await request(`${baseUrl}/api/developer/v1/tasks/${encodeURIComponent(taskId)}/result`);
const careResult = finalResponse.data?.result;
if (!careResult || typeof careResult !== 'object') throw new Error('Result is not a JSON object');
if (!['complete', 'partial'].includes(careResult.status)) console.warn('Review the returned care result status and full JSON.');
await writeFile('care-result.json', JSON.stringify(finalResponse, null, 2)); // Keep unknown fields intact.
console.log(JSON.stringify(careResult, null, 2));

Set SKINCHECK_API_KEY and SKINCHECK_API_BASE_URL and provide ./front.jpg. Optional ./left.jpg and ./right.jpg are uploaded when present, together with the Pro parameter return_side_results=jawline_info. The examples never print the key or place the key in a URL.

リクエストオブジェクトと検証

渡すオブジェクト
analysisResponse
└─ data  ← skin_analysis_data receives this complete object
   ├─ task_id
   ├─ product = "skin_analysis_pro"
   ├─ status = "succeeded"
   ├─ created_at / completed_at / expires_at
   └─ result  (JSON object)

response.data を渡してください。レスポンス全体や data.task_id を渡したり、data で再度ラップしたりしないでください。結果フィールドは実際の Pro レスポンスに基づきます。

受け付ける入力
Product
skin_analysis_pro
入力ステータス
succeeded
result type
JSON object
必須フィールド
skin_analysis_data
デフォルト言語
en

これらの入力はこのエンドポイントでは無効です

  • • task_id only: full analysis data is missing.
  • • An extra data wrapper: wrong request nesting.
  • • Basic result: product does not match.
  • • Advanced result: product does not match.
  • • Pro status other than succeeded: input is not a successful analysis.
  • • result as array, string, or null: a JSON object is required.
サポートされる言語コード(大文字と小文字を区別)
Englishen
简体中文zh-CN
繁體中文(台灣)zh-TW
繁體中文(香港)zh-HK
日本語ja
한국어ko
Françaisfr
Deutschde
Españoles
Italianoit
Portuguêspt
Tiếng Việtvi
Bahasa Indonesiaid

language は提案コンテンツの言語を指定します。言語に応じて JSON キーが変わることは確認されていません。キーや未知のフィールドは返されたまま保持してください。

API JSON とホームページのレポート表示

ホームページの無料サンプルは表示レイヤーを示すローカル描画レポートです。SkinCare Recommendations API の 1 回の呼び出しで返される JSON ではありません。実際の API レスポンスを正とし、このページを固定スキーマとして扱わないでください。

Pro analysis

Input source from the Pro API.

Raw care-report JSON

Separate service sample; status complete, version skin-report-v1.

Homepage presentation

Local example combines service outputs, not one endpoint schema.

Open the complete free sample report

よくある質問

なぜ Skin Analysis Pro のデータが必要ですか?

このエンドポイントには product=skin_analysis_pro と、成功した Pro レスポンスの data オブジェクトが必要です。

task_id だけを渡せますか?

いいえ。成功した Pro レスポンスの data オブジェクト全体を渡してください。

Basic の結果を渡せますか?

いいえ。Basic 製品はこのエンドポイントの入力要件を満たしません。

Advanced の結果を渡せますか?

いいえ。Advanced 製品はこのエンドポイントの入力要件を満たしません。

Does this API recommend products?

No. It returns skincare advice only; product search and product recommendations are not included.

送信時に task_id だけが返されるのはなぜですか?

非同期 API のためです。受け付けられた時点でタスクはキューに入り、生成完了後に結果を取得します。

タスクの完了はどのように確認できますか?

GET /api/developer/v1/tasks/{task_id} を 2~5 秒ごとに確認し、succeeded または failed になったら停止してください。

queued と processing の違いは何ですか?

queued はキューで待機中、processing は基盤サービスで処理中を示します。

complete と partial の違いは何ですか?

data.result 内のケア内容の状態を表し、外側のタスクステータスとは別です。

partial でも課金されますか?

はい。complete と partial はどちらも成功として扱われ、50 クレジットが課金されます。

失敗したタスクは課金されますか?

失敗したタスクでは保留中のクレジットが解放されます。

タイムアウト後に再送信できますか?

すぐに再送信しないでください。冪等性キーはサポートされていません。まず task_id またはタスク履歴を確認してください。再送信すると別のタスクが作成される可能性があります。

最終的なケア JSON を取得するにはどうすればよいですか?

外側のタスクが succeeded になった後、GET /api/developer/v1/tasks/{task_id}/result を呼び出します。完全な生 JSON は data.result にあります。

出力言語はどのように指定しますか?

language を指定してください。デフォルトは en です。言語一覧にあるコードを正確に指定してください。

ケア JSON に固定スキーマはありますか?

ありません。data.result 全体を保持し、未知のフィールドにも対応してください。skin-report-v1 は既存サンプルの 1 例です。

Accepted requests return a task_id. — credits are held and charged only after a successful saved result.

Async submission response · task metadata
{
  "error_code": "OK",
  "code": 0,
  "msg": "",
  "hasnext": 0,
  "lastid": "",
  "data": {
    "task_id": "TASK_UUID",
    "product": "skincare_recommendations",
    "status": "queued",
    "created_at": 1793840400,
    "completed_at": null,
    "expires_at": null
  }
}

The submission response contains task metadata only. Poll GET /api/developer/v1/tasks/{task_id}, then read GET /api/developer/v1/tasks/{task_id}/result after success. View the task result response format

エンドポイントリファレンス

顔評価

顔の対称性、顔型、顔の比率、肌の印象、スタイルの印象を分析します。結果には各項目と総合スコア、コメント、問題一覧、改善提案、結果画像が含まれます。

— credits / successAPI キーを作成
POST/api/developer/v1/face-rating/tasks

Content-Type

multipart/form-data

処理中

非同期 · task_id を返します

Request body · multipart/form-data

Parameter型必須デフォルト説明
imagefileYes无(必填)Portrait file; JPEG/JPG/PNG/WEBP, up to 10 MB, each dimension below 4096 px.
output_languagestringNoen-USOptions: de-DE, en-US, es-ES, fr-FR, ja-JP, ko-KR, ru-RU, zh-CN, zh-TW.

画像要件

提交方式
Upload the portrait file directly; do not pass an image URL.
格式与大小
JPEG/JPG/PNG/WEBP; no more than 10 MB.
分辨率
Both image dimensions must be below 4096 px.

Accepted requests return a task_id. — credits are held and charged only after a successful saved result.

Async submission response · task metadata
{
  "error_code": "OK",
  "code": 0,
  "msg": "",
  "hasnext": 0,
  "lastid": "",
  "data": {
    "task_id": "TASK_UUID",
    "product": "face_rating",
    "status": "queued",
    "created_at": 1793840400,
    "completed_at": null,
    "expires_at": null
  }
}

The submission response contains task metadata only. Poll GET /api/developer/v1/tasks/{task_id}, then read GET /api/developer/v1/tasks/{task_id}/result after success. View the task result response format

エンドポイントリファレンス

魅力度テスト

元のポートレートを保ちながら、共有可能な魅力度分析画像を生成します。参照ドキュメントでは視覚的なバランス、顔の調和、自信、スタイルの魅力を扱っていますが、レスポンススキーマで現在定義されているのは結果画像 URL のみです。

— credits / successAPI キーを作成
POST/api/developer/v1/attractiveness-test/tasks

Content-Type

multipart/form-data

処理中

非同期 · task_id を返します

Request body · multipart/form-data

Parameter型必須デフォルト説明
imagefileYes无(必填)Portrait file; JPEG/JPG/PNG/WEBP, up to 10 MB, each dimension below 4096 px.
promptstringNo未传时使用底层默认提示Optional analysis instruction text. Omit it to use the underlying default prompt.
aspect_ratiostringNo16:9Aspect-ratio string in “width:height” form; for example, 16:9.

画像要件

提交方式
Upload the portrait file directly; do not pass an image URL.
格式与大小
JPEG/JPG/PNG/WEBP; no more than 10 MB.
分辨率
Both image dimensions must be below 4096 px.

Accepted requests return a task_id. — credits are held and charged only after a successful saved result.

Async submission response · task metadata
{
  "error_code": "OK",
  "code": 0,
  "msg": "",
  "hasnext": 0,
  "lastid": "",
  "data": {
    "task_id": "TASK_UUID",
    "product": "attractiveness_test",
    "status": "queued",
    "created_at": 1793840400,
    "completed_at": null,
    "expires_at": null
  }
}

The submission response contains task metadata only. Poll GET /api/developer/v1/tasks/{task_id}, then read GET /api/developer/v1/tasks/{task_id}/result after success. View the task result response format

タスクと結果

非同期リクエストは task_id を返します。状態を定期的に確認し、succeeded になった後で結果エンドポイントを呼び出すと完全な result を取得できます。Basic、Advanced、Pro は同期レスポンスで分析結果を直接返します。結果を参照できるのは、リクエストを作成した個人 API アカウントのみです。

GET/api/developer/v1/tasks/{task_id}

Try task lookup

Enter the task_id returned by an asynchronous submission to check its status or retrieve its result.

ポーリングと再試行のルール

Task states
queued → processing → succeeded / failed. Stop polling at succeeded or failed.
Polling interval
Poll every 2–5 seconds while processing.
Queue timeout
A task fails after 5 minutes in the queue; the execution timeout is server-configured.
Submission retries
Idempotency keys are not supported. After a submission timeout, first determine whether a task_id was received; each new submission attempts to create a task.

タスクステータスのレスポンス

GET /tasks/{task_id} returns the standard envelope. The data fields are shown below; failed tasks include error.code.

処理中の例
{
  "error_code": "OK",
  "code": 0,
  "msg": "",
  "hasnext": 0,
  "lastid": "",
  "data": {
    "task_id": "TASK_UUID",
    "product": "face_rating",
    "status": "processing",
    "created_at": 1793840400,
    "completed_at": null,
    "expires_at": null
  }
}
失敗時の例
{
  "error_code": "OK",
  "code": 0,
  "msg": "",
  "hasnext": 0,
  "lastid": "",
  "data": {
    "task_id": "TASK_UUID",
    "product": "face_rating",
    "status": "failed",
    "created_at": 1793840400,
    "completed_at": 1793840520,
    "expires_at": null,
    "error": { "code": "queue_timeout" }
  }
}
GET/api/developer/v1/tasks/{task_id}/result

成功時、data.result には該当する基盤製品の JSON データが含まれます。結果の構造は製品ごとに異なり、統一されていません。製品ごとに解析し、未知のフィールドも許容してください。失敗したタスクは failed ステータスと error.code を返し、result は含みません。queued または processing のタスクは「結果未準備」の業務エラーを返します。expires_at は結果生成から 24 時間後に設定されますが、現時点では読み取りエンドポイントで期限は強制されず、期限切れデータも自動削除されません。

成功時のレスポンス形式
{
  "error_code": "OK",
  "code": 0,
  "msg": "",
  "hasnext": 0,
  "lastid": "",
  "data": {
    "task_id": "TASK_UUID",
    "product": "face_rating",
    "status": "succeeded",
    "created_at": 1793840400,
    "completed_at": 1793840460,
    "expires_at": 1793926860,
    "result": { "...": "Product-specific JSON returned by the underlying analysis service" }
  }
}

製品レスポンスのフィールド

The tables below document data.result for successful asynchronous tasks. Skin Analysis Pro’s synchronous response fields are documented in its API section. Results are returned by underlying services; tolerate fields added by later versions.

Face Rating · result
フィールド型 / 範囲説明
result_urlsarray<string>結果画像 URL の一覧です。各 URL は 24 時間、一時的に利用できます。
result_urls[]string結果画像の URL です。
analysis_resultobject顔評価の結果オブジェクトです。
analysis_result.face_symmetry_scoreinteger · 0–100顔の対称性スコアです。
analysis_result.face_symmetry_commentstring顔の対称性に関するコメントです。
analysis_result.face_shape_scoreinteger · 0–100顔型スコアです。
analysis_result.face_shape_commentstring顔型に関するコメントです。
analysis_result.facial_proportion_scoreinteger · 0–100顔の比率スコアです。
analysis_result.facial_proportion_commentstring顔の比率に関するコメントです。
analysis_result.skin_impression_scoreinteger · 0–100肌印象のスコアです。
analysis_result.skin_impression_commentstring肌印象に関するコメントです。
analysis_result.style_impression_scoreinteger · 0–100スタイル印象のスコアです。
analysis_result.style_impression_commentstringスタイル印象に関するコメントです。
analysis_result.overall_scoreinteger · 0–100総合スコアです。
analysis_result.overall_commentstring総合コメントです。
analysis_result.style_tagsarray<string>スタイルタグの配列です。
analysis_result.style_tags[]stringスタイルタグです。
analysis_result.visible_face_issuesarray<object>目視できる顔の問題一覧です。
analysis_result.visible_face_issues[].issuestring問題の説明。
analysis_result.visible_face_issues[].severitystring · low / medium / high問題の重大度。
analysis_result.visible_skin_issuesarray<object>目視できる肌の問題一覧です。
analysis_result.visible_skin_issues[].issuestring問題の説明。
analysis_result.visible_skin_issues[].severitystring · low / medium / high問題の重大度。
analysis_result.improvement_suggestionsarray<object>改善提案の一覧です。
analysis_result.improvement_suggestions[].suggestionstring提案のテキストです。
analysis_result.improvement_suggestions[].areastring提案の対象となる領域です。
上記のフィールドは Face Rating API リファレンスに基づきます。製品の結果は data.result にあります。task_id、status、expires_at はこの製品の非同期タスクレスポンスに含まれます。
完全な結果の例
{
  "error_code": "OK",
  "code": 0,
  "msg": "",
  "data": {
    "task_id": "TASK_UUID",
    "product": "face_rating",
    "status": "succeeded",
    "result": {
      "result_urls": ["RESULT_IMAGE_URL"],
      "analysis_result": {
        "face_symmetry_score": 82,
        "face_shape_score": 78,
        "facial_proportion_score": 85,
        "skin_impression_score": 80,
        "style_impression_score": 88,
        "overall_score": 83,
        "face_symmetry_comment": "...",
        "face_shape_comment": "...",
        "facial_proportion_comment": "...",
        "skin_impression_comment": "...",
        "style_impression_comment": "...",
        "overall_comment": "...",
        "style_tags": ["..."] ,
        "visible_face_issues": [{ "issue": "...", "severity": "low" }],
        "visible_skin_issues": [{ "issue": "...", "severity": "medium" }],
        "improvement_suggestions": [{ "suggestion": "...", "area": "..." }]
      }
    }
  }
}

Three separate response stages

送信、ステータス確認、結果取得

A · タスクを送信

POST/api/developer/v1/skincare-advice/tasks
ヘッダー: skincheck-api-key: YOUR_API_KEYContent-Type: application/json

Acceptance means the task was queued; data contains task metadata, not a generated report.

{
  "error_code": "OK",
  "code": 0,
  "msg": "",
  "hasnext": 0,
  "lastid": "",
  "data": {
    "task_id": "TASK_UUID",
    "product": "skincare_recommendations",
    "status": "queued",
    "created_at": 1793840400,
    "completed_at": null,
    "expires_at": null
  }
}

B · ステータスを確認

GET/api/developer/v1/tasks/{task_id}
ヘッダー: skincheck-api-key: YOUR_API_KEY

queued → processing → succeeded / failed. Poll every 2–5 seconds and stop at succeeded or failed. queued for more than 5 minutes fails; total execution timeout is server-configured.

{
  "error_code": "OK",
  "code": 0,
  "msg": "",
  "hasnext": 0,
  "lastid": "",
  "data": {
    "task_id": "TASK_UUID",
    "product": "skincare_recommendations",
    "status": "processing",
    "created_at": 1793840400,
    "completed_at": null,
    "expires_at": null
  }
}

C · 結果を取得

GET/api/developer/v1/tasks/{task_id}/result
ヘッダー: skincheck-api-key: YOUR_API_KEY

Read after the outer task succeeds. The complete underlying raw JSON is in data.result; preserve it unchanged.

{
  "error_code": "OK",
  "code": 0,
  "msg": "",
  "hasnext": 0,
  "lastid": "",
  "data": {
    "task_id": "TASK_UUID",
    "product": "skincare_recommendations",
    "status": "succeeded",
    "created_at": 1793840400,
    "completed_at": 1793840460,
    "expires_at": 1793926860,
    "result": {
      "status": "complete",
      "…": "原样保存的底层服务 JSON"
    }
  }
}
タスク全体のステータス

queued queued; processing processing; succeeded task succeeded; failed task failed and may include data.error.code. Failed tasks release held credits; successful tasks charge 50 credits.

ケア結果のステータス

data.result.status 为 complete 或 partial。Both are successful results and charge 50 credits. They are distinct from the outer task’s data.status=succeeded.

For request errors, inspect the standard envelope’s error_code / code; for task failures, inspect data.error.code. See エラー. Do not request the final result while queued or processing.

Failed task example: data.status = "failed" (may contain data.error.code ); stop polling and do not request a result that is not ready. Failed tasks release held credits.
{
  "error_code": "OK",
  "code": 0,
  "msg": "",
  "hasnext": 0,
  "lastid": "",
  "data": {
    "task_id": "TASK_UUID",
    "product": "skincare_recommendations",
    "status": "failed",
    "created_at": 1793840400,
    "completed_at": 1793840520,
    "expires_at": null,
    "error": {
      "code": "queue_timeout"
    }
  }
}
Skincare Report · result

The final result endpoint stores the underlying raw JSON in data.result. Task query data.status and care result data.result.status are separate statuses. The skincare advice API returns care guidance only, not product recommendations, and has no fixed JSON Schema. The table describes fields in the homepage example’s skin-report-v1 care-report sample only; it does not guarantee every response contains these fields or constrain future fields. Arrays may be empty and some values may be null.

ケアレポートのサンプルを読み込み中…
Attractiveness Test · result

The developer task result is available in data.result. The source reference defines only the result_urls array; it does not define poster internals or a parseable scoring JSON schema. Treat returned image URLs as the documented result and tolerate additional fields.

フィールド型説明
result_urlsarray<string>結果画像 URL の一覧です。
result_urls[]string結果画像の URL です。仕様では 24 時間有効とされています。
完全な結果の例
{
  "error_code": "OK",
  "code": 0,
  "msg": "",
  "data": {
    "task_id": "TASK_UUID",
    "product": "attractiveness_test",
    "status": "succeeded",
    "result": {
      "result_urls": ["RESULT_IMAGE_URL"]
    }
  }
}
ステータス説明課金
queuedキューで待機中保留中
processingバックエンドサービスで処理中保留中
succeeded結果を生成して保存済み課金済み
failedタスク失敗またはタイムアウト解放済み
送信成功時のレスポンス
{
  "error_code": "OK",
  "code": 0,
  "msg": "",
  "hasnext": 0,
  "lastid": "",
  "data": {
    "task_id": "TASK_UUID",
    "product": "face_rating",
    "status": "queued",
    "created_at": 1793840400,
    "completed_at": null,
    "expires_at": null
  }
}

エラー処理

ローカライズされる msg ではなく、error_code または task data.error.code に基づいて処理を分岐してください。業務エラーは JSON エンベロープを使用し、現在は HTTP 200 で返されます。エンベロープ内の code がエラー分類(例:401、500)を示します。ネットワークエラーとゲートウェイタイムアウトは別途処理してください。

error_code / data.error.code場所意味と対応
ERROR_API_KEY_INVALIDレスポンス形式キーがない、無効、または失効しています。skincheck-api-key ヘッダーとキーのステータスを確認してください。
ERROR_PARAMレスポンス形式フィールドが不足または無効です。または画像形式・サイズがサポートされていません。再送信する前にリクエストを修正してください。
ERROR_PARAM_VALUEレスポンス形式リクエストパラメーターが API の要件を満たしていません。フィールドの型、形式、許可された値を確認してください。
ERROR_NOT_ENOUGH_CREDITSレスポンス形式Developer API のクレジットが不足しているため、タスクは作成されません。再試行する前にクレジットを購入してください。
ERROR_INTERFACE_RECORD_NOT_EXISTSレスポンス形式タスクが存在しないか、別のアカウントに属しています。task_id とアカウントを確認してください。
ERROR_AI_NOT_SERVICEレスポンス形式画像ストレージまたは基盤 API が利用できないか、設定されていません。時間をおいて再試行するか、サポートにお問い合わせください。同じリクエストを繰り返し送信しないでください。
ERROR_SYSTEMレスポンス形式サービス内部エラーです。リクエスト時刻と task_id(取得できる場合)を記録し、時間をおいて再試行するか、サポートにお問い合わせください。
queue_timeoutタスク data.error.codeキューでの待機が 5 分を超えました。タスクは失敗し、保留中のクレジットは解放されます。最終状態を確認してから再送信してください。
task_timeoutタスク data.error.codeタスクがサーバーの実行タイムアウトを超えたため、保留中のクレジットは解放されます。タイムアウト値はサーバー側で設定されています。
analysis_failed / ai_*タスク data.error.code基盤分析または結果の検証に失敗し、保留中のクレジットは解放されます。エラーコードを記録し、サポートにお問い合わせください。

この表は一般的なエラーを示しており、基盤サービスのすべてのエラーコードを網羅しているわけではありません。リクエストエラーは error_code、code、msg、data を使用し、非同期タスクの失敗は data.error.code に示されます。記載のないエラーが発生した場合は、元のレスポンス、task_id、リクエスト時刻を保存してください。