Your AI visibility, in your own tools.
Read your Geoffice data from dashboards and scripts with the REST API, or let Claude, Cursor and other assistants answer questions about it with the MCP server.
Show Geoffice pages on your site
When a business chooses My developer connects it, Geoffice publishes pages at their own addresses on the business’s domain (for example /solutions/ai-agents), and the site renders them in its own design. The business sends you a site key from Geoffice.
1. Render pages from the site API
Both endpoints are public JSON, no key needed beyond the site key in the URL:
GET https://geoffice.cc/api/public/site/{siteKey}
→ { site, check: "/geoffice-check", sections: [{ name, path, pages[], categories[{ …, pages[] }] }] }
GET https://geoffice.cc/api/public/site/{siteKey}/page?path=/solutions/ai-agents
→ { path, canonical, title, description, breadcrumbs, toc, html, fullHtml, sources, children, jsonLd, noindex? }Add a catch-all route that asks for the page at the requested path and renders title, fullHtml (or html if you lay out the contents and sources yourself) and jsonLd, with description and canonical in the head. Answer 404 when the API does.
2. Build the check page
The structure’s check path (/geoffice-check) is a page like any other. Render it, keep it out of your sitemap, and set noindex when the page says so. Geoffice loads it to confirm your site shows its pages, and only publishes once it does.
Next.js (app router)
// app/[...path]/page.tsx
import { notFound } from "next/navigation";
const SITE = "https://geoffice.cc/api/public/site/SITE_KEY";
const get = async (path: string) => {
const r = await fetch(`${SITE}/page?path=${encodeURIComponent(path)}`, { next: { revalidate: 300 } });
return r.ok ? r.json() : null;
};
export async function generateMetadata({ params }) {
const page = await get("/" + (await params).path.join("/"));
return page ? { title: page.title, description: page.description, alternates: { canonical: page.canonical }, robots: page.noindex ? { index: false } : undefined } : {};
}
export default async function Page({ params }) {
const page = await get("/" + (await params).path.join("/"));
if (!page) notFound();
return (
<article>
<script type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify(page.jsonLd) }} />
<h1>{page.title}</h1>
<div dangerouslySetInnerHTML={{ __html: page.fullHtml }} />
</article>
);
}Astro and other static sites
---
// src/pages/[...path].astro
const SITE = "https://geoffice.cc/api/public/site/SITE_KEY";
const FRESH = "v=" + Date.now(); // skip cached answers right after publishing
export async function getStaticPaths() {
const { sections, check } = await fetch(`${SITE}?${FRESH}`).then((r) => r.json());
const paths = new Set([check]);
for (const s of sections) for (const p of [...s.pages, ...s.categories.flatMap((c) => [c, ...c.pages])]) if (!p.external) paths.add(p.path);
const pages = await Promise.all([...paths].map((p) => fetch(`${SITE}/page?path=${encodeURIComponent(p)}&${FRESH}`).then((r) => (r.ok ? r.json() : null))));
return pages.filter(Boolean).map((page) => ({ params: { path: page.path.slice(1) || undefined }, props: { page } }));
}
const { page } = Astro.props;
---
<Layout title={page.title} description={page.description} canonical={page.canonical} noindex={page.noindex}>
<script type="application/ld+json" set:html={JSON.stringify(page.jsonLd)} />
<article><h1>{page.title}</h1><Fragment set:html={page.fullHtml} /></article>
</Layout>3. Rebuild after publishing (static sites)
A site built ahead of time only shows a new page after a rebuild. Create a deploy hook (Vercel: Settings → Git → Deploy Hooks; Netlify: Build hooks; Cloudflare Pages: Deploy hooks) and paste it into Geoffice. Geoffice calls it after publishing, waits for the build, then checks the page is live.
Firewalls
Geoffice’s checker identifies itself as GeofficeBot. If your site uses bot protection, allow that user agent so Geoffice can see its pages.
Keys
Workspace owners create keys in Geoffice under Workspace → API and MCP. A key is shown once. It can read the workspace’s websites and their data, and can’t change anything. Send it in every request:
Authorization: Bearer gf_…A workspace can make 1,000 requests an hour across all its keys. Keys stop working when they’re revoked, or when a trial ends without a plan.
MCP server
The server is https://geoffice.cc/api/mcp over Streamable HTTP. Its tools: list_websites, visibility_summary, questions, question_answers, competitors, sources, plan, pages and traffic. Each takes the website’s domain or id.
Claude Code
claude mcp add --transport http geoffice https://geoffice.cc/api/mcp \
--header "Authorization: Bearer gf_…"Cursor
{
"mcpServers": {
"geoffice": {
"url": "https://geoffice.cc/api/mcp",
"headers": { "Authorization": "Bearer gf_…" }
}
}
}Claude Desktop
{
"mcpServers": {
"geoffice": {
"command": "npx",
"args": ["mcp-remote", "https://geoffice.cc/api/mcp",
"--header", "Authorization: Bearer gf_…"]
}
}
}Then ask, for example: “Which buyer questions does example.com lose to competitors this month?”
REST API
Every endpoint is a GET and returns JSON. {site} is the website’s domain or id.
| Endpoint | Returns |
|---|---|
/api/v1/websites | The websites in your workspace, with their ids and domains. |
/api/v1/websites/{site}/visibility | Visibility, citations, share of voice, position and sentiment, with the change, overall and by assistant. days=7|30|90. |
/api/v1/websites/{site}/questions | Tracked questions with visibility, each assistant’s result and who is named instead. filter=all|gaps|weak, limit. |
/api/v1/websites/{site}/question-answers | The latest answer from each assistant to one question. question=id or words from it. |
/api/v1/websites/{site}/answers | Every answer collected, newest first: assistant, question, named, cited, position, brands and cited URLs. since=ISO date, limit≤1000; follow next as cursor= for the next page. |
/api/v1/websites/{site}/competitors | Every business assistants name, ranked, and competitors suggested to track. |
/api/v1/websites/{site}/sources | The sites assistants cite most, by kind. kind=own|competitor|directory|community|news|reference|other. |
/api/v1/websites/{site}/plan | Geoffice’s plan for being named more often, with each action’s state. |
/api/v1/websites/{site}/pages | Pages planned, written and published, with their status. status=… |
/api/v1/websites/{site}/traffic | Google clicks and visits from AI assistants, if Google is connected. |
curl https://geoffice.cc/api/v1/websites/example.com/visibility?days=30 \
-H "Authorization: Bearer gf_…"Errors return a status code and {"error": "…"} in plain words: 401 for a missing or revoked key, 402 when the workspace has no active plan, 404 for a website that isn’t in the workspace, 429 over the hourly limit.