Подготовьте API-ключ, базовый URL и продукт API, затем откройте страницу нужного метода, чтобы посмотреть параметры и примеры запросов.
01
Получить API-ключ
Перейдите в Личный кабинет → Центр разработчика → API-ключи и создайте ключ разработчика. Полный ключ показывается только при создании или ротации; сохраните его в безопасном месте.
Эта страница и онлайн-проверка используют NEXT_PUBLIC_API_BASE_URL, если она настроена; иначе используется источник текущего сайта документации. Примеры читают URL из переменной окружения SKINCHECK_API_BASE_URL.
Используемый базовый URL API
03
Выбрать продукт API
Для начала используйте Skin Analyze Basic. Метод принимает одно фронтальное изображение JPG/JPEG и возвращает результат в том же ответе после завершения анализа.
Название API
Skin Analyze
HTTP Method
POST
Путь
/api/developer/v1/skin-analysis-basic
Формат
multipart/form-data
За успешный запрос
— кредитов
04
Разобраться в синхронных и асинхронных API
Basic, Advanced и Pro возвращают результат анализа после завершения запроса. Рекомендации по уходу за кожей, оценка лица и тест привлекательности сначала создают асинхронную задачу, затем нужно запросить её статус и результат.
Синхронный
POST: запрос анализа
Дождаться завершения анализа
Ответ содержит result
Асинхронный
POST: создать задачу
Получить task_id
Запросить статус → получить результат
05
Продолжить разработку
При необходимости изучите разделы об аутентификации, различиях продуктов, вызовах API, задачах и обработке ошибок.
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-ключ — это личный учётный секрет. Храните его только в переменных окружения на сервере или в специализированном хранилище секретов. Не помещайте его в JavaScript браузера, публичные мобильные приложения, открытые репозитории, журналы приложения или параметры URL и не передавайте полный ключ по небезопасным каналам.
01
Создать API-ключ
Open key management and create a key using this path:
01Open Personal Center
02Open Developer Center
03Open API Key management
04Create a new API key
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 необходимо передавать API-ключ в HTTP-заголовке. Имя заголовка ниже соответствует реализации аутентификации на сервере:
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 bashset -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
Create a new key
Rotate the current key in API Key management and copy the replacement.
2
Deploy the new key
Update the server environment variable or dedicated secret manager.
3
Verify the new key
Make a real API request from the server with the new key and confirm it succeeds.
4
Revoke the old key
Revoke the old key separately after the replacement is confirmed to work.
Не отзывайте старый ключ, пока не проверите новый: иначе в вашем сервисе могут возникнуть ошибки аутентификации.
05
Отозвать ключ и устранить утечку
После отзыва новые запросы с этим ключом не пройдут аутентификацию. Отзыв не удаляет копии, которые могли быть раскрыты ранее. Если ключ мог быть скомпрометирован, немедленно выполните следующие действия:
1.Revoke the exposed key immediately.
2.Create a new API key.
3.Update and deploy the server configuration.
4.Review recent API calls and credit usage.
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 предлагает API анализа кожи Basic, Advanced и Pro. Версии различаются охватом обнаружения, детализацией результатов, локализацией областей и возможностями визуализации, чтобы вы могли выбрать 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.
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
Параметр анализа
Basic
Advanced
Pro
Формат результата
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
Параметр анализа
Basic
Advanced
Pro
Формат результата
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
Параметр анализа
Basic
Advanced
Pro
Формат результата
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
Параметр анализа
Basic
Advanced
Pro
Формат результата
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
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
Параметр анализа
Basic
Advanced
Pro
Формат результата
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— кредитов / успешный запрос
Все три версии работают синхронно: во время запроса кредиты резервируются, при успехе списываются, а при ошибке возвращаются. Указана стоимость одного запроса API в кредитах, а не цена пакета кредитов. Используются тарифы, настроенные для каждого API endpoint.
Какую версию выбрать?
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
Чем отличаются три версии?
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.
Все три версии работают синхронно?
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.
Описание endpoint
Анализ кожи Basic
Определяет тип кожи, особенности глаз, морщины, акне, поры, чёрные точки, родинки и пигментные пятна по фронтальному портрету и возвращает классификации с оценками уверенности.
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
Ширина × высота в пикселях. В документации Basic API указаны JPG/JPEG, размер не более 2 МБ, ширина и высота более 200 px и менее 4096 px.
Face box · face region in the image
Ширина × высота в пикселях. Рекомендуется, чтобы сторона рамки лица была не менее 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
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.
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_code
Standard envelope
string
Есть в текущем примере успешного ответа; обязательность не подтверждена
Business error code in the standard envelope; OK in the success example. Distinct from underlying data.result.error_detail.code.
OK
$.code
Standard envelope
integer
Есть в текущем примере успешного ответа; обязательность не подтверждена
Standard response envelope code; 0 in the success example.
0
$.msg
Standard envelope
string
Есть в текущем примере успешного ответа; обязательность не подтверждена
Standard response envelope message; empty in the success example.
""
$.hasnext
Standard envelope
integer
Есть в текущем примере успешного ответа; обязательность не подтверждена
Pagination flag in the standard response envelope; 0 in this synchronous success example.
0
$.lastid
Standard envelope
string | integer
Есть в текущем примере успешного ответа; обязательность не подтверждена
Cursor in the standard response envelope; empty in this synchronous success example.
""
$.data
Request info and status
object
Есть в текущем примере успешного ответа; обязательность не подтверждена
Container for task metadata and synchronous result.
{ ... }
$.data.task_id
Request info and status
string
Есть в текущем примере успешного ответа; обязательность не подтверждена
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.product
Request info and status
string
Есть в текущем примере успешного ответа; обязательность не подтверждена
Product identifier; skin_analysis_basic in the Basic example.
"skin_analysis_basic"
$.data.status
Request info and status
string
Есть в текущем примере успешного ответа; обязательность не подтверждена
Final status for a synchronous task: succeeded or failed; the success example is succeeded.
"succeeded"
$.data.created_at
Request info and status
integer
Есть в текущем примере успешного ответа; обязательность не подтверждена
Task creation time; sample uses Unix seconds.
1793840400
$.data.completed_at
Request info and status
integer | null
Есть в текущем примере успешного ответа; обязательность не подтверждена
Task completion time; the success sample uses Unix seconds.
1793840460
$.data.expires_at
Request info and status
integer | null
Есть в текущем примере успешного ответа; обязательность не подтверждена
Result expiration time; successful results return a timestamp under the current retention policy, while failed tasks may be null.
1793926860
$.data.result
Request info and status
object
Есть в текущем примере успешного ответа; обязательность не подтверждена
Preserves the complete raw response from the underlying service for synchronous analysis.
{ ... }
$.data.result.request_id
Request info and status
string
Есть в текущем примере успешного ответа; обязательность не подтверждена
Request identifier from the underlying analysis service; empty in the sample.
""
$.data.result.log_id
Request info and status
string
Есть в текущем примере успешного ответа; обязательность не подтверждена
Log identifier from the underlying analysis service; empty in the sample.
""
$.data.result.error_detail
Errors and warnings
object
Есть в текущем примере успешного ответа; обязательность не подтверждена
Underlying-service error details; separate from top-level error_code / code / msg.
{"code":"","code_message":"","message":""}
$.data.result.error_detail.code
Errors and warnings
string
Есть в текущем примере успешного ответа; обязательность не подтверждена
Underlying error-detail code; empty in the success sample, with enums defined by the underlying service.
""
$.data.result.error_detail.code_message
Errors and warnings
string
Есть в текущем примере успешного ответа; обязательность не подтверждена
Description of the underlying error code; empty in the success sample.
""
$.data.result.error_detail.message
Errors and warnings
string
Есть в текущем примере успешного ответа; обязательность не подтверждена
Underlying error-detail message; empty in the success sample.
""
$.data.result.warning
Errors and warnings
array
Есть в текущем примере успешного ответа; обязательность не подтверждена
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_rectangle
Face location
object
Есть в текущем примере успешного ответа; обязательность не подтверждена
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.top
Face location
number
Есть в текущем примере успешного ответа; обязательность не подтверждена
Rectangle position field; origin and units need backend confirmation.
0
$.data.result.face_rectangle.left
Face location
number
Есть в текущем примере успешного ответа; обязательность не подтверждена
Rectangle position field; axis direction, origin, and units need backend confirmation.
0
$.data.result.face_rectangle.width
Face location
number
Есть в текущем примере успешного ответа; обязательность не подтверждена
Face-rectangle width; units need backend confirmation.
0
$.data.result.face_rectangle.height
Face location
number
Есть в текущем примере успешного ответа; обязательность не подтверждена
Face-rectangle height; units need backend confirmation.
0
$.data.result.result
Analysis result fields
object
Есть в текущем примере успешного ответа; обязательность не подтверждена
Container for skin-analysis fields; contains the 19 direct fields listed below.
19 fields; see full JSON
$.data.error.code
Errors and warnings
string
Failed tasks only; requiredness within failures is unconfirmed
Present 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_eyelids
Eye features
object
value, confidence
Present in current success sample; requiredness across all successes is unconfirmed
Field 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_eyelids
Eye features
object
value, confidence
Present in current success sample; requiredness across all successes is unconfirmed
Field 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_pouch
Eye features
object
value, confidence
Present in current success sample; requiredness across all successes is unconfirmed
Eye-pouch detection; value and confidence ranges are not defined in the current docs.
{"value":0,"confidence":0.89}
$.data.result.result.dark_circle
Eye features
object
value, confidence
Present in current success sample; requiredness across all successes is unconfirmed
Dark-circle detection; value and confidence ranges are not defined in the current docs.
{"value":0,"confidence":0.89}
$.data.result.result.forehead_wrinkle
Wrinkles
object
value, confidence
Present in current success sample; requiredness across all successes is unconfirmed
Forehead-wrinkle detection; its enum mapping is not defined in the current docs.
{"value":0,"confidence":0.89}
$.data.result.result.crows_feet
Wrinkles
object
value, confidence
Present in current success sample; requiredness across all successes is unconfirmed
Crow’s-feet detection; its enum mapping is not defined in the current docs.
{"value":0,"confidence":0.89}
$.data.result.result.eye_finelines
Wrinkles
object
value, confidence
Present in current success sample; requiredness across all successes is unconfirmed
Eye fine-line detection; its enum mapping is not defined in the current docs.
{"value":0,"confidence":0.89}
$.data.result.result.glabella_wrinkle
Wrinkles
object
value, confidence
Present in current success sample; requiredness across all successes is unconfirmed
Glabellar-wrinkle detection; its enum mapping is not defined in the current docs.
{"value":0,"confidence":0.89}
$.data.result.result.nasolabial_fold
Wrinkles
object
value, confidence
Present in current success sample; requiredness across all successes is unconfirmed
Nasolabial-fold detection; its enum mapping is not defined in the current docs.
Present in current success sample; requiredness across all successes is unconfirmed
Skin-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.
Present in current success sample; requiredness across all successes is unconfirmed
Full-face pore detection.
{"value":0,"confidence":1}
$.data.result.result.pores_forehead
Pores
object
value, confidence
Present in current success sample; requiredness across all successes is unconfirmed
Forehead pore detection.
{"value":0,"confidence":1}
$.data.result.result.pores_left_cheek
Pores
object
value, confidence
Present in current success sample; requiredness across all successes is unconfirmed
Left-cheek pore detection.
{"value":0,"confidence":1}
$.data.result.result.pores_right_cheek
Pores
object
value, confidence
Present in current success sample; requiredness across all successes is unconfirmed
Right-cheek pore detection.
{"value":0,"confidence":1}
$.data.result.result.pores_jaw
Pores
object
value, confidence
Present in current success sample; requiredness across all successes is unconfirmed
Jaw-area pore detection.
{"value":0,"confidence":1}
$.data.result.result.blackhead
Skin concerns
object
value, confidence
Present in current success sample; requiredness across all successes is unconfirmed
Blackhead detection.
{"value":0,"confidence":1}
$.data.result.result.acne
Skin concerns
object
value, confidence
Present in current success sample; requiredness across all successes is unconfirmed
Acne detection.
{"value":0,"confidence":1}
$.data.result.result.mole
Skin concerns
object
value, confidence
Present in current success sample; requiredness across all successes is unconfirmed
Mole detection.
{"value":0,"confidence":1}
$.data.result.result.skin_spot
Skin concerns
object
value, confidence
Present in current success sample; requiredness across all successes is unconfirmed
Skin-spot detection.
{"value":0,"confidence":1}
Expand complete paths for child fields (46)
JSONPath
Тип
Availability
Описание
Пример
Копировать
$.data.result.result.left_eyelids.value
number
Есть в текущем примере успешного ответа; обязательность не подтверждена
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.confidence
number
Есть в текущем примере успешного ответа; обязательность не подтверждена
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.value
number
Есть в текущем примере успешного ответа; обязательность не подтверждена
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.confidence
number
Есть в текущем примере успешного ответа; обязательность не подтверждена
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.value
number
Есть в текущем примере успешного ответа; обязательность не подтверждена
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.confidence
number
Есть в текущем примере успешного ответа; обязательность не подтверждена
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.value
number
Есть в текущем примере успешного ответа; обязательность не подтверждена
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.confidence
number
Есть в текущем примере успешного ответа; обязательность не подтверждена
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.value
number
Есть в текущем примере успешного ответа; обязательность не подтверждена
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.confidence
number
Есть в текущем примере успешного ответа; обязательность не подтверждена
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.value
number
Есть в текущем примере успешного ответа; обязательность не подтверждена
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.confidence
number
Есть в текущем примере успешного ответа; обязательность не подтверждена
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.value
number
Есть в текущем примере успешного ответа; обязательность не подтверждена
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.confidence
number
Есть в текущем примере успешного ответа; обязательность не подтверждена
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.value
number
Есть в текущем примере успешного ответа; обязательность не подтверждена
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.confidence
number
Есть в текущем примере успешного ответа; обязательность не подтверждена
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.value
number
Есть в текущем примере успешного ответа; обязательность не подтверждена
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.confidence
number
Есть в текущем примере успешного ответа; обязательность не подтверждена
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_type
number
Есть в текущем примере успешного ответа; обязательность не подтверждена
Skin-type classification code; the mapping for 0–3 is not defined in the current API reference.
0
$.data.result.result.skin_type.details
object
Есть в текущем примере успешного ответа; обязательность не подтверждена
Detail object with string keys 0, 1, 2, and 3. Each item contains value and confidence; the meaning of each item is unconfirmed.
Есть в текущем примере успешного ответа; обязательность не подтверждена
Confidence for details key 3; its range, interpretation, and relationship to other detection rules need confirmation.
0.89
$.data.result.result.pores.value
number
Есть в текущем примере успешного ответа; обязательность не подтверждена
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.confidence
number
Есть в текущем примере успешного ответа; обязательность не подтверждена
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.value
number
Есть в текущем примере успешного ответа; обязательность не подтверждена
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.confidence
number
Есть в текущем примере успешного ответа; обязательность не подтверждена
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.value
number
Есть в текущем примере успешного ответа; обязательность не подтверждена
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.confidence
number
Есть в текущем примере успешного ответа; обязательность не подтверждена
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.value
number
Есть в текущем примере успешного ответа; обязательность не подтверждена
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.confidence
number
Есть в текущем примере успешного ответа; обязательность не подтверждена
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.value
number
Есть в текущем примере успешного ответа; обязательность не подтверждена
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.confidence
number
Есть в текущем примере успешного ответа; обязательность не подтверждена
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.value
number
Есть в текущем примере успешного ответа; обязательность не подтверждена
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.confidence
number
Есть в текущем примере успешного ответа; обязательность не подтверждена
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.value
number
Есть в текущем примере успешного ответа; обязательность не подтверждена
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.confidence
number
Есть в текущем примере успешного ответа; обязательность не подтверждена
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.value
number
Есть в текущем примере успешного ответа; обязательность не подтверждена
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.confidence
number
Есть в текущем примере успешного ответа; обязательность не подтверждена
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.value
number
Есть в текущем примере успешного ответа; обязательность не подтверждена
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.confidence
number
Есть в текущем примере успешного ответа; обязательность не подтверждена
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.
Скачать полный JSONThe 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.
Описание endpoint
Анализ кожи Advanced
Advanced возвращает структурированные данные анализа кожи для интерфейса продукта: помимо тона кожи, возраста кожи и категорий обнаружения, ответ может содержать прямоугольники областей акне, закрытых комедонов, родинок и пятен. Параметры запроса управляют проверкой качества, уверенностью областей и картой покраснений.
0: пропустить проверку качества лица; 1: включить. Если параметр не передан, уровень API не подставляет значение. HTTP-статус, бизнес-код и структура ответа при сбое проверки требуют подтверждения по реальному ответу сервера.
0: не запрашивать уверенность по областям; 1: запрашивать. Если параметр не передан, уровень API не подставляет значение. В текущем примере Advanced нет возвращаемых полей; JSON-пути, диапазон и поведение при отсутствии обнаружений требуют подтверждения по реальному ответу.
Сейчас принимается только 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 · Развернуть / свернуть
Same 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.
Ограничения API JPG/JPEG; ≤ 5 МБ; ширина и высота > 200 px и < 4096 px.
Face-box recommendation Рекомендуется сторона более 400 px; это рекомендация, а не подтверждённое ограничение API.
При небольшом лице видно меньше деталей. Иллюстрация не устанавливает порог API.Move closer while keeping the full face and head in frame.
Сравнение освещения
Недостаточная экспозиция скрывает детали, переэкспонирование сглаживает текстуру кожи, а контровой свет оставляет лицо в тени. Равномерное освещение помогает сохранить видимые детали. Заявления о проценте успешного анализа не делаются.
Recommended · Even lightAvoid · Low lightTexture contrast is reduced in highlights.Facial shadows obscure local features.
Сравнение перекрытия лица
Не допускайте попадания волос на глаза и перекрытия черт лица руками или предметами. В документации Advanced API влияние очков не подтверждено; до проверки избегайте бликов в качестве меры предосторожности.
Avoid · Hair over eyesAvoid · Object occlusion
Face angle
Yaw — поворот головы влево/вправо (рекомендуется ≤±30°). Pitch — наклон вверх/вниз (рекомендуется ≤±40°). Это разные оси.
Front referenceyaw · Left/right turnpitch · 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.
Group
JSON Path
Тип
Meaning
Condition
Оболочка ответа
error_code
string
Business error code; the success sample is OK.
始终返回 / Always present
Оболочка ответа
code
integer
General response code; the success sample is 0.
始终返回 / Always present
Оболочка ответа
msg
string
Response message.
始终返回 / Always present
Оболочка ответа
hasnext
integer
Pagination marker; the synchronous sample is 0.
始终返回 / Always present
Оболочка ответа
lastid
string
Pagination cursor; the synchronous sample is an empty string.
始终返回 / Always present
Task metadata
data
object
Synchronous task metadata, status, and analysis result.
始终返回 / Always present
Task metadata
data.task_id
string
Analysis task ID.
始终返回 / Always present
Task metadata
data.product
string
Product identifier; Advanced is skin_analysis_advanced.
始终返回 / Always present
Task metadata
data.status
string
Synchronous result status; succeeded on success and failed on failure.
始终返回 / Always present
Task metadata
data.created_at
number
Task creation time (Unix seconds).
始终返回 / Always present
Task metadata
data.completed_at
number | null
Analysis completion time (Unix seconds).
响应可能为 null / May be null
Task metadata
data.expires_at
number | null
Result expiry metadata (Unix seconds).
响应可能为 null / May be null
Upstream response
data.result
object
The original JSON result from the underlying Advanced service.
成功时 / On success
Upstream response
data.result.request_id
string
Upstream request ID.
当前结构样例 / In current sample
Upstream response
data.result.log_id
string
Upstream log ID.
当前结构样例 / In current sample
Errors and warnings
data.result.error_detail
object
Upstream error detail with code, code_message, and message; distinct from top-level error_code.
当前结构样例 / In current sample
Errors and warnings
data.result.warning
array
Upstream warnings; empty in the current sample.
可能为空 / May be empty
Face localization
data.result.face_rectangle
object
Face box with top, left, width, and height; origin, units, and boundary rules need backend confirmation.
当前结构样例 / In current sample
Skin color and age
data.result.result.skin_color
object
Skin-color detection object with value and confidence.
当前结构样例 / In current sample
Skin color and age
data.result.result.skin_age.value
number
Skin-age result; units and classification are not defined in the current sample.
Regional pore and blackhead values and confidence.
当前结构样例 / In current sample
Issue regions
data.result.result.acne.rectangle[]
array<object>
Acne detection rectangle array; each entry contains top, left, width, and height.
当前结构样例 / In current sample
Issue regions
data.result.result.closed_comedones.rectangle[]
array<object>
Closed-comedone rectangle array; each entry contains top, left, width, and height.
当前结构样例 / In current sample
Issue regions
data.result.result.mole.rectangle[]
array<object>
Mole rectangle array; each entry contains top, left, width, and height.
当前结构样例 / In current sample
Issue regions
data.result.result.skin_spot.rectangle[]
array<object>
Skin-spot rectangle array; each entry contains top, left, width, and height.
当前结构样例 / In current sample
Parameter-dependent output
data.result.result.*.confidence (for rectangles)
not confirmed
The 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 output
data.result.result.face_maps.red_area
Base64 image (documented)
Documented as conditional on return_maps=red_area; absent from the current sample. Encoding and Data URL prefix are not confirmed.
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.
Not to scale. It does not establish a top-left origin or pixel units.
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
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.
Описание endpoint
Анализ кожи Pro
Синхронно возвращает структурированные данные анализа кожи. Можно запросить карты, разметку областей, оценки и результаты для левого и правого профиля, чтобы создавать отчёты в продукте. Успешные результаты также сохраняются в истории задач.
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_results
string
No
未传时不返回侧脸扩展结果
Параметр: jawline_info. Для его использования загрузите хотя бы одно профильное фото.
roi_outline_color
string (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.
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.
roi_outline_color · color overrides
Blank keeps the backend default; overrides are six hex RGB digits without #.
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.
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.
Added moisture, sensitivity, pigmentation, wrinkle, roughness and scoring features, plus contour coordinates and custom colors.
return_maps · Image maps
Значение
Meaning and output
red_area
Facial redness or sensitivity; white background with darker red indicating stronger intensity.
brown_area
Facial pigmentation areas on a white background.
texture_enhanced_pores
Pore overlay; transparent PNG at original image size.
texture_enhanced_blackheads
Blackhead overlay; transparent PNG at original image size.
texture_enhanced_oily_area
Oily-area overlay; transparent PNG at original image size.
texture_enhanced_lines
Deep and fine wrinkle overlay; transparent PNG at original image size.
water_area
Dryness map; white background PNG, with darker blue indicating more dehydration.
rough_area
Skin roughness map on a white background.
roi_outline_map
Pigmentation and acne outlines; transparent PNG at original image size.
texture_enhanced_bw
Enhanced 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_map
Right/left pigmentation and acne outlines; transparent PNG at original image size.
return_marks · Region coordinates and marks
Значение
Returned data
wrinkle_mark
Wrinkle contour coordinates for forehead, nose, crow’s feet, cheeks, and glabella.
right_nasolabial_list / left_nasolabial_list
Coordinates, depth, and length of left/right nasolabial folds.
right_mouth_list / left_mouth_list
Coordinates, depth, and length of left/right mouth-corner wrinkles.
right_eye_wrinkle_list / left_eye_wrinkle_list
Coordinates of wrinkles around the left/right eyes.
right_crowsfeet_list / left_crowsfeet_list
Coordinates, depth, and length of left/right crow’s feet.
right_cheek_list / left_cheek_list
Coordinates, depth, and length of left/right cheek wrinkles.
glabella_wrinkle_list / forehead_wrinkle_list
Coordinates, depth, and length of glabella and forehead wrinkles.
dark_circle_outline
Left and right under-eye dark-circle contour coordinates.
sensitivity_mark / melanin_mark
Coordinates of redness/sensitivity and pigmentation regions.
cheekbone_mark
Coordinates for left and right cheekbone/apple-cheek regions.
roi_outline_color · Outline colors
JSON key
По умолчанию
Applies to
pores_color
0000FF
Pore map
blackhead_color
FF0000
Blackhead map
wrinkle_color
6E9900
Deep wrinkle map
fine_line_color
8DFE2A
Fine-line map
closed_comedones_color
00FF00
Closed-comedone outlines
acne_pustule_color
9F21F6
Pustule outlines
acne_nodule_color
FF00FD
Nodule outlines
acne_color
FE0100
Papule outlines
brown_spot_color
7E2A28
Pigmentation 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
Код результата службы анализа, сведения об ошибках и идентификаторы трассировки запроса. Проверьте HTTP-статус, внешние code/error_code и статус задачи.
data.result.face_rectangle
object
Прямоугольник лица с параметрами top, left, width и height.
data.result.result
object
Основной объект анализа Pro с типом кожи, результатами распознавания, оценками, картами и метаданными улучшенного изображения.
result
object
Основной объект результата анализа кожи; поля result.* ниже относятся к этому объекту.
result.image_quality
JSON string / object
Содержит face_ratio, face_orientation (yaw/pitch/roll), face_rect, hair_occlusion и glasses. В схеме указана JSON-строка; обрабатывайте значение в соответствии с фактическим типом.
result.skin_type / oily_intensity / water
object
Тип кожи и уверенность; жирность в Т-зоне, на щеках, подбородке и всём лице; площадь и области обезвоживания. Тип: 0 жирная, 1 сухая, 2 нормальная, 3 комбинированная.
result.skintone / skintone_ita / skin_hue_ha
object
Категория тона кожи, классификация ITA и классификация оттенка HA; при неправильном освещении может появиться категория abnormal/other.
Площадь и концентрация пигментации, а также распознавание родинок, коричневых пятен, мелазмы и веснушек; могут возвращаться количество, уверенность, прямоугольник и координаты полигона.
Возраст кожи, области морщин, степень выраженности, количество, длина, глубина и координаты меток. Конкретные поля зависят от результатов распознавания.
Возвращается для соответствующего профильного фото при запросе return_side_results=jawline_info. В примере используется объект, но справочник API допускает и JSON-строку. Обрабатывайте оба типа. Могут содержаться данные о линии челюсти, акне/пигментации и необязательные face_maps.
В локальном полном примере ответа 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.
Rating
Score 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.
Severity
Score Range
Severe
[30, 49]
Moderate
[50, 69]
Mild
[70, 89]
None
[90, 100]
Skin Concern Scores
Skin Concern
API Field
Pores
pores_score
Blackheads
blackhead_score
Acne
acne_score
Wrinkles
wrinkle_score
Dark Circles
dark_circle_score
Skin Moisture
water_score
Skin Sensitivity
sensitivity_score
Melanin
melanin_score
Skin Roughness
rough_score
Oiliness
oily_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 Region
API Field
Forehead
pores_type_score.pores_forehead_score
Right Cheek
pores_type_score.pores_rightcheek_score
Left Cheek
pores_type_score.pores_leftcheek_score
Jaw
pores_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 Region
API Field
Left Eye
dark_circle_type_score.left_dark_circle_score
Right Eye
dark_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 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.
Описание endpoint
Рекомендации по уходу за кожей
Передайте полный объект data из успешного ответа Skin Analysis Pro. API использует его поле result для формирования рекомендаций по уходу. Ответы Basic и Advanced не поддерживаются; одного task_id недостаточно.
Этот endpoint принимает полный объект data из успешного ответа Pro. Бесплатный отчёт на главной странице — локальное представление, объединяющее результаты нескольких служб; он не определяет схему ответа этого endpoint.
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_data
object
Yes
无(必填)
Передайте полный объект data из успешного ответа Skin Analysis Pro (значение поля data; не оборачивайте его в ещё один объект data). Он должен содержать product="skin_analysis_pro", status="succeeded" и result в виде объекта JSON. Одного task_id недостаточно.
language
string
No
en
Поддерживаемые коды языков (с учётом регистра; передавайте точное значение): английский 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.
03Submit care taskskin_analysis_data = response.data
04Keep task_idAcceptance does not mean completion
05Poll statusEvery 2–5 seconds; stop at a terminal state
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
Эти входные данные недопустимы для endpoint
• 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-ключи меняются в зависимости от языка; сохраняйте ключи и неизвестные поля без изменений.
JSON API и представление отчёта на главной странице
Бесплатный пример на главной странице — локально сформированный отчёт, демонстрирующий уровень представления. Это не JSON, возвращаемый одним вызовом SkinCare Recommendations API. Ориентируйтесь на фактический ответ 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.
Почему нужно использовать данные Skin Analysis Pro?
Для endpoint требуется product=skin_analysis_pro и объект data из успешного ответа Pro.
Можно передать только task_id?
Нет. Передайте полный объект data из успешного ответа Pro.
Можно передать результаты Basic?
Нет. Продукт Basic не соответствует требованиям входных данных этого endpoint.
Можно передать результаты Advanced?
Нет. Продукт Advanced не соответствует требованиям входных данных этого endpoint.
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 с рекомендациями?
После успешного завершения внешней задачи вызовите GET /api/developer/v1/tasks/{task_id}/result; полный исходный JSON находится в data.result.
Как выбрать язык результата?
Укажите language; значение по умолчанию — en. Используйте точный код из таблицы языков.
Есть ли у JSON рекомендаций фиксированная схема?
Нет. Сохраняйте весь data.result и допускайте неизвестные поля. skin-report-v1 описывает один существующий пример.
Accepted requests return a task_id. — credits are held and charged only after a successful saved result.
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
Описание endpoint
Оценка лица
Анализирует симметрию лица, форму, пропорции, впечатление о коже и стиле. Результат включает частные и общую оценки, комментарии, списки проблем, рекомендации по улучшению и изображения результата.
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
Описание endpoint
Тест привлекательности
Создаёт изображение анализа привлекательности, которым можно поделиться, сохраняя исходный портрет. В исходной документации указаны визуальный баланс, гармония лица, уверенность и привлекательность стиля; схема ответа сейчас определяет только URL изображений результата.
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.
При успехе data.result содержит JSON-данные соответствующего базового продукта. Структура результата зависит от продукта и не унифицирована. Обрабатывайте данные с учётом продукта и допускайте неизвестные поля. Задача со статусом failed возвращает error.code без result; для queued или processing возвращается бизнес-ошибка «результат ещё не готов». expires_at устанавливается на 24 часа после создания результата, но endpoint чтения пока не проверяет срок действия, а просроченные данные не удаляются автоматически.
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_urls
array<string>
Список URL изображений результата. Каждый URL временно доступен в течение 24 часов.
Поля выше соответствуют справочнику Face Rating API. Результат продукта находится в data.result; task_id, status и expires_at остаются частью оболочки асинхронной задачи этого продукта.
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.
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.
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_urls
array<string>
Список URL изображений результата.
result_urls[]
string
URL изображения результата, который, согласно документации, действителен 24 часа.
Выбирайте обработчик по error_code или task data.error.code, а не по локализованному msg. Бизнес-ошибки используют 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 и время запроса.