# Google Forms Live Query Actor (`scrapeai/google-liveforms`) Actor

Read native public Google Forms question items, frontend item/entry IDs, required flags and options from supplied form URLs. No submissions or respondent data.

- **URL**: https://apify.com/scrapeai/google-liveforms.md
- **Developed by:** [ScrapeAI](https://apify.com/scrapeai) (community)
- **Categories:** Developer tools, Automation, Other
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 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 Forms Actor do?

Read **actual public question definitions** from explicitly supplied published Google Forms URLs. Each native question item becomes one dataset record with its public frontend item ID, entry IDs, text, option definitions, required flags and source provenance. No provider API key is required for an anonymously readable form. The Actor reads the native public page data and does not send a form submission.

### Why use it?

Inventory published questionnaires, compare public field definitions and prepare downstream schema integrations. Apify datasets, scheduling, API access and monitoring make repeated read-only snapshots convenient. This is question-schema data: it is not evidence of responses, respondents, survey results or response counts.

### How to use it

1. Paste published docs.google.com/forms/d/e/.../viewform URLs into formUrls. Two real public forms are prefilled as a ten-item example.
2. Optionally enter a literal phrase in query to filter question title, question description or option values. Parent form metadata alone does not make a question match.
3. Set maxItems and minItems. A short form can legitimately contain fewer than10 questions; lower minItems when that is intended.
4. Start the Actor and inspect the native IDs, entry flags and source evidence.

### Input

formUrls accepts one to100 distinct public published forms. URL aliases startUrls, url and searchUrl and a legacy actorInput object support equivalent explicit form inputs. Editor URLs, formResponse submission endpoints and arbitrary hosts are rejected. URL tracking and prefilled answer parameters are discarded. maxItems defaults to10, with an upper bound of1000; every supplied outer/nested maxItems, maxResults, maxRecords, limit and maxQuestions cap applies by minimum. minItems defaults to10 and cannot exceed maxItems. requestTimeoutSecs defaults to30. This does not search private Drive files or discover forms across the web.

### Output

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel. Each native item that contains question entries is counted once. Section/media/text-only items are excluded. A multi-entry group remains one item with nested entries; rows/options are not multiplied to reach a record target.

|Field|Meaning|
|---|---|
|publishedFormId / formUrl|Exact published form URL identifier, not an inferred private Forms API ID|
|sourceItemId|Native decimal frontend item ID|
|id|Derived combination of published ID and native item ID|
|questionTitle / description|Native public question text|
|nativeTypeCode|Observed frontend numeric type code, not a guessed REST enum|
|entries|Native entry IDs, real required flags and available option definitions|
|domBound / controlRoles / inputTypes|Initial-page rendered binding and observed controls where present|
|formItemPosition / itemPosition|Source item order and global returned order|
|sourceUrl / sourceRecordKey / scrapedAt|Exact source endpoint, selected same-run evidence and observation time|

False required/Other flags and numeric type code0 are preserved. An Other flag with an empty native option value stays explicitly flagged without an invented label. Native model items from later pages may lack an initial-page DOM binding; that absence is explicit and is not a claim that the item was interactively rendered. No correct quiz answers or grading, author identities, creation times or private account details are inferred.

### Cost estimation

No Google API key is used for these public definitions. Apify compute, storage and network charges depend on your plan. The runtime uses one public form GET per target plus one cached robots check, keeps requests paced and has a4MB response bound. It does not launch a browser or rotate identities.

### Tips and advanced options

Use the actual public viewform URL rather than a short link or editor address. Use a narrow phrase to inspect specific questions and reduce minItems if the filter legitimately yields fewer rows. The default example uses explicit two-form input: nine items from one and one from the next, under a global cap10. No unrelated form is silently added to complete a dataset.

### FAQ and support

The native public array is parsed as JSON without eval or execution of source scripts. Public question fields and visible bindings are retained as source evidence; submission/draft tokens and respondent values are excluded. A login redirect, denied source, missing public model or closed form fails explicitly without following a challenge or posting data. Private OAuth CRUD, Forms API IDs/enums, submissions, response retrieval and quiz grading require separate authorized integrations and are outside this public read-only mode. Only process forms you are permitted to read and report reproducible issues through the Issues tab without credentials or response data.

# Actor input Schema

## `formUrls` (type: `array`):

Explicit published docs.google.com/forms/d/e/.../viewform URLs. One record per real native question item; this reads definitions, not people or submissions. Optional here so URL aliases work; the runtime requires at least one URL input.

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

Optional literal case-insensitive phrase in question title, description or option values. Does not search private Drive/forms.

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

Global cap across all explicitly supplied forms, excluding section/media headers.

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

Fail instead of padding when fewer real question items match. Set a smaller value for a short form.

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

Per anonymous public GET request, without retries or identity changes.

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

Alternative to formUrls: one explicit published viewform URL. At least one URL input is required by the runtime.

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

Optional nested explicit form URLs and settings. Runtime validates the combined input and applies every outer/nested record cap.

## Actor input object example

```json
{
  "formUrls": [
    "https://docs.google.com/forms/d/e/1FAIpQLSeZqaxGEi8Ws4gy81GI68gT3DX1SFzyQ0oZA4wBrYCr6pMx3A/viewform",
    "https://docs.google.com/forms/d/e/1FAIpQLScCJS4-muEA5QqUau9vVYv0yz28BuzhUwjhhklIMqkdkBJxlQ/viewform"
  ],
  "query": "",
  "maxItems": 10,
  "minItems": 10,
  "requestTimeoutSecs": 30
}
```

# 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 = {
    "formUrls": [
        "https://docs.google.com/forms/d/e/1FAIpQLSeZqaxGEi8Ws4gy81GI68gT3DX1SFzyQ0oZA4wBrYCr6pMx3A/viewform",
        "https://docs.google.com/forms/d/e/1FAIpQLScCJS4-muEA5QqUau9vVYv0yz28BuzhUwjhhklIMqkdkBJxlQ/viewform"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapeai/google-liveforms").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 = { "formUrls": [
        "https://docs.google.com/forms/d/e/1FAIpQLSeZqaxGEi8Ws4gy81GI68gT3DX1SFzyQ0oZA4wBrYCr6pMx3A/viewform",
        "https://docs.google.com/forms/d/e/1FAIpQLScCJS4-muEA5QqUau9vVYv0yz28BuzhUwjhhklIMqkdkBJxlQ/viewform",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("scrapeai/google-liveforms").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 '{
  "formUrls": [
    "https://docs.google.com/forms/d/e/1FAIpQLSeZqaxGEi8Ws4gy81GI68gT3DX1SFzyQ0oZA4wBrYCr6pMx3A/viewform",
    "https://docs.google.com/forms/d/e/1FAIpQLScCJS4-muEA5QqUau9vVYv0yz28BuzhUwjhhklIMqkdkBJxlQ/viewform"
  ]
}' |
apify call scrapeai/google-liveforms --silent --output-dataset

```

## MCP server setup

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

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/TZkQWt0tbjPR3Dh7b/builds/bdztyO6g1c67xQffa/openapi.json
