# LINE Official Account Scraper: Business Profiles & Contacts (`scrapingmonkey/line-scraper`) Actor

Extract public LINE Official Account profiles with descriptions, profile images, friend counts and published business contact details. Build a source-linked business directory for brand research and verification of existing business records.

- **URL**: https://apify.com/scrapingmonkey/line-scraper.md
- **Developed by:** [ScrapingMonkey](https://apify.com/scrapingmonkey) (community)
- **Stats:** 12 total users, 11 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 results

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/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

**LINE Scraper** collects public LINE Official Account profiles for business and market research. Export account names, descriptions, friend counts, images and published business contact information to enrich company records, compare brand accounts and organize a source-linked directory of official LINE presences.

Supply the Official Account pages you want to research and turn their profile information into consistent business records. Keep contact details, website links and visible audience counts ready for review.

| At a glance | Details |
|---|---|
| 📥 Input | Search fields or links to the selected items; see the examples below |
| 📤 Output | One row per official account profile |
| 🔐 Login required | No |
| ⚡ Processing | Multiple inputs per run with automatic retries for temporary errors |
| 💾 Delivery | One complete Apify dataset table; CSV, JSON and Excel export |

### What the LINE scraper collects 📱

Extract public LINE Official Account profiles, friend counts and published business contact information.

| Collection | What you receive |
|---|---|
| LINE official account profiles scraper | Export public LINE Official Account profiles, friend counts, profile images and published business contact information. |

Data can include:

- Account identity: Account page IDs, LINE IDs, premium IDs, names and source links.
- Descriptions: Published account descriptions and country codes.
- Audience: Visible friend counts.
- Brand presentation: Profile images, background images and badge types.
- Business contacts: Published phone numbers, addresses and website links.
- Opening information: Available business-hours notes.

### How to scrape LINE 🚀

1. Open the Actor input form.
2. Fill in the search fields, or paste links to the items you want to collect.
3. Set the maximum results and any optional filters.
4. Start the Actor and review the collected rows.
5. Export the dataset or connect it to your application.

#### LINE official account profiles scraper — input example

```json
{
  "mode": "account_details",
  "accountUrls": [
    "https://page.line.me/914aycak"
  ],
  "maxResults": 10
}
```

`maxResults: 10` means up to 10 results for **each input**. It does not guarantee that the website has that many matches. You can set the limit as low as 1.

### LINE data fields and complete output 📦

| Field group | Included data |
|---|---|
| Account identity | Account page IDs, LINE IDs, premium IDs, names and source links. |
| Descriptions | Published account descriptions and country codes. |
| Audience | Visible friend counts. |
| Brand presentation | Profile images, background images and badge types. |
| Business contacts | Published phone numbers, addresses and website links. |
| Opening information | Available business-hours notes. |

Each collected item is a separate row. `input` identifies the submitted value and `result_type` identifies the selected mode. All returned fields appear in one table; columns that do not apply to a mode can be empty.

A complete JSON result is shown for every collection mode below, in the same order as the input examples. Each example includes every field for its mode; text and lists are not shortened. Values are representative and can change.

#### LINE official account profiles scraper — complete JSON result

```json
{
  "result_type": "account_details",
  "input": "https://page.line.me/914aycak",
  "status": "success",
  "account_page_id": "4033946",
  "line_id": "@914aycak",
  "premium_line_id": "@linefriends_hk_mo",
  "url": "https://page.line.me/914aycak",
  "name": "LINE FRIENDS",
  "description": "LINE FRIENDS",
  "country_code": "HK",
  "badge_type": "PREMIUM",
  "image_url": "https://profile.line-scdn.net/0h8XPNSvSHZ3dtN3hE4G8YIFFyaRoaGWE_FVIqRB8_aRcQD3UmWVJ_Q0BkahJCAiMoAQJ4EkhkPxRC",
  "background_image_url": "https://oa-profile-media.line-scdn.net/0hDfCX8j8GG0l-IQpHWYFkHi5-FThNQ0JNGUYRUC5KRgYYQ1x0NE9VUFheRCshehd-JAYSUClKRBg1cQBKJ0YdRAdoAhIPGF5MHk4fUABRAwIPS1RjMg",
  "friend_count": 169495,
  "phone": null,
  "address": null,
  "website_urls": [
    "http://linefriends.com/"
  ],
  "business_hours_note": null
}
```

Images, tags and other lists stay with their parent result instead of creating extra rows. Invalid or unavailable inputs, inputs with no results, and requests that fail after all retries produce a row with `status: failed`. At most one failed row is saved per input; it includes `error_code` and `error_message` explaining the outcome. A normal end of pagination after collected results does not add a failed row.

### Input requirements and collection settings ⚙️

| Setting | What to enter |
|---|---|
| **Maximum results per search or link** (`maxResults`) | Collect up to this many results for each search or link. Minimum: 1. |
| **Account links** (`accountUrls`) | Paste one link per line. Example: https://page.line.me/914aycak |

| Collection mode | Fields to use |
|---|---|
| Official Account Details | **Account links** |

The result limit applies separately to each search or supplied link. Collection ends earlier when no more matching results are available.

### LINE scraping use cases 🎯

#### Business record enrichment

Add published LINE account information to an existing company directory.

#### Brand account audits

Check how selected businesses describe and present their official accounts.

#### Local business research

Collect published addresses, phone numbers and website links for selected accounts.

#### Audience benchmarking

Compare visible friend counts across a supplied brand shortlist.

#### Partnership preparation

Review business descriptions and contact information before assessing account relevance.

### Pricing and saved-result behavior 💰

See the Actor's **Pricing** tab for the active pricing model and current rate. Store settings may change, so this README does not claim a fixed cost.

Under dataset-item pricing:

- Each collected item saved in the dataset is one result.
- Images, tags and other values attached to that item do not create additional rows.
- Automatic retry attempts do not create extra dataset rows.
- A saved `failed` row is also one billable dataset item, including invalid inputs, unavailable items, no results, or exhausted retries. At most one failed row is saved per input, including when some results were already collected.
- `maxResults` caps all saved rows for each input, including its failed row. Repeated copies of the same input are processed once. More inputs or a higher limit can produce more saved results.

### LINE scraper API and integrations 🔌

Replace `$ACTOR_ID` with the ID shown in the Actor API tab and `$APIFY_TOKEN` with your token.

```bash
curl -X POST "https://api.apify.com/v2/acts/$ACTOR_ID/runs?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"mode":"account_details","accountUrls":["https://page.line.me/914aycak"],"maxResults":10}'
```

Use schedules for recurring collection, webhooks for completion notifications, and Apify integrations for Google Sheets, Make, Zapier, cloud storage, a CRM or your own application.

### Reliability, retries, and public-data limits ⚠️

Temporary connection errors, timeouts and access restrictions are retried automatically, up to five attempts. Invalid inputs save a failed row without an HTTP request; confirmed unavailable items save a failed row without unnecessary retries. Exhausted retries also save a failed row. Results already collected remain available if a later request fails, and normal pagination completion adds no error row. Collection also stops after two consecutive fully processed pages add no new results, even if the website provides another cursor. Required detail lookups are completed before checking a page; new results reset the counter, and independent reply branches are checked separately. Failures while initializing the Actor, saving data or scheduling requests stop the run instead of being reported as a failed website result.

Supply existing Official Account pages; this actor does not include account search.

Private chats, friends lists and user messages are outside its scope.

LINE controls which information is publicly available. Removed, private or restricted items may be unavailable, and optional values can be null or empty. A run can still fail if the results cannot be saved.

### Frequently asked questions ❓

#### Does it require an account on LINE?

No. You do not need to provide an account, password or login cookies. Only publicly available information is collected.

#### How does maxResults work?

It limits the number of saved results separately for every input. The minimum is 1. With maxResults set to 10, each input returns at most 10 available results. A detail lookup normally returns one record per input.

#### Can it find LINE accounts by keyword?

No. Provide supported Official Account page URLs for profile collection.

#### Are phone numbers and opening hours always included?

Only when the account publishes those details on its public profile.

#### Why are some fields empty?

The website may not publish that value, or the field may belong to a different collection mode. Missing values remain null or empty instead of being guessed.

#### Can I export the results to a spreadsheet?

Yes. Download CSV, Excel or JSON from the Apify dataset. All returned fields are included in the same results table.

### Support and responsible use 🛟

For a reproducible issue, share the run ID, selected mode, result limit and a safe public example through the support channel. Never disclose access tokens, passwords or proxy credentials.

Use public LINE information lawfully and responsibly. Follow applicable privacy, copyright, data-protection, contractual and platform requirements when storing, analyzing or redistributing results.

# Actor input Schema

## `mode` (type: `string`):

Choose the information to collect.

## `maxResults` (type: `integer`):

Collect up to this many results for each search or link. Minimum: 1.

## `accountUrls` (type: `array`):

Paste one link per line. Example: https://page.line.me/914aycak

## Actor input object example

```json
{
  "mode": "account_details",
  "maxResults": 10,
  "accountUrls": [
    "https://page.line.me/914aycak"
  ]
}
```

# Actor output Schema

## `results` (type: `string`):

Collected entities and failed input outcomes, with all available fields and error explanations in one dataset.

# 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 = {
    "mode": "account_details",
    "maxResults": 10,
    "accountUrls": [
        "https://page.line.me/914aycak"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapingmonkey/line-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 = {
    "mode": "account_details",
    "maxResults": 10,
    "accountUrls": ["https://page.line.me/914aycak"],
}

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

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

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

```

## CLI example

```bash
echo '{
  "mode": "account_details",
  "maxResults": 10,
  "accountUrls": [
    "https://page.line.me/914aycak"
  ]
}' |
apify call scrapingmonkey/line-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapingmonkey/line-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/tvhsBTQoo3epreeJX/builds/E6MQdTwcGm2Sgs9XI/openapi.json
