Skip to main content
After calling faceAge.render(), use faceAge.API to read results and control the SDK.

Results

getAdvisorData

Read the analysis results and quiz answers:

getActiveSelections

Read the quiz answers:

getImage

Read the submitted image:

getRoutineGroup

Read the available routine groups:

Products

setCustomProducts

Push your own product catalog into the SDK. Products are matched to detected skin problems automatically.

History

setHistoryData

Restore history from your backend. Requires the history: true option.
When several history items are available, opening an analysis shows a Compare tab to compare it with any older scan. Shared metrics are normalized before comparison. Changes inside a 3-point noise band are treated as stable; the optional meta.quality values widen that band, or mark very low-confidence comparisons as insufficient data.

removeHistoryItem

Remove a history entry by its reference token. Pass null to clear all local history.

Routine tab content

setComments

Fill the customer review carousel in the routine tab.
Each item needs name and one of comment, text or body. Comments longer than 280 characters are truncated with a “read more” toggle. Returns true on success, false on error.

setShorts

Fill the short video/image carousel in the routine tab.
Each item needs coverImage or videoUrl. javascript:, data: and vbscript: URLs are rejected. Returns true on success, false on error.

setSort

Set the order of the tabs on the analysis result page: scan, routine and recommendations. Tabs you don’t list keep their default position after the ones you do.
If the result page is already open, the tabs are re-ordered immediately. Returns true on success, false on error.

Reports and integrations

getReportPdf

Generate a PDF report. Requires PDF access on your Face Age plan.

submitSdkIntegration

Send the full analysis payload — skin results, products, quiz data and brand metadata — to the SDK-call integration endpoint. Without an email argument, Face Age uses email or clientEmail from the quiz answers.
Quiz data is normalized to [{ question, answer }] before submission.