<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: GoScreen Api</title>
    <description>The latest articles on DEV Community by GoScreen Api (@goscreenapi).</description>
    <link>https://dev.to/goscreenapi</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3930629%2F25d4cfdb-ad1a-47ee-9835-4c1815114000.png</url>
      <title>DEV Community: GoScreen Api</title>
      <link>https://dev.to/goscreenapi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/goscreenapi"/>
    <language>en</language>
    <item>
      <title>Exploring GoScreenAPI's Visual Diff Feature: A Comprehensive Guide</title>
      <dc:creator>GoScreen Api</dc:creator>
      <pubDate>Tue, 19 May 2026 00:15:00 +0000</pubDate>
      <link>https://dev.to/goscreenapi/exploring-goscreenapis-visual-diff-feature-a-comprehensive-guide-5em3</link>
      <guid>https://dev.to/goscreenapi/exploring-goscreenapis-visual-diff-feature-a-comprehensive-guide-5em3</guid>
      <description>&lt;p&gt;In today's fast-paced digital landscape, ensuring visual consistency across web applications is paramount. Whether you're a developer performing regression testing, a designer validating UI changes, or a product manager seeking insights into layout discrepancies, having the right tools at your disposal can make all the difference. GoScreenAPI's Visual Diff feature offers a powerful solution to compare screenshots of web pages, highlighting the differences between versions. &lt;/p&gt;

&lt;p&gt;In this article, we'll take a deep dive into how to leverage the Visual Diff feature of GoScreenAPI. We’ll cover its functionality, walk through practical use cases, and provide code snippets to help you integrate this feature seamlessly into your workflow.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is Visual Diff?
&lt;/h2&gt;

&lt;p&gt;The Visual Diff feature in GoScreenAPI allows users to capture screenshots of webpages at different points in time or from different sources. By comparing these images, developers can easily spot changes in layout, design, and content, ensuring that updates do not inadvertently introduce visual inconsistencies.&lt;/p&gt;

&lt;h2&gt;
  
  
  Getting Started with Visual Diff
&lt;/h2&gt;

&lt;p&gt;To use the Visual Diff feature, you first need to capture screenshots of the web pages you want to compare. Here’s how you can do that using GoScreenAPI.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1: Capture Screenshots
&lt;/h3&gt;

&lt;p&gt;You can capture screenshots using the GoScreenAPI's screenshot endpoint. Here’s a simple example using cURL:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-X&lt;/span&gt; POST &lt;span class="s2"&gt;"https://api.goscreenapi.com/screenshot"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
&lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"Authorization: Bearer YOUR_API_KEY"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
&lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"Content-Type: application/json"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
&lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="s1"&gt;'{
  "url": "https://example.com/old-version",
  "viewport": "1280x800"
}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This command captures a screenshot of the specified URL. You will need to repeat this step for the new version of your web page.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: Compare Screenshots
&lt;/h3&gt;

&lt;p&gt;Once you have both screenshots, you can use the Visual Diff endpoint to compare them. Here’s an example of how to do that:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-X&lt;/span&gt; POST &lt;span class="s2"&gt;"https://api.goscreenapi.com/visual-diff"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
&lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"Authorization: Bearer YOUR_API_KEY"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
&lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"Content-Type: application/json"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
&lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="s1"&gt;'{
  "image1": "URL_OF_OLD_SCREENSHOT",
  "image2": "URL_OF_NEW_SCREENSHOT"
}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This request will return a new image that highlights the differences between the two screenshots. &lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3: Review
&lt;/h3&gt;

</description>
      <category>api</category>
      <category>testing</category>
      <category>tutorial</category>
      <category>ui</category>
    </item>
    <item>
      <title>How to Use GoScreenAPI for Automated Website Screenshots</title>
      <dc:creator>GoScreen Api</dc:creator>
      <pubDate>Mon, 18 May 2026 10:55:39 +0000</pubDate>
      <link>https://dev.to/goscreenapi/how-to-use-goscreenapi-for-automated-website-screenshots-4ekn</link>
      <guid>https://dev.to/goscreenapi/how-to-use-goscreenapi-for-automated-website-screenshots-4ekn</guid>
      <description>&lt;p&gt;In today's fast-paced digital environment, capturing and utilizing website screenshots efficiently can significantly enhance various workflows, from quality assurance to marketing strategies. GoScreenAPI is a powerful tool that simplifies this task, enabling developers to automate the process of taking screenshots of web pages effortlessly. In this article, we will explore how to use GoScreenAPI to automate screenshots for a specific task: capturing a full-page screenshot of any website.&lt;/p&gt;

&lt;p&gt;By leveraging GoScreenAPI, you can streamline your testing processes, create visual documentation, or even manage your marketing materials more effectively. This API not only simplifies the screenshot-taking process but also provides options for customization, including image formats and dimensions.&lt;/p&gt;

&lt;h3&gt;
  
  
  Getting Started with GoScreenAPI
&lt;/h3&gt;

&lt;p&gt;Before we dive into the code, you will need to set up your GoScreenAPI account and obtain your API key. This key is essential for authenticating your requests. Follow these steps to get started:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Visit &lt;a href="https://goscreenapi.com" rel="noopener noreferrer"&gt;GoScreenAPI&lt;/a&gt; and sign up for an account.&lt;/li&gt;
&lt;li&gt;Navigate to the API section to obtain your unique API key.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Once you have your API key, you're ready to integrate GoScreenAPI into your project.&lt;/p&gt;

&lt;h3&gt;
  
  
  Example: Capturing a Full-Page Screenshot
&lt;/h3&gt;

&lt;p&gt;To illustrate how to use GoScreenAPI, we will write a simple script in JavaScript using Node.js to capture a full-page screenshot of a website. You'll need to install the &lt;code&gt;axios&lt;/code&gt; package to make HTTP requests.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install &lt;/span&gt;axios
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now, let's create a script named &lt;code&gt;screenshot.js&lt;/code&gt;:&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
javascript
const axios = require('axios');

// Replace with your GoScreenAPI key
const apiKey = 'YOUR_API_KEY';
const urlToCapture = 'https://example.com'; // The URL you want to screenshot

async function captureScreenshot() {
    try {
        const response = await axios.post('https://api.goscreenapi.com/screenshot', {
            url: urlToCapture,
            output: 'png', // Specify output format (png, jpg, etc.)
            fullPage: true, // Capture the entire page
        }, {
            headers: {
                'Authorization': `Bearer ${apiKey}`,
                'Content-Type': 'application/json',
            }
        });

        // Output the screenshot URL
        console.log(`Screenshot captured: ${response.data.screenshotUrl}`);
    } catch (error) {
        console.error('Error capturing screenshot
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
    </item>
  </channel>
</rss>
