Markdown API
GET https://llmfoundry.straive.com/-/markdown?url=...
converts the HTML on the page to Markdown. This is useful to pass contents to an LLM. For example:
# Convert the Wikipedia page on Socrates to Markdown
curl "https://llmfoundry.straive.com/-/markdown?url=https://en.wikipedia.org/wiki/Socrates
By default, this strips out all navigation, etc. and returns only the main article. You can specific:
?n=[number of articles]
: If a page contains a list of news items, e.g. BBC News, specific?n=10
to get 10 news items - or?n=0
to convert the entire page (including navigation) to Markdown. Example: BBC News in Markdown?links
: If you use?n=0
then by default, links are not included (to reduce tokens). Add&links
to include them. Example: BBC News in Markdown with links