# Gaffa

> Gaffa is a web scraping API for developers and AI agents. One request turns any web page into clean HTML, Markdown, JSON, a screenshot, a PDF or a file. Gaffa runs the browser, the anti-bot layer and the proxies.

## Site

- [Home](https://gaffa.dev): What Gaffa does, and how to start.
- [Agent setup](https://gaffa.dev/agents.md): Instructions for an AI agent to set a person up with Gaffa: an account, an API key, the Gaffa skills and a first request.
- [Blog](https://gaffa.dev/blog): Guides and customer stories.
- [Contact](https://gaffa.dev/contact): Talk to the Gaffa team.
- [Full docs](https://gaffa.dev/llms-full.txt): The complete documentation as one file.

> Agents can also search and read this documentation through its [MCP server](https://gaffa.dev/docs/~gitbook/mcp).

## Documentation

- [Introduction](https://gaffa.dev/docs/introduction.md): What is Gaffa?
- [Get Started](https://gaffa.dev/docs/get-started.md): An introduction to the Gaffa Browser API. Learn how you can get started building fast, powerful web automations!
- [Credits and Pricing](https://gaffa.dev/docs/credits-and-pricing.md)
- [Browser Requests](https://gaffa.dev/docs/features/browser-requests.md): Making web automation requests has never been so simple.
- [Parameters](https://gaffa.dev/docs/features/browser-requests/parameters.md)
- [Settings](https://gaffa.dev/docs/features/browser-requests/settings.md)
- [Selectors](https://gaffa.dev/docs/features/browser-requests/selectors.md)
- [Actions](https://gaffa.dev/docs/features/browser-requests/actions.md)
- [Block DOM Removals](https://gaffa.dev/docs/features/browser-requests/actions/block-dom-removals.md)
- [Capture Cookies](https://gaffa.dev/docs/features/browser-requests/actions/capture-cookies.md)
- [Capture DOM](https://gaffa.dev/docs/features/browser-requests/actions/capture-dom.md)
- [Capture Screenshot](https://gaffa.dev/docs/features/browser-requests/actions/capture-screenshot.md)
- [Capture Element](https://gaffa.dev/docs/features/browser-requests/actions/capture-element.md)
- [Capture Snapshot](https://gaffa.dev/docs/features/browser-requests/actions/capture-snapshot.md)
- [Click](https://gaffa.dev/docs/features/browser-requests/actions/click.md)
- [Download File](https://gaffa.dev/docs/features/browser-requests/actions/download-file.md)
- [Generate Markdown](https://gaffa.dev/docs/features/browser-requests/actions/generate-markdown.md)
- [Generate Simplified DOM](https://gaffa.dev/docs/features/browser-requests/actions/generate-simplified-dom.md)
- [Loop](https://gaffa.dev/docs/features/browser-requests/actions/loop.md)
- [Print](https://gaffa.dev/docs/features/browser-requests/actions/print.md)
- [Parse JSON](https://gaffa.dev/docs/features/browser-requests/actions/parse-json.md)
- [Parse Table](https://gaffa.dev/docs/features/browser-requests/actions/parse-table.md)
- [Scroll](https://gaffa.dev/docs/features/browser-requests/actions/scroll.md)
- [Select](https://gaffa.dev/docs/features/browser-requests/actions/select.md)
- [Type](https://gaffa.dev/docs/features/browser-requests/actions/type.md)
- [Wait](https://gaffa.dev/docs/features/browser-requests/actions/wait.md)
- [Tips & Best Practices](https://gaffa.dev/docs/features/browser-requests/tips-and-best-practices.md)
- [API Playground Examples](https://gaffa.dev/docs/features/browser-requests/api-playground-examples.md)
- [Export Web Page to PDF](https://gaffa.dev/docs/features/browser-requests/api-playground-examples/export-web-page-to-pdf.md): An example request that uses Gaffa to convert an HTML page to a PDF. There are lots of HMTL to PDF API's but Gaffa handles it easily, as well as doing much more.
- [Convert Web Page to Markdown](https://gaffa.dev/docs/features/browser-requests/api-playground-examples/convert-web-page-to-markdown.md): An example request that uses Gaffa to convert a web page page to markdown. This could be used to export web page reports or to print the content of a page in a readable format.
- [Infinitely Scroll an E-commerce Site](https://gaffa.dev/docs/features/browser-requests/api-playground-examples/infinitely-scroll-an-e-commerce-site.md): An example request that uses Gaffa to infinitely scroll down a simulated ecommerce site whilst recording the interaction.
- [Capture a Full-Height Screenshot](https://gaffa.dev/docs/features/browser-requests/api-playground-examples/capture-a-full-height-screenshot.md): An example request that uses Gaffa to dismiss a modal, scroll to the bottom of a page and then capture a full height screenshot.
- [Automated Form Filling](https://gaffa.dev/docs/features/browser-requests/api-playground-examples/automated-form-filling.md): An example request that uses Gaffa to automate the completion of a form and waits for a success modal to appear.
- [Parse PDF to Structured JSON](https://gaffa.dev/docs/features/browser-requests/api-playground-examples/parse-pdf-to-structured-json.md): An example request that uses Gaffa to extract structured data from an online PDF.
- [Parse HTML Form to Structured JSON](https://gaffa.dev/docs/features/browser-requests/api-playground-examples/parse-html-form-to-structured-json.md): An example request that uses Gaffa to analyze a web form and extract all input fields, their labels, types, and properties into structured JSON.
- [Parse an HTML Table to JSON](https://gaffa.dev/docs/features/browser-requests/api-playground-examples/parse-an-html-table-to-json.md): An example request that uses Gaffa to extract structured data (JSON) from a table on a webpage
- [Loop Through Pagination](https://gaffa.dev/docs/features/browser-requests/api-playground-examples/loop-through-pagination.md): An example request that uses Gaffa to loop through different type of pages and perform actions.
- [Mapping Requests](https://gaffa.dev/docs/features/mapping-requests.md)
- [Data Retention](https://gaffa.dev/docs/features/data-retention.md)
- [Convert any webpage into LLM-ready Markdown using Gaffa](https://gaffa.dev/docs/tutorials/convert-any-webpage-into-llm-ready-markdown-using-gaffa.md)
- [Capture a full-height screenshot of a webpage](https://gaffa.dev/docs/tutorials/capture-a-full-height-screenshot-of-a-webpage.md)
- [How to scrape all images from a website using Gaffa](https://gaffa.dev/docs/tutorials/how-to-scrape-all-images-from-a-website-using-gaffa.md): This tutorial will show you how you can use Gaffa to retrieve all images from a site and then download all images across those pages.
- [Extract and Fill Web Forms Automatically Using Gaffa](https://gaffa.dev/docs/tutorials/extract-and-fill-web-forms-automatically-using-gaffa.md)
- [Using the Gaffa LLMs.txt File with Your AI Assistant](https://gaffa.dev/docs/tutorials/using-the-gaffa-llms.txt-file-with-your-ai-assistant.md)
- [API Reference](https://gaffa.dev/docs/api-reference/api-reference.md)
- [API Authentication](https://gaffa.dev/docs/api-reference/api-authentication.md): We use API Keys for authenticating requests to our API. In this document we'll explain how you can manage and use the keys for your account.
- [POST v1/browser/requests](https://gaffa.dev/docs/api-reference/post-v1-browser-requests.md)
- [GET v1/browser/requests/{id}](https://gaffa.dev/docs/api-reference/get-v1-browser-requests-id.md)
- [GET v1/browser/requests](https://gaffa.dev/docs/api-reference/get-v1-browser-requests.md)
- [POST v1/schemas](https://gaffa.dev/docs/api-reference/post-v1-schemas.md)
- [PUT v1/schemas/{id}](https://gaffa.dev/docs/api-reference/put-v1-schemas.md)
- [GET v1/schemas](https://gaffa.dev/docs/api-reference/get-v1-schemas.md)
- [DELETE v1/schemas/{id}](https://gaffa.dev/docs/api-reference/delete-v1-schemas-id.md)
- [POST v1/site/map](https://gaffa.dev/docs/api-reference/post-v1-site-map.md)
- [GET v1/site/map](https://gaffa.dev/docs/api-reference/get-v1-site-map.md)
- [GET v1/site/map/{id}](https://gaffa.dev/docs/api-reference/get-v1-site-map-id.md)

## AI Tools

- [Gaffa AI Tools](https://gaffa.dev/docs/ai-tools/gaffa-ai-tools.md): Use Gaffa with your favourite AI coding tools.
- [Gaffa CLI](https://gaffa.dev/docs/ai-tools/tools/gaffa-cli.md): Set up the Gaffa AI skills in your AI coding tools with one command.
- [Gaffa AI Skills](https://gaffa.dev/docs/ai-tools/tools/gaffa-ai-skills.md): Set up your account and ship your first project in minutes.
- [Gaffa Docs MCP Server](https://gaffa.dev/docs/ai-tools/tools/gaffa-docs-mcp-server.md): Connect your AI assistant or coding agent to the Gaffa docs MCP server so it can search and read the Gaffa documentation while it writes code for you.

## Changelog

- [November](https://gaffa.dev/docs/changelog/2026/november.md)
- [October](https://gaffa.dev/docs/changelog/2026/readme.md)
- [September](https://gaffa.dev/docs/changelog/2026/readme-1.md)
- [August](https://gaffa.dev/docs/changelog/2026/readme-1-1.md)
- [July](https://gaffa.dev/docs/changelog/2026/july.md)
- [June](https://gaffa.dev/docs/changelog/2026/june.md)
- [May](https://gaffa.dev/docs/changelog/2026/may.md)
- [April](https://gaffa.dev/docs/changelog/2026/april.md)
- [Q1](https://gaffa.dev/docs/changelog/2026/q1.md)
- [2025 Changelog](https://gaffa.dev/docs/changelog/2025/2025-changelog.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
This site has an agentic ask interface you may use to query the documentation dynamically by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://gaffa.dev/docs/index.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.
