Extract Image From Website

This API helps you extract the rendered images from a webpage.

Authentication

Authentication for this API is done using an x-api-key header.

x-api-key: YOUR_API_KEY

API Endpoints

POST https://api.goonlinetools.com/api/extract-image

Parameters:

  • url (required) - The website url (e.g - https://goonlinetools.com/).

Headers:

  • x-api-key (required) - Your API Key.

Response:

{
    "message": "Image URLs successfully extracted.",
    "site": "https://goonlinetools.com",
    "imageCount": 20,
    "imageUrls": [
        "https://goonlinetools.com/logo.png",
        "https://goonlinetools.com/kofi.png",
        "https://app.goonlinetools.com/sponsors/gamaddy/gamaddy-3/",
        "https://app.goonlinetools.com/sponsors/hubsadda/hubsadda-2/",
        "https://app.goonlinetools.com/sponsors/kiwigambler/casino/",
        "https://app.goonlinetools.com/sponsors/nongamstopcasinos/gamstop/",
        "https://goonlinetools.com/laptop.png",
        "https://app.goonlinetools.com/wp-content/uploads/2023/11/web.dev_.png",
        "https://app.goonlinetools.com/wp-content/uploads/2023/11/hashnode.png",
        "https://app.goonlinetools.com/wp-content/uploads/2023/11/hackernoon.png",
        "https://app.goonlinetools.com/wp-content/uploads/2023/11/reddit.png",
        "https://app.goonlinetools.com/wp-content/uploads/2023/11/producthunt.png",
        "https://app.goonlinetools.com/wp-content/uploads/2023/11/ace.png",
        "https://app.goonlinetools.com/wp-content/uploads/2024/06/4048145-G2-2-scaled.jpg",
        "https://secure.gravatar.com/avatar/ea86f797c6e6aea1b9800e389bca7315?s=96&d=mm&r=g",
        "https://app.goonlinetools.com/wp-content/uploads/2023/07/image-6.png",
        "https://secure.gravatar.com/avatar/36f88f49b51379c2390599e8f2e8e934?s=96&d=mm&r=g",
        "https://app.goonlinetools.com/wp-content/uploads/2024/02/image.jpeg",
        "https://secure.gravatar.com/avatar/ea86f797c6e6aea1b9800e389bca7315?s=96&d=mm&r=g",
        "https://goonlinetools.com/logo.png"
    ]
}

Playground

Method: POST

Headers:

KeyValue
x-api-key

Paramas:


Nodejs Sample Request

const axios = require('axios');
  const FormData = require('form-data');
  let data = new FormData();
  
  let config = {
      method: 'post',
      url: 'https://api.goonlinetools.com/api/extract-image?url=https://goonlinetools.com/',
      headers: {
          'x-api-key': 'Your API Key',
          ...data.getHeaders()
      },
      data: data
  };
  
  axios.request(config)
      .then((response) => {
          console.log(JSON.stringify(response.data));
      })
      .catch((error) => {
          console.log(error);
});

Credit Consumption

Each successful request to the API consumes 1 credit.

Important Information

This API does not work if the website uses any type of captcha. Request allowed only to https internet protocol.