Convertissez toute page HTML en Markdown propre, prêt pour LLM. Supprime le chrome (nav, pubs, barres latérales), conserve titres, tableaux, blocs de code, images avec alt et liens. Retourne titre de page, contenu principal en Markdown, nombre de mots, tableaux d'images et de liens extraits, et l'URL principale inférée. Construit pour le batch : 10 000 URLs d'articles en entrée, une ligne par page en sortie. Parfait pour corpus d'entraînement LLM, ingestion RAG, miroirs de documentation et surveillance de contenu.
# Lancer une exécution via l'API Apify curl -X POST "https://api.apify.com/v2/acts/santamaria-automations~html-to-markdown/runs?token=YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "urls": [ "https://blog.example.com/post-1", "https://docs.example.com/getting-started", "https://news.example.com/article-2026" ], "extractImages": true, "extractLinks": true, "mainContentOnly": true }' # Ou utiliser avec des agents IA via MCP : # https://mcp.apify.com?tools=santamaria-automations/html-to-markdown
| Champ | Type | Exemple |
|---|---|---|
| source_url | string | https://blog.example.com/post-1 |
| title | string | Construire des pipelines RAG |
| main_content | string | # Construire des pipelines RAG\n\nUn guide pratique... |
| word_count | integer | 1 842 |
| reading_time_minutes | integer | 8 |
| language | string | fr |
| canonical_url | string | https://blog.example.com/post-1 |
| images | array | [{"src":"...","alt":"diagramme"}] |
| links | array | [{"href":"...","text":"docs"}] |
| scraped_at | string | 2026-06-13T10:15:42Z |
Cliquez sur Ouvrir sur Apify ci-dessus pour lancer html-to-markdown dans votre navigateur – sans code, sans installation. Dans la console Apify, vous obtenez :
Pour lancer cet actor depuis votre propre code, il vous faut un jeton API Apify. Environ une minute :
Quota gratuit : Apify crédite votre compte de 5$ d'usage plateforme par mois, sans carte bancaire. Assez pour tester n'importe quel actor — à 0,001$ par résultat, c'est environ 5 000 résultats gratuits chaque mois.
Lancez cet actor depuis n'importe quel langage via l'API REST Apify. Remplacez YOUR_TOKEN par votre jeton API et adaptez le JSON d'entrée.
curl -X POST "https://api.apify.com/v2/acts/santamaria-automations~html-to-markdown/run-sync-get-dataset-items?token=YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'// npm install apify-client
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_TOKEN' });
const run = await client.actor('santamaria-automations/html-to-markdown').call({});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);# pip install apify-client
from apify_client import ApifyClient
client = ApifyClient('YOUR_TOKEN')
run = client.actor('santamaria-automations/html-to-markdown').call(run_input={})
items = list(client.dataset(run['defaultDatasetId']).iterate_items())
print(items)// dotnet add package Apify.Client
using Apify.Client;
var client = new ApifyClient("YOUR_TOKEN");
var run = await client.Actor("santamaria-automations/html-to-markdown").CallAsync(new { });
var items = await client.Dataset(run.DefaultDatasetId).ListItemsAsync();// Maven: com.apify:apify-client
import com.apify.client.ApifyClient;
ApifyClient client = new ApifyClient("YOUR_TOKEN");
ActorRun run = client.actor("santamaria-automations/html-to-markdown").call(Map.of());
List<Map<String,Object>> items = client.dataset(run.getDefaultDatasetId()).listItems();Cet actor est disponible sur le serveur MCP Apify, vous pouvez donc le piloter depuis n'importe quel client IA compatible MCP – Claude Desktop, Claude.ai, Cursor, VS Code, LangChain, LlamaIndex ou un agent maison – sans écrire de code.
https://mcp.apify.com?tools=santamaria-automations/html-to-markdownExemple de prompt une fois connecté :
"Utilise html-to-markdown pour lancer un scrape et donne-moi les résultats sous forme de tableau."
Les clients avec découverte dynamique des outils (Claude.ai, VS Code) reçoivent le schéma d'entrée complet automatiquement via add-actor.
Déclenchez cet actor depuis votre outil d'automatisation. Toutes les plateformes ci-dessous peuvent appeler l'API Apify en quelques clics — sans code.
@apify/n8n-nodes-apify).santamaria-automations/html-to-markdown.https://api.apify.com/v2/acts/santamaria-automations~html-to-markdown/run-sync-get-dataset-items?token=YOUR_TOKEN.application/json.https://api.apify.com/v2/acts/santamaria-automations~html-to-markdown/run-sync-get-dataset-items?token=YOUR_TOKEN, méthode POST, body raw JSON.https://api.apify.com/v2/acts/santamaria-automations~html-to-markdown/run-sync-get-dataset-items?token=YOUR_TOKEN.steps.http.$return_value dans les étapes suivantes.https://api.apify.com/v2/acts/santamaria-automations~html-to-markdown/run-sync-get-dataset-items?token=YOUR_TOKEN, body type JSON.