# Google Sites Live Query Actor (`scrapeai/google-livesites`) Actor

Read actual published Google Sites pages from explicit URLs, preserving native body sections, source text, links, images and tables with literal filtering and global page limits. No provider API key for public reads.

- **URL**: https://apify.com/scrapeai/google-livesites.md
- **Developed by:** [ScrapeAI](https://apify.com/scrapeai) (community)
- **Categories:** Developer tools, Automation, Other
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

### What does this Google Sites reader do?

Extract **real publicly published Google Sites pages** from explicit source URLs. Each record is one fetched native page, with its published title, canonical source URL, native section and heading identifiers, actual body text and text hash. Native hyperlinks, images and table cells are retained when present. Apify provides API access, scheduling, monitoring and downloadable datasets. No provider API key or browser is needed for the supported anonymous public mode.

### Why use this Actor?

Index published course websites, lab resources and public knowledge pages for research or content analysis. The reader excludes site navigation and Google Help/search metadata from page body extraction. It preserves the page as the entity: a section, heading, paragraph or an unvisited navigation link never becomes another page record.

### How to use it

1. Provide published source URLs in pageUrls, pageUrl, startUrls, searchUrl or url.
2. Optionally add a literal query to filter the actual body text. This is a page-content filter, not a web-search query.
3. Choose maxItems and minItems. The smallest supplied outer/nested cap applies globally.
4. Run the Actor and review both dataset and run summary. You can download JSON, HTML, CSV or Excel.

### Input

URLs must belong to supported public sites.google.com namespaces. Duplicate query-string/hash representations are normalized to one public page. Blank canonical fields do not hide valid aliases. actorInput supports nested URL/query/cap fields; every supplied cap is validated. No default site is fetched without explicit input. Prefill lists real observed public academic-site pages as examples. The reader does not automatically traverse navigation or fetch external link targets.

### Output

A record contains pageUrl, pageTitle, siteRoot, sections, headings, full native text, Unicode character count and SHA-256 text hash. Section and heading IDs are original source identifiers; no guessed page ID or publication timestamp is introduced. Links and images are observed references and are not downloaded. Missing optional images, links or tables stay absent. sourceRecordKey binds the record to same-run sanitized native DOM evidence. scripts, frames and event handlers are removed from that evidence.

### Data table

| Field | Meaning |
| --- | --- |
| pageUrl | Exact published source URL after normalization |
| siteRoot | URL-derived published namespace, not an invented native site ID |
| sections | Source section IDs and leaf text blocks |
| text | Native body blocks in source order |
| links/images/tables | Actual available source references and cells |

### Pricing and performance

Public page reads need no provider API key. Your Apify plan covers cloud compute and storage. Requests are sequential and paced at least one second after each response, with source robots crawl delay respected. Read only the pages you need and use a bounded maximum to control costs.

### Tips and limitations

The supported capability is reading explicit published modern Sites pages. Private editing, owner permissions, Drive projects, iframe contents, OCR and unpublished project APIs are not implemented. A ten-page test is not ten different websites. Pages may contain old material; retrieval time is not a publication date. Image references may be temporary source URLs.

### FAQ, disclaimers and support

Only read public or otherwise authorized content. The Actor validates native Google Sites URL/title/renderer identity and body sections, checks robots rules and stops on denial, login redirects or insufficient actual content. It never fills missing results with Help pages or synthetic data. Report source-layout changes through Issues. Private Google Sites administration needs a separately authorized official integration.

# Actor input Schema

## `url` (type: `string`):

Alternative explicit public Google Sites page URL.

## `searchUrl` (type: `string`):

Alternative explicit public source URL; not a search-engine URL.

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

Alternative explicit published Google Sites page URLs.

## `actorInput` (type: `object`):

Optional URL/query/record caps. All caps are validated; the smallest outer/nested cap is enforced.

## `query` (type: `string`):

Optional case-insensitive literal phrase filter over actual native page body sections. This does not search the web or private Sites projects.

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

Global maximum number of genuine native page records across explicit URLs.

## `minItems` (type: `integer`):

Fail if fewer genuine pages match; set at or below the effective outer/nested cap.

## `requestTimeoutSecs` (type: `integer`):

Timeout for each direct anonymous source request. Source denials are not retried.

## `pageUrls` (type: `array`):

Explicit published pages, one genuine fetched page per output record. Navigation links and sections are never separate pages.

## `pageUrl` (type: `string`):

Alternative to pageUrls.

## Actor input object example

```json
{
  "query": "",
  "maxItems": 10,
  "minItems": 10,
  "requestTimeoutSecs": 30,
  "pageUrls": [
    "https://sites.google.com/view/amdclab/home",
    "https://sites.google.com/view/amdclab/research",
    "https://sites.google.com/view/amdclab/projects",
    "https://sites.google.com/view/amdclab/publication",
    "https://sites.google.com/view/amdclab/lectures",
    "https://sites.google.com/view/amdclab/news",
    "https://sites.google.com/view/amdclab/contact",
    "https://sites.google.com/view/fii-ad/home",
    "https://sites.google.com/view/fii-ad/2026/lectures",
    "https://sites.google.com/view/fii-ad/2026/seminars"
  ]
}
```

# Actor output Schema

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

No description

## `summary` (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 = {
    "pageUrls": [
        "https://sites.google.com/view/amdclab/home",
        "https://sites.google.com/view/amdclab/research",
        "https://sites.google.com/view/amdclab/projects",
        "https://sites.google.com/view/amdclab/publication",
        "https://sites.google.com/view/amdclab/lectures",
        "https://sites.google.com/view/amdclab/news",
        "https://sites.google.com/view/amdclab/contact",
        "https://sites.google.com/view/fii-ad/home",
        "https://sites.google.com/view/fii-ad/2026/lectures",
        "https://sites.google.com/view/fii-ad/2026/seminars"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapeai/google-livesites").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 = { "pageUrls": [
        "https://sites.google.com/view/amdclab/home",
        "https://sites.google.com/view/amdclab/research",
        "https://sites.google.com/view/amdclab/projects",
        "https://sites.google.com/view/amdclab/publication",
        "https://sites.google.com/view/amdclab/lectures",
        "https://sites.google.com/view/amdclab/news",
        "https://sites.google.com/view/amdclab/contact",
        "https://sites.google.com/view/fii-ad/home",
        "https://sites.google.com/view/fii-ad/2026/lectures",
        "https://sites.google.com/view/fii-ad/2026/seminars",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("scrapeai/google-livesites").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 '{
  "pageUrls": [
    "https://sites.google.com/view/amdclab/home",
    "https://sites.google.com/view/amdclab/research",
    "https://sites.google.com/view/amdclab/projects",
    "https://sites.google.com/view/amdclab/publication",
    "https://sites.google.com/view/amdclab/lectures",
    "https://sites.google.com/view/amdclab/news",
    "https://sites.google.com/view/amdclab/contact",
    "https://sites.google.com/view/fii-ad/home",
    "https://sites.google.com/view/fii-ad/2026/lectures",
    "https://sites.google.com/view/fii-ad/2026/seminars"
  ]
}' |
apify call scrapeai/google-livesites --silent --output-dataset

```

## MCP server setup

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

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/7v3SmAHHjq6sXoxV2/builds/LDIeCapfvdbysqKdW/openapi.json
