Prerequisites
Before you begin, make sure you have your EyeQuant API key available. If you do not have one yet, see the Authentication page for details on how to obtain credentials.Submit an analysis
Send a A successful submission returns an HTTP Save the
POST request to /v2/analyses to kick off a new analysis. In the request body, specify the type of input you are providing. For this quickstart, you will analyze the Google homepage using the webPageUrl input type on a desktopWeb medium — this instructs the API to take a desktop-browser screenshot of the URL and run the full attention analysis pipeline on it.Replace $apikey with your actual API key before running this command:201 Created response with the new analysis ID and a location URL you will use in the next step:id value — you will need it to poll for results.Poll for results
Taking a screenshot and running the attention model both take time, so analyses are processed asynchronously. Retrieve the analysis by making a While the analysis is still running, the response status will be Keep polling the same endpoint until the status changes. Once the analysis completes successfully, the response includes an
GET request to /v2/analyses/{id} using the ID returned in the previous step:pending:outputs object containing links to the generated maps:Download and store the heatmap
The Store the downloaded image and any other output data on your own infrastructure as soon as possible. Output URLs are time-limited and will expire — the EyeQuant API does not guarantee long-term availability of these links.
attentionMap URL in the outputs object points directly to the generated heatmap image hosted on AWS S3. Download it using a standard HTTP GET — no additional Authorization header is needed, because the URL already contains a time-limited access token:Next steps
You have just completed a full analysis using a web page URL. EyeQuant supports additional input types and media modes to cover a wide range of use cases:- Uploaded images — Submit a base64-encoded PNG or JPEG using the
imageinput type to analyze static designs or assets that are not publicly hosted. - Mobile and generic viewports — Swap
"medium": "desktopWeb"for"medium": "mobileWeb"or"medium": "generic"to simulate different viewing contexts. - Video analysis — Upload a video file using
GET /v2/upload-urlsto obtain a presigned upload URL, then submit the analysis viaPOST /v2/analyses/video.
