Learn how to generate Markdown using Wetrocloud API
/v2/markdown-converter/
endpoint to generate markdown from (URLs, files). Simply provide a link
, and type
.Resource | Parameter | Description |
---|---|---|
File | file | Supports various file types including .csv , .docx , .epub , .hwp , .ipynb , .jpeg , .jpg , .mbox , .md , .mp3 , .mp4 , .pdf , .png , .ppt , .pptm , .pptx . |
Web | web | Web-based resources, such as websites. |
Image | image | Supports various images file types including .jpg , .jpeg , .png , .gif , .bmp , .tiff , .tif , .webp , .heif , .heic , .ico , .svg , .raw , .psd , .ai , .eps , .indd , .jfif , .apng , .avif , .exr , .dds , .aii , .emf , .wdp |
file
type, all files must be provided as URLs. You can consider services like Amazon S3, Cloudinary, or similar platforms to host your files and provide their URLs to the API. POST
request to the /v2/markdown-converter/
endpoint with the required parameters in the body.
Parameter | Type | Description |
---|---|---|
link | String | A URL for your resource. |
resource_type | String | The type of resource to insert (e.g., web , file , image ). |
Field | Description |
---|---|
success | Indicates whether the resource was inserted successfully. |
tokens | Number of tokens consumed during the operation. |
response | Result for the markdown generation |