# Game Embed Inspector & Catalog Metadata Extractor (`zibamzibamzibam/embedguard-game-embed-inspector`) Actor

Inspect HTML5 game pages and generate catalog-ready JSON.

✅ CSP & X-Frame-Options checks
✅ Game title, image & engine hints
✅ Iframe compatibility assessment
✅ Bulk review up to 50 URLs

HTTP-only checks; embedding permission and gameplay are not verified.

- **URL**: https://apify.com/zibamzibamzibam/embedguard-game-embed-inspector.md
- **Developed by:** [Mehmet Şengün](https://apify.com/zibamzibamzibam) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $40.00 / 1,000 game url inspecteds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## Game Embed Inspector & Catalog Metadata Extractor — EmbedGuard

**A small AI-agent-ready product for Apify Store.** Inspect public HTML5 game pages, predict iframe *header compatibility* for a given portal, and extract a catalog-ready JSON entry. This is designed for browser-game directories, education portals, interactive-content curators and AI agents.

### What buyers get

- One JSON result per URL: title, description, thumbnail, genres, tags, canonical, engine hints (Unity, Phaser, Godot, Pixi, Construct, GDevelop), canvas/iframe signals.
- Origin-specific embeddability verdict from **CSP `frame-ancestors` and X-Frame-Options** with a clear explanation and explicit caveats.
- A normalized `catalogEntry` object to send to a CMS, dashboard, game-portal ingestion pipeline or LLM agent.
- Structured `issues`, so an AI assistant can explain why a listing needs manual review.
- Up to **50 public URLs per run**, zero external API keys, and **no LLM inference fees**.

The Actor does **not** render JavaScript or guarantee game playability. A `possible` verdict means only that the *observed HTTP headers* have not disallowed the requested origin. JavaScript frame-busting, embedded child pages, regional/CDN responses, cookies, bot protection, mixed content, and runtime game compatibility require browser testing. Sites can vary their headers by geography and user-agent.

**Critical licensing disclaimer:** Successfully loading a game in an iframe does not confer permission to embed or redistribute it. Product entries always carry `licensingStatus: manual-review-required` and `publishAutomatically: false`. Obtain the publisher's approval and verify terms before publishing any game content. This tool does not bypass iframe restrictions or licensing controls.

### Sample input

```json
{
  "urls": ["https://example.com/game/some-game", "https://another-example.org/arcade"],
  "targetOrigin": "https://your-gaming-portal.com"
}
```

### Sample output shape

```json
{
  "status": "ok",
  "sourceUrl": "https://example.com/game/some-game",
  "embed": {"verdict": "possible", "reason": "No HTTP frame restrictions were observed; client-side and runtime blockers remain untested"},
  "metadata": {"title": "Example Game", "thumbnail": "https://example.com/cover.png", "engines": ["phaser"]},
  "catalogEntry": {
    "title": "Example Game",
    "embedStatus": "possible",
    "embedUrlCandidate": "https://example.com/game/some-game",
    "licensingStatus": "manual-review-required",
    "publishAutomatically": false
  }
}
```

Sample values above illustrate the data contract, not a live or verified third-party game.

### Publish on Apify

1. Install [Apify CLI](https://docs.apify.com/cli/) using the current official installation instructions, create/sign in to your own Apify account, and `cd` into this folder.
2. Run `apify validate-schema` (on versions supporting it), then `apify push`. The Actor ships with `.actor/actor.json`, input and output schemas, and a Dockerfile.
3. In Apify Console run a smoke test against a public HTML game page you are authorized to inspect, supplying your portal's origin.
4. Set the pricing model to **Pay per event**, create an event named **`game-inspected`**, and choose an initial **$0.04 per successful HTML inspection** as a pricing hypothesis. **Remove/disable the synthetic default dataset-item event** if needed to avoid unintended extra charges; confirm the live Pricing tab. Invalid/unavailable pages are intended not to incur this custom event charge. Test the full billing flow before publication.
5. Fill in Store description, icon, categories, examples, ownership/payment verification and any review details requested by Apify. Only the owner can publish and activate monetization. The exact publication checklist/requirements may change.
6. To expose it to Claude, ChatGPT, Gemini-connected agents or other MCP clients, use [Apify's agent integration documentation](https://docs.apify.com/integrations/agents). **MCP discoverability does not mean every chat product will recommend your tool.**

The Actor deliberately does not ship with a claimed Apify Store URL because one exists **only after you publish it**. Credentials, payouts and Store review cannot be completed from this package alone.

### Test locally (no Apify account required)

Python 3.11+ is sufficient; the core analyzer has **no external Python dependencies**. Cloud execution uses the Python SDK preinstalled in `apify/actor-python:3.13`.

```bash
python3 -m unittest discover -s tests -v
python3 main.py --local --input examples/input.json --output results.json
```

Local mode makes real outbound requests. URLs in `.example` are placeholders and will not resolve; replace them with publicly reachable URLs to test. The `examples/input.json` default points at `example.com` to exercise an intentionally nongame page.

### Security and operational limits

- Remote URLs must be public HTTP(S) on port 80/443. Literal private IPs and private DNS results are rejected; each redirect is revalidated and IP-pinned to avoid DNS rebinding between validation and connection.
- 4 redirects maximum, 2 MB HTML, 10 seconds per URL, 50 URLs per run. No JS execution, authentication, captcha bypass, proxy rotation, cookie sharing or crawling other pages.
- HTML parser understands HTML meta tags and JSON-LD `VideoGame`/`SoftwareApplication`/`Game` metadata; not every game uses these formats, so extraction is best effort.
- Only check sites you are authorized to inspect and follow their terms and reasonable use policies. This HTTP header check is not an actual iframe browser test.
- The user remains responsible for publishing content only where legally permitted.

### Pricing / unit economics hypothesis

| Quantity | Hypothesis |
| --- | --- |
| Unit | One successful HTML game inspection |
| Customer price | $0.04 / inspected page ($40 / 1,000) |
| Example monthly demand | 1,000 paid inspections |
| Gross charges at that demand | $40 |
| Revenue after assumed 20% marketplace fee | $32 |
| Hosting, storage, refunds, taxes | **Not** deducted in the above example |

The $0.04 figure is **not** a verified market-clearing price, and the 20% platform rate/plan terms should be confirmed in the Console for your account. At low volumes this is not a viable standalone income; it needs distribution, repeat buyers, integrations and/or an upsell. Monitor actual cost per run and competitor prices before publishing. The product can also serve as an internal tool for your game directory independent of store revenue.

### Positioning / Store listing proposal

**Title:** Game Embed Inspector & Catalog Metadata Extractor

**Short description:** Check if an HTML5 game URL can be framed by your website using CSP/X-Frame-Options, then extract images, descriptions, engine hints, and an AI-ready game catalog record. No API key needed.

**Keywords:** game embed checker, iframe validator, CSP frame-ancestors, X-Frame-Options, HTML5 game metadata, online game scraper, browser game catalog, game directory ingestion, AI gaming agent, MCP tool.

**Promised result:** Save manual research, not promise copyright clearance or guaranteed playability.

### Next improvements worth validating with users

- Opt-in browser smoke test via Playwright for real iframe rendering and screenshot, respecting site policies.
- Rights/license ingestion from publisher-maintained feed with *explicit* license evidence.
- Bulk export presets for popular open CMS systems and game portals.
- Paid monitoring of changing embed policies/thumbnail metadata with scheduled Apify tasks.

# Actor input Schema

## `urls` (type: `array`):

Only public HTTP(S) URLs, one per array element. Private-network destinations are blocked.

## `targetOrigin` (type: `string`):

Optional origin, e.g. https://browsergames.life. This is needed to evaluate CSP frame-ancestors and SAMEORIGIN against your site.

## Actor input object example

```json
{
  "urls": [
    "https://classic.play2048.co/"
  ],
  "targetOrigin": "https://browsergames.life"
}
```

# Actor output Schema

## `gameResults` (type: `string`):

Full per-page results with catalogEntry, metadata, embed verdict and issues.

## `runSummary` (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 = {
    "urls": [
        "https://classic.play2048.co/"
    ],
    "targetOrigin": "https://browsergames.life"
};

// Run the Actor and wait for it to finish
const run = await client.actor("zibamzibamzibam/embedguard-game-embed-inspector").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 = {
    "urls": ["https://classic.play2048.co/"],
    "targetOrigin": "https://browsergames.life",
}

# Run the Actor and wait for it to finish
run = client.actor("zibamzibamzibam/embedguard-game-embed-inspector").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 '{
  "urls": [
    "https://classic.play2048.co/"
  ],
  "targetOrigin": "https://browsergames.life"
}' |
apify call zibamzibamzibam/embedguard-game-embed-inspector --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,zibamzibamzibam/embedguard-game-embed-inspector"
        }
    }
}
```

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/S9CmPJ1dDpyMhJ3o5/builds/2ZC0aDQtXy935K4r6/openapi.json
