- Create a draft content in your editorial planning.
- Add the focus keyword to the draft’s page and set it as the focus keyword.
- Launch the keyword analysis asynchronously.
- Generate the analysis report to retrieve typed recommendations.
Prerequisites
- An API key. See Authentication.
- The workspace ID you want to plan content in. Get it from
GET /v1/workspaces. - A focus keyword you want recommendations for (e.g.
best crm for small business).
1. Create a draft content
CallPOST /v1/workspaces/{workspaceId}/contents without a pageId — Semji will auto-create a blank page to host the draft. You only need a title to get started.
201 Created (excerpt)
content.id and page.id — you’ll use them in the next steps.
2. Attach the focus keyword
Adding a focus keyword is a two-step operation:- Add the keyword to the page with
POST /v1/pages/{pageId}/keywords. - Mark it as the page’s focus keyword with
PUT /v1/pages/{id}.
3. Launch the keyword analysis
Recommendations are not computed on demand — you have to launch an asynchronous analysis withPOST /v1/keywords/{id}/analyze. The analysis scrapes the Google SERP, runs the GEO/AI Overview probe, and stores the typed recommendations on the keyword.
202 Accepted immediately and the analysis runs in the background. Poll GET /v1/keywords/{id} until analysisStatus is "success":
analysisStatus transitions through queued → pending → success (or failed). Most analyses complete within 30 seconds.
Each analysis consumes one analysis credit from your organization’s balance. Check available credits with
GET /v1/me (look at organization.credits.analysis).4. Retrieve the SEO & GEO recommendations
Once the analysis issuccess, call POST /v1/keywords/{id}/report to score a content draft against the analysis and pull the typed recommendations.
You have two ways to score:
- By reference — pass
contentIdand Semji uses the draft’s currenttitle+html. - By value — pass
titleandhtmlinline (useful for previewing recommendations against arbitrary text).
googleSearch— classic SEO recommendations from the SERP (topics, questions, search intents, internal links to add, SERP competitors).googleAiOverview— GEO recommendations from the AI Overview answer (topics to cover for citation, cited sources, mentioned brands, markdown preview of the LLM answer).
200 OK (excerpt)
*Suggestion block carries its own score (0.0 – 1.0) and a list of items you can render in your brief. The top-level score on each surface is the overall match between the content and the recommendations.