Integrations/HubSpot
HubSpot

Enrich HubSpot CRM with website screenshots

Visual snapshots for every contact and company in your CRM

Automatically capture and attach website screenshots to HubSpot contacts and companies. Give your sales team instant visual context about prospects' websites without leaving HubSpot. Perfect for qualifying leads and personalizing outreach.

How it works

Connect in 4 steps

1

Create a custom property

Add a custom property in HubSpot to store the screenshot URL.

2

Set up a workflow trigger

Create a HubSpot workflow that triggers when a new contact or company is created.

3

Capture the website

Use a webhook action in the workflow to call the Allscreenshots API with the company's website URL.

4

Store the screenshot

Update the custom property with the returned screenshot URL.

</> Code

HubSpot Workflow Webhook Handler

javascript
1// Webhook handler for HubSpot workflow
2export async function POST(request) {
3  const { website, companyId } = await request.json();
4
5  if (!website) {
6    return Response.json({ skipped: true });
7  }
8
9  // Capture screenshot
10  const screenshotResponse = await fetch(
11    'https://api.allscreenshots.com/v1/screenshot',
12    {
13      method: 'POST',
14      headers: {
15        'Authorization': `Bearer ${process.env.SCREENSHOT_API_KEY}`,
16        'Content-Type': 'application/json',
17      },
18      body: JSON.stringify({
19        url: website,
20        viewport: { width: 1280, height: 800 },
21      }),
22    }
23  );
24  const { screenshotUrl } = await screenshotResponse.json();
25
26  // Update HubSpot company with screenshot
27  await fetch(
28    `https://api.hubapi.com/crm/v3/objects/companies/${companyId}`,
29    {
30      method: 'PATCH',
31      headers: {
32        'Authorization': `Bearer ${process.env.HUBSPOT_TOKEN}`,
33        'Content-Type': 'application/json',
34      },
35      body: JSON.stringify({
36        properties: { website_screenshot: screenshotUrl },
37      }),
38    }
39  );
40
41  return Response.json({ updated: true, screenshotUrl });
42}
Why Allscreenshots

Built for HubSpot

Sales context at a glance

See what a prospect's website looks like without opening a new tab. Qualify leads faster.

Workflow automation

Screenshots are captured automatically when new companies are added to your CRM.

Personalized outreach

Reference specific aspects of a prospect's website in sales emails, backed by visual evidence.

FAQ

Frequently asked questions

Yes. Store the screenshot URL in a custom property and use HubSpot's custom cards or the CRM sidebar to display the image.

Ready to integrate with HubSpot?

Start with 100 free screenshots every month. No credit card required.