# Introducing Actions

Click, type, scroll, wait and screenshot before scraping, so dynamic pages give up their data. Available in the REST API and the Node and Python SDKs.

- Published: September 24, 2024

![Actions](/images/actions.png)

Interact with pages before extracting data, unlocking more data from every site!

Firecrawl now allows you to perform various actions on a web page before scraping its content. This is particularly useful for interacting with dynamic content, navigating through pages, or accessing content that requires user interaction.

* Version 1.5.x of the Node SDK now supports type-safe Actions.
* Actions are now available in the REST API and Python SDK (no version bumps required!).

Here is a python example of how to use actions to navigate to google.com, search for Firecrawl, click on the first result, and take a screenshot.

```python
from firecrawl import Firecrawl

app = Firecrawl(api_key="fc-YOUR_API_KEY")

# Scrape a website:
scrape_result = app.scrape_url('https://www.google.com',
    params={
        'formats': ['markdown', 'html'],
        'actions': [
            {"type": "wait", "milliseconds": 2000},
            {"type": "click", "selector": "textarea[title=\"Search\"]"},
            {"type": "wait", "milliseconds": 2000},
            {"type": "write", "text": "firecrawl"},
            {"type": "wait", "milliseconds": 2000},
            {"type": "press", "key": "ENTER"},
            {"type": "wait", "milliseconds": 3000},
            {"type": "click", "selector": "h3"},
            {"type": "wait", "milliseconds": 3000},
            {"type": "screenshot"}
        ]
    }
)
print(scrape_result)
```

For more examples, check out our [API Reference](https://docs.firecrawl.dev/api-reference/endpoint/scrape).

_Canonical HTML: https://www.firecrawl.dev/changelog/actions_

## Site Navigation

### Global Hub
- [Home](/index.md)
- [Pricing](/pricing.md)
- [Blog](/blog.md)
- [Glossary](/glossary.md)
- [Alternatives](/alternatives.md)
- [Tools](/tools.md)
- [Use Cases](/use-cases.md)
- [Integrations](/integrations.md)
- [Changelog](/changelog.md)

### On This Topic
- [Changelog index](/changelog.md)
- [Newer entry: Crawl reliability fixes](/changelog/sept27.md)
- [Older entry: Type-safe LLM extract and the Rust SDK](/changelog/sept23.md)
