Image Source Extractor
Extract image URLs (src attributes) from HTML source code. Supports lazy-loaded images and srcset attributes.
API Documentation
Request Endpoint
POST /en/api/tools/image-source-extractor
Request Parameters
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| htmlCode | textarea | Yes | - |
| includeDataSrc | checkbox | No | Also extract from data-src attributes (lazy-loaded images) |
| includeSrcSet | checkbox | No | Also extract from srcset attributes (responsive images) |
| uniqueOnly | checkbox | No | Remove duplicate image URLs from the results |
| sortBy | select | No | Choose how to sort the extracted image URLs |
Response Format
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}
JSON Data:
JSON Data
AI MCP Documentation
Add this tool to your MCP server configuration:
{
"mcpServers": {
"elysiatools-image-source-extractor": {
"name": "image-source-extractor",
"description": "Extract image URLs (src attributes) from HTML source code. Supports lazy-loaded images and srcset attributes.",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=image-source-extractor",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}
You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.
If you encounter any issues, please contact us at [email protected]