# Blog Scraper (`naive_zing/blog-scraper`) Actor

Company Blog Scraper, Blog Post Scraper, Corporate Blog Crawler, Automatic Blog Discovery, Blog Content Extractor, Article Metadata Scraper, Multi-Domain Blog Scraper, Competitor Blog Analysis, Content Marketing Scraper, Blog Post Metadata Extraction, Company Announcements Scraper.

- **URL**: https://apify.com/naive\_zing/blog-scraper.md
- **Developed by:** [Wyald](https://apify.com/naive_zing) (community)
- **Categories:** Automation, Developer tools
- **Stats:** 29 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $33.00 / 1,000 standard-fetches

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Blog Scraper

A robust Apify Actor designed to scrape blog posts from company websites. Given a list of company domains and a maximum number of posts to fetch, this scraper automatically discovers blog sections, extracts blog posts, and collects comprehensive content and metadata.

#### Targeted Keywords
*   **Primary**: Blog Scraper, Content Extraction, Company Blog Crawler, Article Scraper
*   **Secondary**: Blog Post Metadata, Content Marketing Analysis, Blog Content Aggregation, Corporate Blog Mining

### Features

✅ **Automatic Blog Discovery**: Intelligently finds blog sections on company websites
✅ **Smart Content Extraction**: Extracts comprehensive blog post data including:
    *   Title
    *   Author
    *   Publication date
    *   Full article content
    *   Excerpt/summary
    *   Tags
    *   Category
    *   URL
✅ **Configurable Limits**: Set maximum number of posts per domain (up to 50)
✅ **Multiple Domain Support**: Scrape from multiple company websites in a single run
✅ **Structured Output**: Returns clean JSON data with all metadata
✅ **Fast & Lightweight**: Uses `crawlee` with BeautifulSoup for efficient HTTP-based scraping (no headless browser overhead)

### Input

| Field | Type | Description | Required | Default |
|---|---|---|---|---|
| `company_urls` | Array | List of company domain URLs or homepage URLs to scrape (e.g., `["https://stripe.com", "shopify.com"]`). | Yes | - |
| `max_blogposts_to_fetch` | Number | Maximum number of blog posts to fetch per domain (1-50) | No | 10 |
| `max_concurrency` | Number | Number of concurrent requests | No | 2 |

#### Input Example

```json
{
    "company_urls": [
        "https://www.stripe.com",
        "https://shopify.com",
        "https://ai-bees.io"
    ],
    "max_blogposts_to_fetch": 10,
    "max_concurrency": 2
}
````

### Output Example

```json
{
  "url": "https://www.stripe.com/blog/example-post",
  "domain": "www.stripe.com",
  "post_title": "How we scaled our payment infrastructure",
  "author": "Jane Doe",
  "published_date": "2024-01-15",
  "content": "Full article content here...",
  "excerpt": "Learn how we scaled our payment infrastructure to handle millions of transactions...",
  "tags": ["engineering", "infrastructure", "scaling"],
  "category": "Engineering",
  "scraped_at": "2024-01-20T10:30:00.000Z"
}
```

### How It Works

1. **Domain Analysis**: The scraper starts by visiting each provided company domain
2. **Blog Detection**: It automatically searches for blog sections using common patterns (/blog, /news, /articles, etc.)
3. **Post Discovery**: Once in the blog section, it identifies individual blog post URLs
4. **Content Extraction**: For each post, it extracts:
   - Structured metadata (title, author, date)
   - Full article content
   - Additional metadata (tags, categories)
5. **Limit Enforcement**: Respects the `number_of_blog_posts_to_fetch` limit per domain

### Usage Tips

- **URL Format**: You can provide URLs with or without `https://` - the scraper will normalize them
- **Rate Limiting**: The scraper includes automatic delays to be respectful to target websites
- **Post Limits**: Maximum 50 posts per domain to prevent excessive scraping
- **Concurrency**: Adjust `max_concurrency` based on target website capacity (default: 2)

### Use Cases

- **Content Marketing Analysis**: Analyze competitor blog strategies
- **Content Aggregation**: Collect blog content for research or analysis
- **Market Intelligence**: Monitor company announcements and thought leadership
- **SEO Research**: Study content patterns and topics from successful blogs
- **Training Data**: Collect blog content for ML/AI model training

### Notes

- The scraper respects robots.txt and includes reasonable delays between requests
- Blog structure varies by website - extraction quality depends on site structure
- Some blogs may require authentication or have anti-scraping measures
- Always ensure you have permission to scrape the target websites

# Actor input Schema

## `company_urls` (type: `array`):

List of company domain URLs or homepage URLs to scrape for blog posts. Can be simple strings (e.g., 'stripe.com') or full URLs (e.g., 'https://www.stripe.com').

## `max_blogposts_to_fetch` (type: `integer`):

Maximum number of blog posts to fetch per domain. Must be between 1 and 50.

## `max_concurrency` (type: `integer`):

Number of concurrent requests. Higher values speed up scraping but may trigger rate limiting.

## Actor input object example

```json
{
  "company_urls": [
    "https://www.stripe.com",
    "https://www.shopify.com",
    "https://ai-bees.io"
  ],
  "max_blogposts_to_fetch": 10,
  "max_concurrency": 4
}
```

# Actor output Schema

## `dataset` (type: `string`):

The dataset containing all scraped blog posts.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "company_urls": [
        "https://www.stripe.com",
        "https://www.shopify.com",
        "https://ai-bees.io"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("naive_zing/blog-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "company_urls": [
        "https://www.stripe.com",
        "https://www.shopify.com",
        "https://ai-bees.io",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("naive_zing/blog-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "company_urls": [
    "https://www.stripe.com",
    "https://www.shopify.com",
    "https://ai-bees.io"
  ]
}' |
apify call naive_zing/blog-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=naive_zing/blog-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Blog Scraper",
        "description": "Company Blog Scraper, Blog Post Scraper, Corporate Blog Crawler, Automatic Blog Discovery, Blog Content Extractor, Article Metadata Scraper, Multi-Domain Blog Scraper, Competitor Blog Analysis, Content Marketing Scraper, Blog Post Metadata Extraction, Company Announcements Scraper.",
        "version": "3.0",
        "x-build-id": "LQndUu39cqi4Dr2iw"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/naive_zing~blog-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-naive_zing-blog-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/naive_zing~blog-scraper/runs": {
            "post": {
                "operationId": "runs-sync-naive_zing-blog-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/naive_zing~blog-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-naive_zing-blog-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "company_urls"
                ],
                "properties": {
                    "company_urls": {
                        "title": "Company URLs",
                        "type": "array",
                        "description": "List of company domain URLs or homepage URLs to scrape for blog posts. Can be simple strings (e.g., 'stripe.com') or full URLs (e.g., 'https://www.stripe.com').",
                        "items": {
                            "type": "string"
                        }
                    },
                    "max_blogposts_to_fetch": {
                        "title": "Max Blog Posts to Fetch",
                        "minimum": 1,
                        "maximum": 50,
                        "type": "integer",
                        "description": "Maximum number of blog posts to fetch per domain. Must be between 1 and 50.",
                        "default": 10
                    },
                    "max_concurrency": {
                        "title": "Max Concurrency",
                        "minimum": 1,
                        "maximum": 10,
                        "type": "integer",
                        "description": "Number of concurrent requests. Higher values speed up scraping but may trigger rate limiting.",
                        "default": 4
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
