API.Market
Go to API.market
  • Welcome to API.market
  • What are API Products?
  • How to subscribe to a SaaS API Product?
  • Managing Subscriptions
  • Analytics & Logs
  • How can I cancel my Subscription?
  • How do I add payment details?
  • How does API.market charges me?
  • Error Codes
  • Seller Docs
    • API Seller Console
    • What is an API Product?
    • What is a Pricing Plan
    • Importing an API Source
    • Creating a Product using the Wizard
    • Testing Your APIs & Products
    • Analytics & Logs
    • Custom Usage
    • Overriding Custom Usage on Result Retrieval
  • FUNDAMENTALS
    • Convert Postman Collection to OpenAPI Yaml
    • Create OpenAPI spec using ChatGPT
  • About Us
  • API Product Docs
    • MagicAPI
      • Screenshot API
      • Domain Availability Checker API
      • WhoIS API
      • PDF Conversion API
      • Image Upscale API
      • DNS Checker API
      • Ageify API
      • Image Restoration API
      • Toon Me API
      • Coding Assistant
      • 🎭 FaceSwap API: Instantaneous replaces face with one another
      • 🏞️ Image Upload API
      • Deblurer API
      • Hair Changer API
      • 🤳🏻🤖AI Qr Code Generator API
      • Whisper API
      • Image Colorizer API
      • OpenJourney API
      • Object Remover API
      • Image Captioner API
      • Object Detector API
      • NSFW API
      • Crunchbase API
      • Pipfeed's Extract API Developer Documentation
      • Migrating from Capix FaceSwap API to magicapi/faceswap-capix API
    • BridgeML
      • Meta-Llama-3-8B-Instruct
      • Meta-Llama-3-70B-Instruct
      • Mistral-7B-Instruct-v0.1
      • Mixtral-8x22B-Instruct-v0.1
      • Meta-Llama-2-7b
      • Meta-Llama-2-13b
      • Meta-Llama-2-70b
      • Gemma-7b-it
      • NeuralHermes-2.5-Mistral-7B
      • BAAI/bge-large-en-v1.5
      • CodeLlama-70b-Instruct-hf
      • 🤖🧗Text-to-Image API
      • 📝🎧 Text to Audio API
    • Capix AI
      • FaceSwap Image and Video Face Swap API
      • MakeUp
      • Photolab.me
      • AI Picture Colorizer
      • AI Picture Upscaler
      • AI Background Remover
      • Object Remover
      • TTS Universal
      • Home GPT
      • AI & Plagiarism Checker
      • AI Story Generator
      • AI Essay Generator
      • Book Title Generator
    • Trueway
      • ⛕ 🗺️ Trueway Routing API
      • 🌐📍Trueway Geocoding API: Forward and Reverse Geocoding
      • 🛤️ ⏱️Trueway Matrix API: Travel Distance and Time
      • 🏛️ Trueway Places API
    • AILabTools
      • Cartoon-Yourself
    • SharpAPI
      • 📄 AI-Powered Resume/CV Parsing API
      • 🛩️ Airports Database & Flight Duration API
    • Text to Speech
      • Turn your text into Magical-sounding Audio
Powered by GitBook
On this page
  • About
  • Curl Request and Response
  1. API Product Docs
  2. MagicAPI

Screenshot API

A simple way to take a screenshot of a website by providing its URL.

PreviousMagicAPINextDomain Availability Checker API

Last updated 12 months ago

Developer portal :

About

Introducing our Screenshot API – your gateway to effortless webpage capture and transformation. Designed for developers and businesses alike, this robust tool simplifies the process of capturing screenshots of webpages, enabling you to extract valuable visual information with ease.

With just a few lines of code, you can harness the full potential of our API to capture webpage screenshots in various formats, whether you need them for analysis, documentation, or presentation purposes.

Using our API is straightforward. Simply integrate it into your application or workflow, and you're ready to go. Whether you're capturing screenshots of URLs or local files, our endpoints make it effortless to obtain high-quality images on demand. Need to capture a screenshot of a webpage hosted online? Utilize the 'api/screenshot/' endpoint. Want to capture a screenshot of a webpage from a locally stored HTML file? The '/api/screenshot/' endpoint is at your service.

But why choose our Screenshot API? . By automating the screenshot capture process, our API saves you valuable time and resources. Say goodbye to manual screenshotting tasks and hello to streamlined webpage capture. Whether you're building visual testing tools, monitoring web page changes, or creating dynamic reports, our API empowers you to unlock the full potential of webpage screenshots.

And what about the output? Our API provides screenshots in various formats, including PNG, JPEG, or even PDF, depending on your requirements. With support for customizable resolution and format options, our API ensures flexibility and compatibility with a wide range of use cases.

In summary, our Screenshot API is the ultimate solution for simplifying webpage capture tasks. Whether you're a developer seeking to streamline workflows or a business aiming to enhance visual documentation, our API provides the tools you need to succeed. Experience effortless webpage capture and transformation today with our Screenshot API.

Curl Request and Response

Request

curl -X 'GET' \
  'https://api.magicapi.dev/api/v1/magicapi/screenshot-api/api/screenshot?resX=1280&resY=900&outFormat=jpg&waitTime=100&isFullPage=false&dismissModals=false&url=https%3A%2F%2Fapi.market%2F' \
  -H 'accept: image/jpeg' \
  -H 'x-magicapi-key: API_KEY'
const fetch = require('node-fetch');

let url = 'https://api.magicapi.dev/api/v1/magicapi/screenshot-api/api/screenshot?resX=1280&resY=900&outFormat=jpg&waitTime=100&isFullPage=false&dismissModals=false&url=https%3A%2F%2Fapi.market%2F';

let options = {method: 'GET', headers: {'x-magicapi-key': 'SOME_STRING_VALUE'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error('error:' + err));
import http.client

conn = http.client.HTTPSConnection("api.magicapi.dev")

headers = { 'x-magicapi-key': "SOME_STRING_VALUE" }

conn.request("GET", "/api/v1/magicapi/screenshot-api/api/screenshot?resX=1280&resY=900&outFormat=jpg&waitTime=100&isFullPage=false&dismissModals=false&url=https%3A%2F%2Fapi.market%2F", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("https://api.magicapi.dev/api/v1/magicapi/screenshot-api/api/screenshot?resX=1280&resY=900&outFormat=jpg&waitTime=100&isFullPage=false&dismissModals=false&url=https%3A%2F%2Fapi.market%2F")
  .get()
  .addHeader("x-magicapi-key", "SOME_STRING_VALUE")
  .build();

Response response = client.newCall(request).execute();
<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://api.magicapi.dev/api/v1/magicapi/screenshot-api/api/screenshot?resX=1280&resY=900&outFormat=jpg&waitTime=100&isFullPage=false&dismissModals=false&url=https%3A%2F%2Fapi.market%2F",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "x-magicapi-key: SOME_STRING_VALUE"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}

Response

https://api.market/store/magicapi/screenshot-api