{
  "openapi": "3.0.1",
  "info": {
    "title": "Web Data to Notion Dashboard",
    "description": "Scrape local businesses (restaurants, real estate, gyms, hotels, schools) or social content (YouTube, Instagram, TikTok) and get a polished Notion dashboard with table, gallery, and map views — one Actor run. Powered by Apify MCP Connectors: we never see your Notion token.",
    "version": "0.1",
    "x-build-id": "be1g7uig2LNSjeHf1"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/grizzlygriff~web-data-to-notion-dashboard/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-grizzlygriff-web-data-to-notion-dashboard",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/grizzlygriff~web-data-to-notion-dashboard/runs": {
      "post": {
        "operationId": "runs-sync-grizzlygriff-web-data-to-notion-dashboard",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/grizzlygriff~web-data-to-notion-dashboard/run-sync": {
      "post": {
        "operationId": "run-sync-grizzlygriff-web-data-to-notion-dashboard",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "vertical",
          "location",
          "notionConnector",
          "parentPageUrl"
        ],
        "properties": {
          "vertical": {
            "title": "What to scrape",
            "enum": [
              "restaurants",
              "real_estate",
              "gyms",
              "hotels",
              "schools",
              "youtube",
              "instagram",
              "tiktok"
            ],
            "type": "string",
            "description": "**Local business** (Restaurants, Real estate, Gyms, Hotels, Schools) → enter a location below.\n\n**Content** (YouTube, Instagram, TikTok) → enter a search query, URL, or handle below.\n\nMore verticals (Google Search, Website Crawler, Facebook) are planned.",
            "default": "restaurants"
          },
          "location": {
            "title": "Location or search query",
            "type": "string",
            "description": "**Local business** — City + State + ZIP: `Austin, TX 78704` · `Johnson City, TN 37604` · `Brooklyn, NY 11215`. Bare ZIPs can match foreign postal codes.\n\n**YouTube** — search query or channel URL: `Apify tutorials` or `https://www.youtube.com/@apify`\n\n**Instagram** — profile or hashtag URL: `https://www.instagram.com/apify/` or `https://www.instagram.com/explore/tags/webscraping/`\n\n**TikTok** — search term or hashtag: `web scraping` or `#datascience`"
          },
          "maxItems": {
            "title": "Max items to scrape",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Cap on rows fetched from the upstream source. **Approximate costs** (upstream scraping only — Apify compute is extra): 5 items ≈ $0.04–0.06 · 50 items ≈ $0.20–0.60 (Google Maps / Zillow) · 50 YouTube videos ≈ $0.10. Notion's map view shows at most 100 items.",
            "default": 50
          },
          "notionConnector": {
            "title": "Notion workspace",
            "type": "string",
            "description": "Pick your Notion workspace. **One-time setup** — authorize once and every future run uses the same connection automatically. No need to re-authorize between runs.\n\nDon't see a connection? [Authorize Notion in 60 seconds](https://console.apify.com/account/integrations/mcp-connectors/new?serverUrl=https%3A%2F%2Fmcp.notion.com%2Fmcp) — click the link, log in to Notion, click 'Allow'. Apify never sees your Notion token. Your authorization is brokered by Apify's MCP proxy and is encrypted at rest."
          },
          "parentPageUrl": {
            "title": "Parent page in Notion",
            "type": "string",
            "description": "Paste the URL of any Notion page in your workspace — the dashboard lands inside it as a child. **This is a one-time setup; future runs reuse the same page.** Don't have one? Open Notion → New page → name it 'Apify Dashboards' → copy that URL.\n\n**Recommended:** publish this page first (Share → Publish to web) — Notion only lets *you* (not the Actor) make pages public, so this one click makes every dashboard inside automatically shareable."
          },
          "dataSource": {
            "title": "Data source",
            "enum": [
              "yourOwn",
              "demo"
            ],
            "type": "string",
            "description": "**Live scrape** runs the upstream Actor for your location or query. **Sample data** writes a bundled 5-row Austin restaurants dataset at zero cost — a quick way to see the pipeline without spending anything. Sample data only works with Vertical = Restaurants; picking any other vertical with Sample data selected will fail fast with a clear message.",
            "default": "yourOwn"
          },
          "siteTitle": {
            "title": "Dashboard title",
            "type": "string",
            "description": "**Will auto-generate, if left blank —**\n\nNamed from what the run actually finds, e.g. \"Restaurants in Austin, TX\" from the scraped addresses, \"YouTube videos by VeriTones\" from the channel, or \"TikTok videos — #fitness\" from your query. Ignored when Data source = Sample data."
          },
          "includeMapView": {
            "title": "Map view",
            "enum": [
              "auto",
              "on",
              "off"
            ],
            "type": "string",
            "description": "Adds a map view. **Auto** enables for location-based verticals with reliable geocoding (Restaurants, Real estate, Hotels) and disables for Gyms and Schools. Never available for content verticals (YouTube, Instagram, TikTok) — no coordinates. Map shows up to 100 items.",
            "default": "auto"
          },
          "includeGalleryView": {
            "title": "Gallery view",
            "type": "boolean",
            "description": "Adds a gallery view with photo thumbnails (local-business verticals) or video/post thumbnails (YouTube, Instagram, TikTok). Auto-skipped if the scraped items return no images.",
            "default": true
          },
          "costCap": {
            "title": "Cost cap (USD)",
            "minimum": 0.5,
            "maximum": 50,
            "type": "number",
            "description": "Worst-case ceiling for upstream scraping cost — not an estimate. Typical run: $0.40–$1.20 for 50 items (Google Maps), $0.40–$1.50 for 50 Zillow listings, ~$1.00 for 50 YouTube videos. Default $3 includes a buffer. Runs stop and write what they have if this is hit.",
            "default": 3
          },
          "bypassCache": {
            "title": "Force fresh run",
            "type": "boolean",
            "description": "Bypass the idempotency cache and re-scrape even if you ran this same query recently.",
            "default": false
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}