Pages
Home page
The site's home, from library items in its order: the header, the playground hero, the proof row, the features, the reasons, the set-up steps beside the MCP session, the case stories, the pricing strip, the questions, the close among the creatives and the footer.
Install
React apps get the React files; every other stack gets the web component.
npx spyglass-ds add home-page<script type="module" src="/spyglass-ds/elements/home-page.js"></script>One MCP for the entire social internet
Every ad library and social channel, indexed and analyzed, ready for your agents. Connect our MCP or API in minutes.
500 free credits every month. No card required.
Trusted by teams and agents at
- Acme
- Acme Labs
- Acme Studio
- Acme Goods
- Acme Air
- Acme & Co
What your agents get
Ads, organic posts, creators and landing pages from Meta, Instagram and TikTok, each structured so your agents can use it directly.
Every ad library and social channel
Meta, Instagram and TikTok live today, with Google Ads, LinkedIn Ads and Pinterest coming next.
A search across Meta, Instagram and TikTok (Google Ads, LinkedIn and Pinterest coming soon) for ads and posts that ask a question lines up twelve matching ads and posts, each ad with how long it has run, each post with its views and when it went up.
Every industry, every market
Search any brand, creator or keyword. If it isn’t in the archive yet, Spyglass finds it live and adds it to our internal index.
Searching brands for "running shoes in the US" returns Acme Run, Athletic shoes: 290.8M Instagram followers, no TikTok account, 1,361 active Meta ads. The live search adds 3 new accounts to the archive.
Searching brands for "makeup in Dubai" returns Acme Beauty, Makeup: 56.3M Instagram followers, no TikTok account, 491 active Meta ads. The live search adds 5 new accounts to the archive.
One schema, one record
Reels, posts and ads from every channel resolve to the brand or creator behind them, in one schema your agents can read.
Acme’s mark, its one brand entity, opens to show creative from every channel resolved to it: an ad (Meta), a reel (Instagram), a post (TikTok), a creator post (TikTok) and a landing page linked from ads.
Insights, already computed
Which posts were boosted to paid, where each ad sends people, how a brand’s media mix is shifting. Worked out before your agents ask.
Acme’s top hooks over the last 90 days, from 429 ads: Acme every morning, 46 ads; Creatine for everyday users, 20 ads; Candid hot takes, 16 ads. Each ad is traced to the hook it uses and labelled with its other answers.
Why Spyglass
One schema for Meta, Instagram and TikTok today, with more sources coming.
An archive, built for agents
No scrapers to build, nothing to store or analyze. The archive is already there, structured for your agents.
Twelve Meta ads on a timeline from January 2025 to today: one still running, eleven stopped and all kept.
Only pay for what you use
No seats, ever. One credit per record, and you can see every one of them.
A month of usage on one credit pool: 5 calls, each charged one credit per record returned, 85 credits in all, and $0 per seat.
Built to be customized
Stop paying for ten tools you barely use. Shape the archive into exactly what your team needs.
Ten tools, each doing one different thing and each 10% used; then Spyglass, customized to do all ten, 100% used.
Set up in under a minute
Add the MCP server to your AI tool and sign in. No API key needed for MCP.
Create a free account. 500 free credits every month. No card required.
Connect. Add the MCP server to your AI tool, or call the REST API.
Ask. Ask in plain words. The answer comes back as structured data.
Acme MCPConnected
getBrandMediaInsightstype: "HOOK", maxDaysBack: 90
23 hooks in the last 90 days. The top three:
| Hook | Ads |
|---|---|
| Seasonal openers, “It’s apple season” | 3 |
| Confessional overshare | 2 |
| Declarations of love for the soda | 2 |
Marketing teams on Spyglass
Marketers, founders and agencies on how they research creative now.
Start free. Pay for what you use
500 free credits every month. No card required.
Frequently asked questions
Anything else is in the docs, with every endpoint and tool.
Read the docsMost calls cost one credit per record returned: one brand, one creator or one creative. A search that returns 50 posts or ads uses 50 credits. The API and the MCP server draw on the same monthly credits, and a request that fails is never billed.
Organic posts on Instagram and TikTok with their views, likes and comments, Meta ads across Facebook and Instagram placements, and the landing pages the ads link to. Brands and creators sit on one record across all of them. Google Ads, LinkedIn Ads and Pinterest are coming next.
Yes. Every Instagram and TikTok post comes with its views, likes and comments, and an outlier score against its own account’s usual. Rank a brand’s or a whole category’s posts by any of them, without its ads mixed in.
Spyglass watches public data continuously and keeps it, so ads that stopped running are still there. For an account that is not indexed yet, a live lookup fetches its latest posts in about 10 to 30 seconds and starts indexing the rest.
Use the MCP server to ask in Claude, ChatGPT, Cursor or any MCP client. You sign in with your browser, no API key needed. Use the REST API to call Spyglass from your own code, with SDKs for Python and Node, and a CLI. Both reach the same data and credits.
Add it. Send its website or Instagram handle, up to 20 at a time, and Spyglass indexes it automatically. Adding an account and checking its status are free.
Every creative is tagged ahead of time for hook, angle, persona, format and funnel stage. Ask for a brand’s top hooks, personas, angles or media mix across the last 90 days and the answer is already computed.
Free stops until next month. On Creator you can buy more at $2 per 1K credits, and Pro continues at $1.50 per 1K. Nothing is queued or partly charged in between.
Give your agents the social internet
Usage
A home page for a product agents use. Add it, then edit the copy in lib/pages/home.ts and lib/home/* or pass each block's content; the sections are library items you can reorder or drop.
Never
- Third-party customers, logos or ads without permission: every default is an Acme placeholder
- New colors, shadows or type sizes added to a section: use the items' props
- More than one White button in a section
sections lists the sections to show, in order (hero, proof, features, why, steps, stories, pricing, faq, close); a key left out is not shown. blocks gives each block its own data, pictures included: hero.session, features (ads, burst with each search's images, ring, tally), why (creatives, logo), steps.session, stories (cases with each picture, quotes), pricing.sets and close.creatives. menus passes the header menus (the live card's picture, the use cases' shots). Each picture is an image slot (src, alt, fit, position); without src it keeps its placeholder, which carries data-ds-placeholder.
Adds with it: ascii-trail, case-stories-block, close-block, creative-card, faq-block, features-block, how-it-works-block, mcp-session, playground-hero, pricing-panels-block, proof-block, site-footer, site-header, why-block
Props
The web component takes the same as attributes or properties (<spyglass-home-page>); title is heading there.
<HomePage>
| Prop | Type | Default |
|---|---|---|
content | HomeContent | |
blocks | HomeBlocks Each block's data, pictures included: hero, features, why, steps, stories, pricing, close. | |
menus | HeaderMenus The header menus' content, pictures included (the live card's `picture`, the use cases' `shots`); Acme by default. | |
sections | readonly HomeSection[] The sections to show, in order; all of them in the site's order by default. | |
className | string |
Examples
The same example in React and as web components; both render identically.
import { HomePage } from '@/react/components/pages/HomePage'
// The home page template with its own copy.
export default function Page() {
return <HomePage />
}<!-- The home page template with its own copy. -->
<spyglass-home-page></spyglass-home-page>Source
import { SiteHeader } from '@/react/components/site/SiteHeader'
import { ProofBlock } from '@/react/components/site/ProofBlock'
import { AsciiTrail } from '@/react/components/visuals/AsciiTrail'
import { PlaygroundHero } from '@/react/components/blocks/PlaygroundHero'
import { FeaturesBlock } from '@/react/components/blocks/FeaturesBlock'
import { WhyBlock } from '@/react/components/blocks/WhyBlock'
import { HowItWorksBlock } from '@/react/components/blocks/HowItWorksBlock'
import { CaseStoriesBlock } from '@/react/components/blocks/CaseStoriesBlock'
import { PricingPanelsBlock } from '@/react/components/blocks/PricingPanelsBlock'
import { FaqBlock } from '@/react/components/blocks/FaqBlock'
import { CloseBlock } from '@/react/components/blocks/CloseBlock'
import { SiteFooter } from '@/react/components/blocks/SiteFooter'
import { homeContent, homeSections, type HomeBlocks, type HomeContent, type HomeSection } from '@/lib/pages/home'
import { pageSections } from '@/lib/image'
import { Fragment, type ReactNode } from 'react'
import { cn } from '@/react/lib/cn'
import type { HeaderMenus } from '@/lib/site-header'
// The site's home (app/page.tsx, which renders app/v2/page.tsx), from library items in the site's order: the ASCII
// trail behind the page (a mouse leaves it), the header,
// the playground hero, the proof row, the features, the reasons, the set-up steps beside the MCP session, the case
// stories, the pricing strip, the questions, the close among the creatives and the footer. Each block carries its own
// copy (lib/home/*); `content` replaces the header, proof row, questions and footer (lib/pages/home.ts). `blocks`
// passes each block its own data, pictures included; `sections` lists the sections to show, in order (hero, proof,
// features, why, steps, stories, pricing, faq, close): leave one out to omit it.
export interface HomePageProps {
content?: HomeContent
/** Each block's data, pictures included: hero, features, why, steps, stories, pricing, close. */
blocks?: HomeBlocks
/** The header menus' content, pictures included (the live card's `picture`, the use cases' `shots`); Acme by default. */
menus?: HeaderMenus
/** The sections to show, in order; all of them in the site's order by default. */
sections?: readonly HomeSection[]
className?: string
}
const WRAP = 'mx-auto w-full max-w-[calc(var(--ds-layout-content)+2*var(--ds-layout-gutter))] px-(--ds-layout-gutter)'
export function HomePage({ content: c = homeContent, blocks: b = {}, menus, sections, className }: HomePageProps) {
const parts: Record<HomeSection, ReactNode> = {
hero: <PlaygroundHero session={b.hero?.session} />,
proof: <ProofBlock title={c.proof.title} logos={c.proof.logos} />,
features: <FeaturesBlock ads={b.features?.ads} burst={b.features?.burst} ring={b.features?.ring} tally={b.features?.tally} />,
why: <WhyBlock creatives={b.why?.creatives} logo={b.why?.logo} />,
steps: <HowItWorksBlock session={b.steps?.session} />,
stories: <CaseStoriesBlock cases={b.stories?.cases} quotes={b.stories?.quotes} />,
pricing: <PricingPanelsBlock sets={b.pricing?.sets} />,
faq: (
<div className={cn(WRAP, 'py-(--ds-layout-section)')}>
<FaqBlock id="home-faq" title={c.faq.title} body={c.faq.lead} action={c.faq.action} items={c.faq.items} />
</div>
),
close: <CloseBlock creatives={b.close?.creatives} />,
}
return (
<div data-ds="home-page" className={cn('bg-surface text-fg', className)}>
<AsciiTrail mode="page" />
<SiteHeader menus={menus} links={c.header.nav} secondary={c.header.secondary} cta={c.header.cta} />
<main id="main">
{pageSections(homeSections, sections).map((k) => <Fragment key={k}>{parts[k]}</Fragment>)}
</main>
<SiteFooter columns={c.footer.columns} legal={c.footer.legal} />
</div>
)
}
export default HomePage// The home page's copy (site app/v2/page.tsx: the header, the proof row, the questions and the footer; each section's
// own copy lives with its block in lib/home/). The questions are the site's own; the marks, customers and links are
// Acme placeholders. Both flavors read this file.
import type { BurstContent } from '@/lib/home/accounts-burst'
import type { CloseCreative } from '@/lib/home/close'
import type { MediaAd, RingContent, TallyContent } from '@/lib/home/features'
import type { PanelCreative } from '@/lib/home/pricing'
import type { SessionContent } from '@/lib/home/session'
import type { StoryCase, StoryQuote } from '@/lib/home/stories'
import type { WhyCreative } from '@/lib/home/why'
const nav = [
{ label: 'Products', href: '/products' },
{ label: 'Use cases', href: '/use-cases' },
{ label: 'Enterprise', href: '/enterprise' },
{ label: 'Resources', href: '/resources' },
{ label: 'Pricing', href: '/pricing' },
]
export const homeContent = {
header: { nav, secondary: { label: 'Sign in', href: '/sign-in' }, cta: { label: 'Get a free API key', href: '/sign-up', short: 'Get API key' } },
proof: { title: 'Trusted by teams and agents at', logos: [{ name: 'Acme' }, { name: 'Acme Labs' }, { name: 'Acme Studio' }, { name: 'Acme Goods' }, { name: 'Acme Air' }, { name: 'Acme & Co' }] as { name: string; src?: string; ratio?: number; height?: number }[] },
faq: {
title: 'Frequently asked questions',
lead: 'Anything else is in the docs, with every endpoint and tool.',
action: { label: 'Read the docs', href: '/docs' },
items: [
{ q: 'How do credits work?', a: 'Most calls cost one credit per record returned: one brand, one creator or one creative. A search that returns 50 posts or ads uses 50 credits. The API and the MCP server draw on the same monthly credits, and a request that fails is never billed.' },
{ q: 'What does Spyglass index?', a: 'Organic posts on Instagram and TikTok with their views, likes and comments, Meta ads across Facebook and Instagram placements, and the landing pages the ads link to. Brands and creators sit on one record across all of them. Google Ads, LinkedIn Ads and Pinterest are coming next.' },
{ q: 'Can I see how organic posts perform?', a: 'Yes. Every Instagram and TikTok post comes with its views, likes and comments, and an outlier score against its own account’s usual. Rank a brand’s or a whole category’s posts by any of them, without its ads mixed in.' },
{ q: 'How fresh is the data?', a: 'Spyglass watches public data continuously and keeps it, so ads that stopped running are still there. For an account that is not indexed yet, a live lookup fetches its latest posts in about 10 to 30 seconds and starts indexing the rest.' },
{ q: 'Should I use the MCP server or the REST API?', a: 'Use the MCP server to ask in Claude, ChatGPT, Cursor or any MCP client. You sign in with your browser, no API key needed. Use the REST API to call Spyglass from your own code, with SDKs for Python and Node, and a CLI. Both reach the same data and credits.' },
{ q: 'What if a brand I need is not indexed?', a: 'Add it. Send its website or Instagram handle, up to 20 at a time, and Spyglass indexes it automatically. Adding an account and checking its status are free.' },
{ q: 'What is analyzed before I ask?', a: 'Every creative is tagged ahead of time for hook, angle, persona, format and funnel stage. Ask for a brand’s top hooks, personas, angles or media mix across the last 90 days and the answer is already computed.' },
{ q: 'What happens when I run out of credits?', a: 'Free stops until next month. On Creator you can buy more at $2 per 1K credits, and Pro continues at $1.50 per 1K. Nothing is queued or partly charged in between.' },
],
},
footer: {
legal: '© 2026 Acme Inc.',
columns: [
{ title: 'Products', wide: true, links: [{ label: 'Brands and creators', href: '/products/brands' }, { label: 'Media archive', href: '/products/media' }, { label: 'Collaborations', href: '/products/collabs' }, { label: 'Coming soon', href: '/products/coming-soon' }] },
{ title: 'Use cases', wide: true, links: [{ label: 'Paid ads', href: '/use-cases/paid' }, { label: 'Organic social', href: '/use-cases/organic' }, { label: 'Creator sourcing', href: '/use-cases/creators' }] },
{ title: 'Resources', links: [{ label: 'Templates', href: '/templates' }, { label: 'Docs', href: '/docs' }, { label: 'Blog', href: '/blog' }] },
{ title: 'Company', links: [{ label: 'Enterprise', href: '/enterprise' }, { label: 'Talk to us', href: '/contact' }, { label: 'Sign in', href: '/sign-in' }] },
{ title: 'Legal', links: [{ label: 'Terms', href: '/terms' }, { label: 'Privacy', href: '/privacy' }] },
],
},
}
export type HomeContent = typeof homeContent
/** The home's sections in the site's order; pass `sections` to reorder them or leave some out. */
export const homeSections = ['hero', 'proof', 'features', 'why', 'steps', 'stories', 'pricing', 'faq', 'close'] as const
export type HomeSection = (typeof homeSections)[number]
/** Each block's own data, pictures included (Acme placeholders where left out). */
export interface HomeBlocks {
/** The hero's MCP session (its creatives as images). */
hero?: { session?: SessionContent }
/** The features: the media strip's ads, the searches (each with `images`), the graph ring and the tally. */
features?: { ads?: MediaAd[]; burst?: BurstContent; ring?: RingContent; tally?: TallyContent }
/** The reasons: the archive's four creatives and the advertiser's mark. */
why?: { creatives?: WhyCreative[]; logo?: string }
/** The set-up steps' MCP session. */
steps?: { session?: SessionContent }
/** The case stories: each case's picture, and the quotes. */
stories?: { cases?: StoryCase[]; quotes?: StoryQuote[] }
/** The pricing strip's sets of five creatives. */
pricing?: { sets?: PanelCreative[][] }
/** The creatives the close cycles through. */
close?: { creatives?: CloseCreative[] }
}// Joins class names, skipping falsy ones: cn('a', on && 'b', ['c', undefined]). It does not merge conflicting
// utilities (no tailwind-merge), as Vue's class binding does not: the library's classes are written not to compete,
// and a className from the caller is appended after them, as Vue appends a fallthrough class.
export type ClassValue = string | false | null | undefined | 0 | ClassValue[]
export function cn(...values: ClassValue[]): string {
const out: string[] = []
for (const v of values) {
if (!v) continue
if (Array.isArray(v)) {
const s = cn(...v)
if (s) out.push(s)
}
else out.push(v)
}
return out.join(' ')
}import { html } from 'lit'
import { DsElement, define, HostLayoutController } from '@/elements/lib/element'
import { homeContent, homeSections, type HomeBlocks, type HomeContent, type HomeSection } from '@/lib/pages/home'
import { pageSections } from '@/lib/image'
import '@/elements/components/site/site-header'
import '@/elements/components/site/proof-block'
import '@/elements/components/visuals/ascii-trail'
import '@/elements/components/blocks/playground-hero'
import '@/elements/components/blocks/features-block'
import '@/elements/components/blocks/why-block'
import '@/elements/components/blocks/how-it-works-block'
import '@/elements/components/blocks/case-stories-block'
import '@/elements/components/blocks/pricing-panels-block'
import '@/elements/components/blocks/faq-block'
import '@/elements/components/blocks/close-block'
import '@/elements/components/blocks/site-footer'
import styles from 'virtual:tw'
import { headerMenus, type HeaderMenus } from '@/lib/site-header'
// HomePage.tsx as <spyglass-home-page>: the site's home in its order: the ASCII trail, the header, the playground hero, the proof row,
// the features, the reasons, the set-up steps, the case stories, the pricing strip, the questions, the close and the
// footer. `content` replaces the header, proof row, questions and footer (lib/pages/home.ts); `blocks` passes each
// block its own data, pictures included; `sections` (a list) shows those sections in that order.
const WRAP = 'mx-auto w-full max-w-[calc(var(--ds-layout-content)+2*var(--ds-layout-gutter))] px-(--ds-layout-gutter)'
/**
* @summary The home page template.
*/
export class HomePage extends DsElement {
static styles = [DsElement.styles, styles]
protected readonly layout = new HostLayoutController(this, () => this.renderRoot.querySelector<HTMLElement>('[data-ds="home-page"]'))
static properties = { content: { type: Object }, blocks: { type: Object }, menus: { type: Object }, sections: { type: Array } }
/** The page's copy (lib/pages/home.ts by default). */
content: HomeContent = homeContent
/** Each block's data, pictures included: hero, features, why, steps, stories, pricing, close. */
blocks: HomeBlocks = {}
/** The header menus' content, pictures included (the live card's `picture`, the use cases' `shots`); Acme by default. */
menus?: HeaderMenus
/** The sections to show, in order (hero, proof, features, why, steps, stories, pricing, faq, close); all by default. */
sections?: HomeSection[]
render() {
const c = this.content ?? homeContent
const b = this.blocks ?? {}
const parts: Record<HomeSection, unknown> = {
hero: html`<spyglass-playground-hero .session=${b.hero?.session}></spyglass-playground-hero>`,
proof: html`<spyglass-proof-block heading=${c.proof.title} .logos=${c.proof.logos}></spyglass-proof-block>`,
features: html`<spyglass-features-block .ads=${b.features?.ads} .burst=${b.features?.burst} .ring=${b.features?.ring} .tally=${b.features?.tally}></spyglass-features-block>`,
why: html`<spyglass-why-block .creatives=${b.why?.creatives} .logo=${b.why?.logo}></spyglass-why-block>`,
steps: html`<spyglass-how-it-works-block .session=${b.steps?.session}></spyglass-how-it-works-block>`,
stories: html`<spyglass-case-stories-block .cases=${b.stories?.cases} .quotes=${b.stories?.quotes}></spyglass-case-stories-block>`,
pricing: html`<spyglass-pricing-panels-block .sets=${b.pricing?.sets}></spyglass-pricing-panels-block>`,
faq: html`<div class=${`${WRAP} py-(--ds-layout-section)`}><spyglass-faq-block head-id="home-faq" heading=${c.faq.title} body=${c.faq.lead} .action=${c.faq.action} .items=${c.faq.items}></spyglass-faq-block></div>`,
close: html`<spyglass-close-block .creatives=${b.close?.creatives}></spyglass-close-block>`,
}
return html`<div data-ds="home-page" class="bg-surface text-fg"><spyglass-ascii-trail mode="page"></spyglass-ascii-trail><spyglass-site-header .menus=${this.menus ?? headerMenus} .links=${c.header.nav} .secondary=${c.header.secondary} .cta=${c.header.cta}></spyglass-site-header><main id="main">${pageSections(homeSections, this.sections).map((k) => parts[k])}</main><spyglass-site-footer .columns=${c.footer.columns} legal=${c.footer.legal}></spyglass-site-footer></div>`
}
}
define('home-page', HomePage)Reference: Site app/page.tsx and app/v2/page.tsx (V3Playground hero, V3Proof, V2Features, V2Why, V2HowItWorks, V3CaseStories, V2Pricing, V3Faq, V3Close, the header and footer), measured at 1440 and 390; built from ascii-trail, playground-hero, proof-block, features-block, why-block, how-it-works-block, case-stories-block, pricing-panels-block, faq-block, close-block, site-header and site-footer.