--- name: spywinads-page-lookup description: See the video ads a Facebook Page runs: total and live ads, each video's real age (the day the file first hit Meta), other Pages and stores running the same video, and which stores the Page sends traffic to. Use whenever the user pastes a Facebook Page link or Page ID, or asks "what ads does this Page run", "which store is behind this Page", "Fanpage này chạy ads gì", "page này trỏ về store nào", "soi fanpage" — even if SpyWinAds is not mentioned. compatibility: Needs the SpyWinAds MCP connection (https://spywinads.com/mcp, free account, 30 credits a day). Runs on Claude.ai, Claude Code, ChatGPT (Plus and up), Cursor, Codex. license: MIT --- # Facebook Page lookup — every video ad a Page runs Data comes from the **SpyWinAds MCP**: a library of Meta video ads shown in the US, scanned by SpyWinAds users. Each video is fingerprinted, so the same video running in many stores is recognised as one. ## 0. Check the connection first No tool named `spywin_*` available → the user has not connected SpyWinAds yet. Do not guess numbers or analyse from memory: the user will trust those numbers. Say in one line what they get once connected (real video age and how many stores run each video, straight from the library, in one lookup), give the setup steps for where they are (section **Setup** at the end), and offer the free web tool https://spywinads.com/facebook-page-ads meanwhile. Wait until they are connected. `found: false` → call `spywin_queue_page_scan` only if it is in your tool list (ask the user one short question first), then follow with `spywin_get_scan_status(request_id=…)` and look up again. Not in your tool list → give the free scan link the tool returned. Each SpyWinAds tool call uses 1 credit (free trial and paid plans: 100 a day, free after the trial: 30), so call the right tool once per input. If a tool says out of credits or not signed in, repeat that message and link `https://spywinads.com/developers`. Answer in the user's language, including table headers. ## 1. Look up the Page Input: a Page link (`https://www.facebook.com/...`) or a numeric Page ID. A link to a single ad is not a Page: use `spywin_lookup_video_ad` for that, or point to skill spywinads-video-age. Call `spywin_get_page_ads(page)`. You get total and live ads, videos, top videos with real age, and the stores the Page sends traffic to. `found: false` → section 0 (`kind="page"`). ## 2. What to point out - **Stores behind the Page**: one Page often feeds several stores (or the reverse). List them by domain. - **Shared videos**: a video also run by other Pages / stores → copied or a supplier video. Give the count. - **Fresh vs old**: how many top videos have a video age under 30 days (from `video_first_on_meta`, counted from today). ## 3. Report **Summary** (2–3 sentences): what the Page sells, which stores, how active. | # | Product | Store (domain) | Video age | Stores running now / ever (all stores) | Live ads on this Page | Why it is worth a look | |---|---|---|---|---|---|---| Page has 0 live ads → say so once in the summary instead of a column of zeros (drop the column). **Next step** — offer in plain words, and if the user picks one, call the tool yourself: a store behind the Page → `spywin_spy_store_ads(domain)` · the top video → `spywin_lookup_video_ad(video_id=…)` (older connector without `video_id`: ask for the Ad Library link). ## Read the numbers correctly - **Real video age** = `video_first_on_meta`, the day the video file was first uploaded to Meta. Show it as date + days, counted from today: "22 Sep (52 days)". The ad start date resets each time a store pauses and restarts an ad; the file date does not, so say "video age", not "ad running for". `video_first_on_meta` empty → the file date is unknown: give `first_ad` and say it is the first ad date, not the video age. - **Scope**: `live_ads` counts only the store / Page / product you looked up (whole library for a single-video lookup). `stores_running_now`, `stores_ever` and `pages_running_now` count **every store in the library**. So a paused store (0 live ads) can show a video that 4 other stores still run: say exactly that ("paused here, still running in 4 other stores"), it is not a contradiction. - A product name that looks like a code (`ymtldysdym1`) is the store's URL handle: say the name is not readable and give the landing page. Same product with several videos → one row: numbers of the video with the most `stores_ever`, plus "2 videos". - Sort rows by `stores_ever` (most copied first). The tool returns the top videos only: say so ("top 12 of 59 videos"). - Group brands by the **landing-page domain**, never by ad copy. Two stores with the same hook are still two brands. - The library only sees a **minimum count of ads observed**: no spend, reach, orders or revenue. Many ads / many stores / a long run means *being invested in or copied*, not *profitable*. Say "worth a look because…", never "winning", "profitable", "making sales". - Data = Meta ads shown in the US, scanned by SpyWinAds users. "Earliest store" = earliest in the library, not proven owner. ## Limits This skill only reads SpyWinAds data: it does not scrape Facebook and never logs in to the user's Facebook account. ## Setup (give this to users who are not connected) Sign-up happens at the login step, no card. New accounts get a **7-day free trial**: 100 credits a day, plus keyword scans and video downloads through the SpyWinAds desktop app. After the trial these lookups stay free at 30 credits a day. - **Claude.ai** (every plan incl. Free, 1 custom connector): Customize → Connectors → + → Add custom connector → URL `https://spywinads.com/mcp` → Connect → sign in → Allow. - **ChatGPT** (Plus / Pro / Business; Free cannot add custom MCP yet, suggest Claude.ai Free): Settings → Apps & Connectors → Advanced → Developer mode → Create → URL `https://spywinads.com/mcp`, OAuth → sign in → Allow. - **Claude Code**: `claude mcp add --transport http spywinads https://spywinads.com/mcp`, then type `/mcp`, pick spywinads and finish the sign-in in the browser (adding it alone does not connect it). - **Cursor / Codex / scripts**: API key at `https://spywinads.com/developers`, header `Authorization: Bearer ` (never in the URL). Want the full analysis (several stores, ad angles, Shopify CSV in one go)? Skill **spywinads-soi-ads**: https://github.com/SpyWinAds/soi-ads-skill