Skip to main content
Geekflare Web Scraping API supports 6 output formats via the format parameter. Whether you are archiving full web pages, extracting structured data, or feeding Retrieval-Augmented Generation (RAG) pipelines, you can request the exact data structure you need.

The -llm Optimized Formats

For AI developers, we offer specialized -llm formats. These formats run our semantic cleaning engine before returning the response. They automatically strip out boilerplate, navigation bars, footers, sidebars, advertisements, and hidden elements, returning only the primary content of the page. Using -llm formats dramatically reduces noise, improves LLM inference accuracy, and saves massive amounts of tokens.

Format Reference

You can pass one of the following string values into the format parameter of your API request. *Token savings are estimates based on average news articles and blog posts compared to processing the raw HTML DOM.

Example Usage

To request an LLM-optimized Markdown response, simply set the format parameter in your JSON payload. API request to get Markdown LLM format:

Choosing the Right Format for AI

If you are building an AI application, choosing between the -llm formats depends on your specific pipeline:
  1. Use markdown-llm when you need to chunk data for a Vector Database. Markdown preserves ## Headings, which chunking algorithms use to keep contextual ideas together. It also preserves data tables.
  2. Use text-llm when you are doing massive batch processing and need the absolute lowest token count possible, or when simply generating mathematical vector embeddings where structural tags are unnecessary.
  3. Use html-llm when you are passing data to an LLM that has been specifically fine-tuned to read DOM structures and CSS classes.