> ## Documentation Index
> Fetch the complete documentation index at: https://docs.olostep.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Olostep + Apify Integration

> Automate web search, scraping and crawling with Apify Actors using Olostep — the API to search, extract and structure web data.

Olostep is a Web search, scraping and crawling API — an API to search, extract and structure web data. This guide shows how to use Olostep with Apify Actors to build reliable web data pipelines end‑to‑end.

## What you can build

> [card] Scrape Website
>
> Extract content from any single URL in Markdown, HTML, JSON, or Text

> [card] Batch Scrape URLs
>
> Process large lists of URLs in parallel with structured outputs

> [card] Create Crawl
>
> Discover and scrape linked pages to build complete datasets

> [card] Create Map
>
> Extract all URLs from a website (sitemap-like discovery)

> [card] AI-powered Answers
>
> Ask questions and get structured JSON answers with sources

## Quick start

### 1) Install Apify CLI

```bash theme={null}
npm install -g apify-cli
apify --version
```

### 2) Get your Olostep API key

From the Olostep Dashboard → API Keys.

### 3) Run the Olostep Actor locally

```bash theme={null}
cd olostep-tools/integrations/apify
apify run
```

Default local input file lives at:
`olostep-tools/integrations/apify/storage/key_value_stores/default/INPUT.json`

Example input:

```json theme={null}
{
  "operation": "scrape",
  "apiKey": "YOUR_OLostep_API_KEY",
  "url_to_scrape": "https://example.com",
  "formats": "markdown"
}
```

### 4) Deploy to Apify (cloud)

```bash theme={null}
apify login
apify push
```

Then open Apify Console → Actors → run the actor with your desired input.

### Run in Apify Console (step by step)

1. Open your Actor in Apify Console → Source → Input.
2. In the Manual tab you’ll see a visible “Olostep API Key” field. Paste your key from the Olostep Dashboard.
3. Choose an operation (defaults to “scrape”).
4. Fill the relevant fields (for “scrape”, set “URL to Scrape”).
5. Click Save → Start.
6. When the run finishes, open the Dataset tab to download results (JSON/CSV/Excel).

Notes:

* For “URL to Scrape”, you can paste with or without scheme. If missing, the actor automatically prepends `https://`.
* If a site is heavy in JavaScript and you see a timeout, set “Wait Before Scraping” to 2000–5000 ms and run again.

## Available operations

### Scrape Website

Extract content from a single URL. Great for page‑level automation.

**operation** `constant` (default: scrape)

Must be "scrape"

**apiKey** `string` *required*

Your Olostep API key (Bearer)

**url\_to\_scrape** `string` *required*

