Media

Harvest a page's images

Harvest all images from a page with their metadata.

post/v1/web/images

Request

  • Base URL: https://api.hydrafetch.com
  • URL: https://api.hydrafetch.com/v1/web/images
  • Auth: API key in header X-API-Key

Request body

urlstring required

The URL to harvest images from. Must be http(s).

maxAgenumber

Serve from cache if a capture of this URL is younger than this many milliseconds. Omit for the default window; 0 always fetches fresh. Capped at 7 days.

Example request

{
  "url": "https://example.com"
}

Response

Example response

{
  "data": {
    "url": "https://example.com",
    "finalUrl": "https://example.com/",
    "images": [
      {
        "src": "https://example.com/logo.png"
      }
    ]
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.