⚙️ REST API Documentation

Automate infographics generation directly via n8n or any HTTP client.

← Back to App

Endpoint Overview

POST https://newsinfo.sademo.click/api.php

n8n Node Configuration

Send a properly formatted JSON payload to this endpoint, and the server will instantly download your assets, composite the graphical layers, and respond with a direct public URL to the finished PNG file.

Request Body (application/json)

Parameter Type Description
headline string "The dynamic text parsed from your other n8n steps"
main_image string (URL) "https://link-to-your-base-image.jpg"
main_video string (URL) "https://link-to-your-base-video.mp4" (Use this instead of main_image to overlay graphics on an uploaded video. Requires format: "video")
logo string (URL) "https://newsinfo.sademo.click/assets/your-logo.png"
social_bar string (URL) "https://newsinfo.sademo.click/assets/your-social.png"
color string (Hex) The HTML HEX color code for the underlying vignette overlay (e.g. #0b2902).
font_family string Select typography. Available options:
Shakuntala, Kalpurush, Hind Siliguri, Noto Serif Bengali, Anek Bangla, Baloo Da 2, Tiro Bangla, League Spartan, Basic Language Font, Montserrat, Roboto, Mukta, Teko, Yatra One.
template string Select the layout style. Options:
"1" (Vignette Centered)
"2" (Solid Split + Yellow Bar)
"3" (Vignette + Yellow Bar)
"4" (Vignette + Top-Left Logo)
"5" (Solid Bg + Framed Image + Top-Left Logo)
"6" (Long Text Template)
Defaults to "1".
vStart integer The vertical Y-pixel coordinate where the layout split/vignette should begin for template 2 and 3. Defaults to 580.
format string The format of the returned media. Options: "image" or "video". Defaults to "image". Video generation requires FFmpeg on your server.
size string Aspect ratio dimensions of output. Options: "1:1", "9:16", "4:5", "16:9". Defaults to "1:1".
Example n8n Payload
{
  "headline": "The dynamic text parsed from your other n8n steps",
  "main_image": "https://link-to-your-base-image.jpg",
  "main_video": "",
  "logo": "https://newsinfo.sademo.click/assets/your-logo.png",
  "social_bar": "https://newsinfo.sademo.click/assets/your-social.png",
  "color": "#0b2902",
  "font_family": "Kalpurush",
  "template": "6",
  "vStart": 580,
  "format": "video",
  "size": "9:16"
}
Success Response
{
  "success": true,
  "url": "https://newsinfo.sademo.click/uploads/02-2026/infographics-249013.png"
}