# Cốc Cốc Search Scraper (`rainminer/coccoc-com-scraper`) Actor

Extract public organic web results from Cốc Cốc Search (coccoc.com/search). Get rank, title, URL, display URL, snippet, and thumbnail — no login. Schedule runs, export JSON, CSV, or Excel, and pull Vietnamese SERP data through the Apify API. Track ranks in Vietnam.

- **URL**: https://apify.com/rainminer/coccoc-com-scraper.md
- **Developed by:** [rainminer](https://apify.com/rainminer) (community)
- **Categories:** SEO tools, Other
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.49 / 1,000 search 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

![Cốc Cốc Search](https://cdn.coccoc.com/static/images/search/share/coccoc-share-logo.png)

### What does Cốc Cốc Search Scraper do?

**Cốc Cốc Search Scraper** extracts **public organic web results** from [Cốc Cốc Search](https://coccoc.com/search) (`coccoc.com/search`). Paste a search URL and export **rank, title, result URL, display URL, snippet, and thumbnail**.

No Cốc Cốc account and no coding. Run it on the **Apify platform** to schedule crawls, export JSON, CSV, or Excel, and pull results through the API.

### Why scrape Cốc Cốc search results?

Cốc Cốc is a major Vietnamese search and browser product. SEO teams, agencies, and market researchers use it to see how a query ranks for users in Vietnam, separately from Google.

- **Vietnam SERP tracking** — Store organic ranks for branded and non-branded Vietnamese queries.
- **Share-of-voice** — Compare which domains appear for a keyword on Cốc Cốc.
- **Snippet research** — Capture titles and descriptions Cốc Cốc actually shows.
- **Local vs global** — Check how Cốc Cốc results differ from Google.com / Google.com.vn.
- **Content gaps** — Find pages that rank on Cốc Cốc but not in your own list.
- **Monitoring** — Schedule the Actor and diff datasets over time.
- **Reporting** — Feed rank, URL, and snippet into Sheets, Looker, or a rank-tracking warehouse.

### How to scrape Cốc Cốc Search

1. Open **Cốc Cốc Search Scraper** in Apify Console.
2. Add one or more start URLs. The default is `https://coccoc.com/search?query=vietnam`.
3. Set **Maximum items** (results per start URL). Use a small number for a test, then raise it for a full export.
4. Run the Actor and download the dataset as JSON, CSV, Excel, or HTML.

Copy the URL from Cốc Cốc Search after you type a query, including any `&page=` pagination parameter, and paste it into **Start URLs**.

### What data can you extract from Cốc Cốc Search?

| Field | Description |
| --- | --- |
| position | Organic rank in the run for that start URL |
| title | Result title |
| url | Destination URL |
| displayUrl | Visible display URL / cite string |
| snippet | Result description |
| imageUrl | Result thumbnail when present |
| query | Search query from the start URL |
| page | Result page number |
| searchUrl | Start URL that produced the row |

### How much does it cost to scrape Cốc Cốc Search?

The Actor uses a browser crawl so it can complete Cốc Cốc’s public cookie handshake and wait for organic cards to render. You pay for each result saved to the dataset (pay per result), plus compute. A short test with the default maximum of 5 results is enough to confirm the fields before a larger export.

You can schedule runs, send results to Google Sheets or webhooks, and call the Actor through the Apify API. The same dataset is available as JSON, CSV, Excel, or HTML.

### Input

**Start URLs**, **Maximum items** (per start URL), and an optional **proxy configuration**. The default proxy setting is off. See the Input tab for the form.

Supported start URLs:

- Search: `https://coccoc.com/search?query=vietnam`
- Paginated search: `https://coccoc.com/search?query=hanoi&page=2`

`maxItems` applies **per start URL**. Two queries with a maximum of 20 can return up to 40 results.

### Output

You can download the dataset extracted by Cốc Cốc Search Scraper in JSON, HTML, CSV, or Excel.

```json
{
  "id": "https://vi.wikipedia.org/wiki/Vi%E1%BB%87t_Nam",
  "position": 1,
  "title": "Việt Nam – Wikipedia tiếng Việt",
  "url": "https://vi.wikipedia.org/wiki/Vi%E1%BB%87t_Nam",
  "displayUrl": "vi.wikipedia.org › wiki › Vi...",
  "snippet": "Việt Nam, quốc hiệu đầy đủ là Cộng hòa xã hội chủ nghĩa Việt Nam, là một quốc gia nằm ở cực Đông của bán đảo Đông Dương thuộc khu vực Đông Nam Á.",
  "imageUrl": "https://img-cache.coccoc.com/image2?i=1&l=11/368494537",
  "query": "vietnam",
  "page": 1,
  "searchUrl": "https://coccoc.com/search?query=vietnam"
}
```

### FAQ

#### Is it legal to scrape Cốc Cốc Search?

This Actor collects **public search result cards** shown on Cốc Cốc Search. It does not log in and it does not collect mail, account, or wallet data. Use the data only when you have a legitimate reason, and get advice if you are unsure.

#### Do I need a Cốc Cốc account?

No. The Actor reads public search pages only.

#### Why are some snippets or images empty?

Cốc Cốc does not always show a description or thumbnail. Empty snippet or image fields are expected for those rows.

#### Can I export more than one page?

Yes. Raise **Maximum items** above 10. The Actor follows Cốc Cốc pagination (`page=2`, `page=3`, …) until the limit or the last page.

#### Where can I get help?

Open the **Issues** tab on the Actor page if a URL returns nothing or a field looks wrong.

### Image Credit

Image credit: [coccoc.com](https://coccoc.com/)

# Actor input Schema

## `startUrls` (type: `array`):

Cốc Cốc Search result URLs (https://coccoc.com/search?query=...).

## `maxItems` (type: `integer`):

Maximum number of organic results to return per start URL.

## `proxyConfiguration` (type: `object`):

Optional proxy. Direct access works for public Cốc Cốc Search pages.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://coccoc.com/search?query=vietnam"
    }
  ],
  "maxItems": 5,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

# 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 = {
    "startUrls": [
        {
            "url": "https://coccoc.com/search?query=vietnam"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("rainminer/coccoc-com-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 = { "startUrls": [{ "url": "https://coccoc.com/search?query=vietnam" }] }

# Run the Actor and wait for it to finish
run = client.actor("rainminer/coccoc-com-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 '{
  "startUrls": [
    {
      "url": "https://coccoc.com/search?query=vietnam"
    }
  ]
}' |
apify call rainminer/coccoc-com-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,rainminer/coccoc-com-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/EvcFQgQi8fgh4sSH7/builds/EmGYV3umrbvrdZebd/openapi.json
