# Site Search Indexer & Custom Search Migration Bridge (`piksen_digital/site-search-indexer`) Actor

Build a domain-scoped, structured-content search index from llms.txt manifests, sitemaps, and page metadata. Returns clean JSON for site search and RAG pipelines.

- **URL**: https://apify.com/piksen_digital/site-search-indexer.md
- **Developed by:** [George Chapungu](https://apify.com/piksen_digital) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 llm site search indexer — google custom search migrations

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

## Site Search Indexer — llms.txt & Schema.org to Clean JSON

Build a domain-scoped, structured JSON search index from **publisher-hosted manifests** — `llms.txt`, `llms-full.txt`, sitemaps, Schema.org JSON-LD, Open Graph, and standard HTML metadata. No SERP scraping, no anti-bot friction, no layout-churn breakage.

Designed as a deterministic replacement foundation for site-search and RAG pipelines, and a practical migration path off the **Google Custom Search JSON API**, which shuts down **January 1, 2027**.

***

### Why this Actor

| Problem | This Actor |
|---|---|
| Google CSE JSON API shuts down Jan 1, 2027 | Domain-scoped index you own, from the site's own manifests |
| SERP scraping breaks on layout changes and anti-bot walls | Reads publisher-sanctioned `llms.txt` / sitemaps only |
| LLM pipelines need grounded, current facts | Returns bounded, hashable page text ready for retrieval |
| Existing crawlers return raw HTML | Returns clean JSON: title, description, content, JSON-LD, Open Graph |

***

### Quick start

1. Click **Try for free** on this page.
2. Enter one or more start URLs — for example `https://docs.yourcompany.com/`.
3. Set **Maximum pages** (start with 5–10 for a trial).
4. Click **Start**.

The Actor checks the standard manifest paths first (`/llms-full.txt`, `/llms.txt`), then sitemaps and `robots.txt` declarations, and fetches HTML, Markdown, and plain-text resources **only on the starting hostname**. It does not execute JavaScript and never touches search-engine results pages.

**First run is free** up to the free-tier page limit.

***

### Inputs

Grouped in the Console as *Index sources*, *Limits and output*, *Incremental updates*, and *Network behavior*.

| Input | Default | Notes |
|---|---|---|
| **Start URLs** *(required)* | — | HTTP(S) pages or site roots. All discovered links stay on the same hostname. |
| **Maximum pages** | 100 | Hard cap on unique pages emitted (1–500). |
| **Include readable page content** | on | Extracts bounded text per page. |
| **Maximum content characters** | 6,000 | Per-page text cap when content is enabled. |
| **Indexing mode** | Full | `Full` emits everything; `Changes` emits only new/changed pages. |
| **Previous index JSON URL** | — | In `Changes` mode, a public JSON array (or `{ items: [...] }`) with prior `url` and `contentHash` fields. |
| **Request timeout** | 20 s | Applies to every request. |
| **HTTP User-Agent** | `SiteSearchIndexer/1.0` | Identify your client; respect each site's terms and `robots` policy. |

All limits are enforced again at runtime, not only in the form.

***

### Output

Each dataset item is one page:

````json
{
  "url": "https://hono.dev/docs/concepts/routers",
  "domain": "hono.dev",
  "title": "Routers - Hono",
  "description": "Web framework built on Web Standards...",
  "content": "The routers are the most important features for Hono...",
  "contentHash": "ddeb066d4ca7833224907f11b374b6d5...",
  "sourceType": "llms-full.txt",
  "language": "en-US",
  "structuredData": [],
  "openGraph": { "og:type": "website", "og:image": "https://hono.dev/images/hono-title.png" },
  "lastModified": null,
  "indexedAt": "2026-11-17T15:57:55.480Z"
}



# Actor input Schema

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

One or more pages or site roots to index. All discovered links must remain on the same hostname as a start URL.
## `maxPages` (type: `integer`):

Hard cap on unique pages fetched across all start URLs.
## `includeContent` (type: `boolean`):

Extract a bounded plain-text passage from each supported HTML, Markdown, or plain-text resource.
## `maxContentChars` (type: `integer`):

Maximum extracted text characters stored per page when readable content is enabled.
## `changeMode` (type: `string`):

Full emits all successfully indexed pages. Changes emits only new or changed pages when a previous index is supplied.
## `previousIndexUrl` (type: `string`):

Optional publicly accessible JSON array (or { items: [...] }) from a prior run. Used to compare content hashes in Changes mode.
## `requestTimeoutSecs` (type: `integer`):

Timeout applied to each manifest, sitemap, previous-index, and page request.
## `userAgent` (type: `string`):

Identify your client when fetching publisher-hosted resources. Follow each site's published terms and robots policy.

## Actor input object example

```json
{
  "startUrls": [
    "https://example.com/"
  ],
  "maxPages": 100,
  "includeContent": true,
  "maxContentChars": 6000,
  "changeMode": "full",
  "requestTimeoutSecs": 20,
  "userAgent": "SiteSearchIndexer/1.0 (+https://apify.com/)"
}
````

# Actor output Schema

## `searchIndex` (type: `string`):

Run dataset in JSON format. Use the URL with ?format=json for a clean JSON array.

## `summary` (type: `string`):

Counts and source details for this indexing run.

# 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": [
        "https://example.com/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("piksen_digital/site-search-indexer").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": ["https://example.com/"] }

# Run the Actor and wait for it to finish
run = client.actor("piksen_digital/site-search-indexer").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": [
    "https://example.com/"
  ]
}' |
apify call piksen_digital/site-search-indexer --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,piksen_digital/site-search-indexer"
        }
    }
}
```

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/BC2pFPXTdETYDLlma/builds/hsGmY1Y7OKLO8tFBB/openapi.json