The URL to scrape (must include http\:// or https\://)

**formats** `dropdown` (default: markdown)

One of: Markdown, HTML, JSON, Text

**country** `string`

Optional country code (e.g., "US", "GB", "CA")

**wait\_before\_scraping** `integer`

Optional wait time in ms for JavaScript rendering (0–10000)

**parser** `string`

Optional parser ID (e.g., "@olostep/amazon-product")

Output fields:

* id, url, status, formats
* markdown\_content / html\_content / json\_content / text\_content
* hosted URLs (if available), page metadata

### Batch Scrape URLs

Process many URLs at once with consistent formatting and structure.

**operation** `constant` (default: batch)

Must be "batch"

**apiKey** `string` *required*

Your Olostep API key

**batch\_array** `text` *required*

JSON array of objects with `url` and optional `custom_id`\
Example: `[{"url":"https://example.com","custom_id":"site1"}]`

**formats** `dropdown` (default: markdown)

One of: Markdown, HTML, JSON, Text

**country** `string`

Optional country code

**wait\_before\_scraping** `integer`

Optional wait time in ms for JS sites

**parser** `string`

Optional parser ID

Output fields:

* batch\_id, status, total\_urls, created\_at, formats, country, parser, urls\[]

### Create Crawl

Follow links and scrape multiple pages from a start URL.

**operation** `constant` (default: crawl)

Must be "crawl"

**apiKey** `string` *required*

Your Olostep API key

**start\_url** `string` *required*

Starting URL for the crawl

**max\_pages** `integer` (default: 10)

Max pages to crawl. Set to `1` to scrape only the start URL.

**formats** `dropdown` (default: markdown)

One of: Markdown, HTML, JSON, Text

**country** `string`

Optional country code

**parser** `string`

Optional parser ID

Output fields:

* crawl\_id, object, status, start\_url, max\_pages, created, formats

### Create Map

Discover all URLs on a website and prepare for later batch scraping.

**operation** `constant` (default: map)

Must be "map"

**apiKey** `string` *required*

Your Olostep API key

**website\_url** `string` *required*

The website to map

**search\_query** `string`

Optional query filter

**top\_n** `integer`

Limit number of URLs

**include\_patterns** `string`

Include glob(s), e.g. "/products/\*\*"

**exclude\_patterns** `string`

Exclude glob(s), e.g. "/admin/\*\*"

Output fields:

* map\_id, object, website\_url, total\_urls, urls\[], search\_query, top\_n

## Copy‑paste JSON examples (Console → Input → JSON)

### Scrape

```json theme={null}
{
  "operation": "scrape",
  "apiKey": "YOUR_OLOSTEP_API_KEY",
  "url_to_scrape": "https://www.wikipedia.org",
  "formats": "markdown",
  "wait_before_scraping": 2000
}
```

### Batch

```json theme={null}
{
  "operation": "batch",
  "apiKey": "YOUR_OLOSTEP_API_KEY",
  "batch_array": "[{\"url\":\"https://example.com\",\"custom_id\":\"site1\"},{\"url\":\"https://olostep.com\",\"custom_id\":\"site2\"}]",
  "formats": "json"
}
```

### Crawl

```json theme={null}
{
  "operation": "crawl",
  "apiKey": "YOUR_OLOSTEP_API_KEY",
  "start_url": "https://docs.example.com",
  "max_pages": 50,
  "formats": "markdown"
}
```

### Map

```json theme={null}
{
  "operation": "map",
  "apiKey": "YOUR_OLOSTEP_API_KEY",
  "website_url": "https://example.com",
  "include_patterns": "/blog/**",
  "top_n": 200
}
```

### Answers

```json theme={null}
{
  "operation": "answers",
  "apiKey": "YOUR_OLOSTEP_API_KEY",
  "task": "What is the latest funding round of Olostep? Provide company, round, date, amount.",
  "json": "{\"company\":\"\",\"round\":\"\",\"date\":\"\",\"amount\":\"\"}"
}
```

## Example workflows

> [accordion] Discover and Scrape Products
>
> 1. Create Map → include "/products/\*\*"
> 2. Parse URLs → build batch array
> 3. Batch Scrape URLs → formats: JSON
> 4. Send to Google Sheets / Airtable

> [accordion] Daily Content Monitoring
>
> 1. Schedule actor (daily)
> 2. Scrape Website → formats: Markdown
> 3. Summarize with LLM
> 4. Notify on Slack

> [accordion] Competitor Knowledge Base
>
> 1. Create Crawl (blog/docs)
> 2. Store outputs in Notion
> 3. Refresh weekly with Schedule

## Specialized parsers

Olostep supports parsers to structure data for popular sites.

> [card] Amazon Product
>
> `@olostep/amazon-product` → title, price, rating, reviews, images, variants

> [card] Google Search
>
> `@olostep/google-search` → results, titles, snippets, URLs

> [card] Google Maps
>
> `@olostep/google-maps` → business info, reviews, ratings, location

> [card] [More Parsers](https://www.olostep.com/store)
>
> Explore email extractors, social handle finders, calendar link extractors, and more

## Best practices

> [accordion] Prefer batch for 3+ URLs
>
> Faster, cheaper, easier to monitor and respect rate limits.

> [accordion] Use appropriate wait times
>
> JS‑heavy sites: increase `wait_before_scraping` (e.g., 2000–5000ms).

> [accordion] Filter before scraping
>
> Avoid unnecessary tasks — check changes first, keep deduplication state.

> [accordion] Store large content via hosted URLs
>
> Use hosted outputs to bypass payload size limits in Apify flows.

> [accordion] Treat async operations as long‑running
>
> Batch/Crawl/Map return IDs; retrieve later or chain with a delay.

> [accordion] Handle transient timeouts cleanly
>
> If you see a 504 or transient timeout, the actor automatically retries once with a short wait time.\
> You can also set “Wait Before Scraping” to 2000–5000 ms for JS‑heavy pages.

## Troubleshooting

> [accordion] Authentication failed
>
> * Check API key from dashboard
> * Remove trailing spaces
> * Re‑enter in Apify input form

> [accordion] Empty content
>
> * Increase wait time
> * Verify URL is public / not login‑gated
> * Try different output format

> [accordion] Rate limit exceeded
>
> * Space runs via schedule
> * Prefer batch for many URLs
> * Upgrade Olostep plan if needed

> [accordion] Blocked or dynamic sites
>
> * Try country parameter
> * Adjust wait and parser
> * Contact support for guidance

## Pricing

Olostep charges by API usage (independent of Apify):

* Scrapes → per scrape
* Batches → per URL
* Crawls → per page
* Maps → per operation

See `https://www.olostep.com/pricing`.

## Security

* Your API key is sent as Bearer token at runtime.
* Do not commit keys to version control; Apify stores inputs in Key‑Value Store.
* In local development, keep keys in `storage/key_value_stores/default/INPUT.json` (gitignored).

## Related resources

> [card] [Scrapes API](https://docs.olostep.com/features/scrapes.md)
>
> Extract LLM‑friendly Markdown, HTML, text or structured JSON from any URL.

> [card] [Batches API](https://docs.olostep.com/features/batches.md)
>
> Process up to 100k URLs concurrently and retrieve results later.

> [card] [Crawls API](https://docs.olostep.com/features/crawls.md)
>
> Recursively discover and scrape a site’s content.

> [card] [Maps API](https://docs.olostep.com/features/maps.md)
>
> Get all URLs on a website to prepare batch scrapes.

## Support

> [card] [Apify Website](https://apify.com)
>
> Apify platform

> [card] [Apify Docs](https://docs.apify.com)
>
> Apify platform & SDK docs

> [card] [Documentation](https://docs.olostep.com)
>
> Complete API docs

> [card] [Support Email](mailto:info@olostep.com)
>
> [info@olostep.com](mailto:info@olostep.com)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.