Docs
BlogHomeStart building

SEO & AI Search (totalum-sdk/seo)


import … from 'totalum-sdk/seo', or the same namespace on totalum from 'totalum-sdk'. Install, configuration and errors: Totalum SDK.

Research what ranks on Google and what AI assistants answer, for a country and language (ISO codes): Google results with "People also ask" and the AI Overview, AI Mode, Maps, what ChatGPT, Claude, Gemini and Perplexity answer and cite, keyword ideas with volume and difficulty, Google Trends, a domain's keywords, competitors, keyword gaps and backlinks, and an on-page analysis of any public page. Each research call is billed in credits (usage.credits) and counts in the plan's SEO calls per minute and per month; call it from a cron job or an owner's action and save the result, never on every page view. Plus IndexNow for verified custom domains (free).

ts
const { keywords } = await totalum.seo.keywords.ideas({ keywords: ['dentista barcelona'], country: 'es', language: 'es', limit: 20 });
const serp = await totalum.seo.serp.google({ keyword: keywords[0].keyword, country: 'es', language: 'es', city: 'Barcelona' });
await totalum.seo.notifyChanged(['https://www.acme.com/blog/launch']);
Method or typeWhat it does
totalumSeoCreates the seo namespace (the same object as totalum.seo, scope seo): search and AI-answer research — Google results, AI Overviews and AI Mode, Maps, what ChatGPT, Claude, Gemini and Perplexity answer and cite, keyword ideas and volumes, competitors and keyword gaps, backlinks and on-page analysis — for a country and language (ISO codes, e.g.
seo.notifyChangedTells the search engines that use IndexNow (Bing, Yandex, Seznam, Naver, …) that these pages of the project's custom domain were added or changed, so they are crawled again soon, and fetches each domain's /sitemap.xml so it is fresh.
seo.indexNowKeyThe project's IndexNow key: the template serves it at /<key>.txt so search engines can check the submissions are yours.
seo.locationsThe countries and languages the research methods accept, and for each country the languages keyword, domain and AI data exist in (search results take any listed language).
seo.serp.googleGoogle's results for a keyword as searched from a country (or one of its cities), in a language: the organic results, the featured snippet, "People also ask", related searches and the AI Overview with its sources.
seo.serp.aiModeGoogle's AI Mode answer for a question and the pages it cites, where Google offers AI Mode.
seo.serp.mapsGoogle Maps results for a search (local businesses): name, category, address, phone, website, rating and reviews — the local competitors of a business.
seo.ai.answerWhat an AI assistant (ChatGPT, Claude, Gemini or Perplexity) answers to a question, with the web searches it ran, the pages it cited and their domains — to see which brands and sites the AIs recommend (GEO).
seo.ai.chatgptSearchChatGPT's search answer for a query as shown to users in a country: the answer, the sources and search results it showed, and the brands it named.
seo.ai.mentionsWhere a domain, or a keyword or brand, is mentioned in AI answers (Google's AI Overviews; ChatGPT for the United States in English): the questions and answers, or the most cited domains or pages.
seo.ai.keywordVolumeHow often keywords are asked to AI assistants per month (AI search volume), per keyword.
seo.keywords.ideasKeyword ideas around seed keywords (phrases containing the first seed first, then wider ideas), each with its monthly Google search volume, cost per click, competition, difficulty and intent — to choose what a page or an article targets.
seo.keywords.relatedThe searches Google relates to a keyword ("related searches", followed depth hops), with the same data as ideas — topic clusters and article ideas.
seo.keywords.overviewThe search data of keywords you already have (up to 700): volume, cost per click, competition, difficulty, intent and the last 12 months.
seo.keywords.trendsGoogle Trends interest over time (0–100) for up to 5 keywords, worldwide or in a country — seasonality and which wording is rising.
seo.domain.keywordsThe keywords a domain ranks for on Google in a country, with its position, the ranking URL and the estimated traffic — what a competitor gets its visits from.
seo.domain.competitorsThe domains that compete with a domain on Google in a country (most shared keywords first).
seo.domain.keywordGapThe keyword gap between a domain and a competitor: the keywords the competitor ranks for and the domain does not (missing), or that both rank for (shared).
seo.domain.backlinksA domain's backlink profile: authority rank, backlinks, referring domains, spam score and where its links come from.
seo.page.analyzeReads one public page as a search engine does: title, description, canonical, headings, word count, links, images, structured data, social tags, an on-page score with the issues found, and its main text by section — the structure of a page that ranks.
SeoAiAnswerInputThe question of seo.ai.answer().
SeoAiAnswerOutputThe assistant's answer.
SeoAiKeywordVolumeInputThe keywords of seo.ai.keywordVolume().
SeoAiKeywordVolumeOutputAI search volume per keyword.
SeoAiMentionsInputThe target of seo.ai.mentions(): exactly one of domain or keyword.
SeoAiMentionsOutputMentions in AI answers; the field present depends on view.
SeoBacklinksSummaryInputThe domain of seo.domain.backlinks().
SeoBacklinksSummaryOutputA domain's backlink profile.
SeoChatGptSearchInputThe query of seo.ai.chatgptSearch().
SeoChatGptSearchOutputChatGPT's search answer.
SeoDomainCompetitorsInputThe domain of seo.domain.competitors().
SeoDomainCompetitorsOutputA domain's search competitors.
SeoDomainKeywordsInputThe domain of seo.domain.keywords().
SeoDomainKeywordsOutputThe keywords a domain ranks for.
SeoIndexNowKeyThe project's IndexNow key.
SeoKeywordOne keyword's Google search data in the country and language asked.
SeoKeywordGapInputThe two domains of seo.domain.keywordGap().
SeoKeywordGapOutputThe keyword gap between two domains.
SeoKeywordIdeasInputThe seeds of seo.keywords.ideas().
SeoKeywordOverviewInputThe keywords of seo.keywords.overview().
SeoKeywordRelatedInputThe keyword of seo.keywords.related().
SeoKeywordsOutputKeywords with their search data.
SeoKeywordTrendsInputThe keywords of seo.keywords.trends().
SeoKeywordTrendsOutputGoogle Trends interest over time.
SeoLocationsOutputThe places the research methods accept.
SeoNotifyOutputThe answer of seo.notifyChanged().
SeoPageAnalyzeInputThe page of seo.page.analyze().
SeoPageAnalyzeOutputOne page as a search engine reads it.
SeoSerpAiModeInputThe question of seo.serp.aiMode().
SeoSerpAiModeOutputGoogle AI Mode's answer.
SeoSerpGoogleInputThe search of seo.serp.google().
SeoSerpGoogleOutputGoogle's results page for the keyword.
SeoSerpMapsInputThe search of seo.serp.maps().
SeoSerpMapsOutputGoogle Maps places for the search.
SeoSourceA page an answer cites or a result links to.

#totalumSeo

ts
totalumSeo(options?: TotalumClientOptions): TotalumSeo

Creates the seo namespace (the same object as totalum.seo, scope seo): search and AI-answer research — Google results, AI Overviews and AI Mode, Maps, what ChatGPT, Claude, Gemini and Perplexity answer and cite, keyword ideas and volumes, competitors and keyword gaps, backlinks and on-page analysis — for a country and language (ISO codes, e.g. es/es), billed in credits (every result carries usage.credits); plus IndexNow for verified custom domains, free. The plan limits the research calls per minute and per month.

Parameters

NameTypeRequiredDescription
optionsTotalumClientOptionsnoThe project key, API URL and environment; each falls back to its environment variable.
options.keystringnoProject key tlm_pk_…; default TOTALUM_PROJECT_KEY. Server-side only.
options.apiUrlstringnoThe Totalum API's URL: default TOTALUM_SDK_API_URL, else https://sdk-api.totalum.app.
options.env'dev' | 'live'noSent as x-totalum-env on every call (the database it targets, and dev vs live usage); default TOTALUM_ENV, else live.

Returns TotalumSeo — The seo namespace: the methods below.

Example

ts
import { totalumSeo } from 'totalum-sdk/seo';

const seo = totalumSeo();
const { keywords } = await seo.keywords.ideas({ keywords: ['dentista'], country: 'es', language: 'es' });

The namespace's type is exported as TotalumSeo (import type { TotalumSeo } from 'totalum-sdk/seo').

#seo.notifyChanged

ts
seo.notifyChanged(urls: string[]): Promise<SeoNotifyOutput>

Tells the search engines that use IndexNow (Bing, Yandex, Seznam, Naver, …) that these pages of the project's custom domain were added or changed, so they are crawled again soon, and fetches each domain's /sitemap.xml so it is fresh. Call it after publishing a post or editing a product page. Only verified custom domains are sent: for Totalum's own hosts the answer is indexNow: 'skipped_no_custom_domain'. Free.

Parameters

NameTypeRequiredDescription
urlsstring[]yesFull URLs on the project's hostnames.

Returns Promise<SeoNotifyOutput> — How many URLs were accepted and what was sent.

FieldTypeAlways presentDescription
acceptednumberyesHow many URLs were sent to IndexNow.
indexNow'error' | 'sent' | 'skipped_no_custom_domain'yessent; skipped_no_custom_domain when the project has no verified custom domain (Totalum's own hosts are never sent); error when IndexNow refused them.
sitemapsPingedbooleanyesWhether each domain's /sitemap.xml answered.

Errors — besides the errors every call can throw:

CodeHTTPWhen
URL_NOT_PROJECT_HOST400A URL is not on one of the project's hostnames; details.url.
INDEXNOW_ERROR502IndexNow refused the submission.
ENGINE_UNAVAILABLE502SEO is unavailable; retry shortly.

Example

ts
const out = await totalum.seo.notifyChanged(['https://www.acme.com/blog/launch', 'https://www.acme.com/pricing']);

Result:

json
{ "accepted": 2, "indexNow": "sent", "sitemapsPinged": true }

#seo.indexNowKey

ts
seo.indexNowKey(): Promise<SeoIndexNowKey>

The project's IndexNow key: the template serves it at /<key>.txt so search engines can check the submissions are yours. Free.

Returns Promise<SeoIndexNowKey> — The key and the URL it is served at.

FieldTypeAlways presentDescription
keystringyesThe key.
keyLocationstringyesThe URL where the site serves it (https://<host>/<key>.txt).

Errors — besides the errors every call can throw:

CodeHTTPWhen
ENGINE_UNAVAILABLE502SEO is unavailable; retry shortly.

Example

ts
const { key, keyLocation } = await totalum.seo.indexNowKey();

Result:

json
{ "key": "99d8cc52…", "keyLocation": "https://acme.totalum.app/99d8cc52….txt" }

#seo.locations

ts
seo.locations(): Promise<SeoLocationsOutput>

The countries and languages the research methods accept, and for each country the languages keyword, domain and AI data exist in (search results take any listed language). Free.

Returns Promise<SeoLocationsOutput> — Every country and language code.

FieldTypeAlways presentDescription
countries({ country, name, dataLanguages })[]yesEvery country.
countries.countrystringyesIts ISO 3166-1 alpha-2 code.
countries.namestringyesIts English name.
countries.dataLanguagesstring[]yesThe languages keyword, domain and AI data exist in there; search results take any language.
languages({ language, name })[]yesEvery language.
languages.languagestringyesIts code.
languages.namestringyesIts English name.

Errors — besides the errors every call can throw:

CodeHTTPWhen
FORBIDDEN_SCOPE403The key lacks the seo scope.

Example

ts
const { countries } = await totalum.seo.locations();

Result:

ts
{ "countries": [{ "country": "es", "name": "Spain", "dataLanguages": ["es"] }, …], "languages": [{ "language": "ca", "name": "Catalan" }, …] }

#seo.serp.google

ts
seo.serp.google(input: { country, city?, language, keyword, depth?, device? }): Promise<{ keyword, totalResults, organic, featuredSnippet, peopleAlsoAsk, relatedSearches, aiOverview, usage }>

Google's results for a keyword as searched from a country (or one of its cities), in a language: the organic results, the featured snippet, "People also ask", related searches and the AI Overview with its sources. Use it to see what ranks and what the page that ranks must answer.

Parameters

NameTypeRequiredDescription
input{ country, city?, language, keyword, depth?, device? }yesThe keyword, where it is searched from and how many results.
input.countrystringyesThe country searched from, as an ISO 3166-1 alpha-2 code (es, us, any case).
input.citystringnoA city of country (Barcelona): the results as seen there. Allowed: at least 2 characters, at most 80 characters.
input.languagestringyesThe language of the search, as an ISO 639-1 code (es, ca, en) or a regional tag (pt-BR). seo.locations() lists them.
input.keywordstringyesWhat is searched, as a user types it. Allowed: at least 1 character, at most 700 characters.
input.depthnumbernoHow many results to read, 10 to 100. Allowed: ≥ 10, ≤ 100, default 10.
input.device'mobile' | 'desktop'nodesktop or mobile results. Allowed: default "desktop".

Returns Promise<{ keyword, totalResults, organic, featuredSnippet, peopleAlsoAsk, relatedSearches, aiOverview, usage }> — The results page and the credits it cost.

FieldTypeAlways presentDescription
keywordstringyesThe keyword searched.
totalResultsnumber | nullyesHow many results Google reports.
organic({ position, title, url, domain, snippet, breadcrumb })[]yesThe organic results, in rank order.
organic.positionnumberyesThe rank among organic results, from 1.
organic.titlestring | nullyesThe result's title.
organic.urlstringyesThe ranking page's URL.
organic.domainstring | nullyesThe ranking page's host.
organic.snippetstring | nullyesThe text Google shows under the title.
organic.breadcrumbstring | nullyesThe path Google shows above the title.
featuredSnippet{ title, snippet, url, domain } | nullyesThe answer box at the top, when Google shows one.
featuredSnippet.titlestring | nullyesIts title.
featuredSnippet.snippetstring | nullyesIts text.
featuredSnippet.urlstringyesThe page it quotes.
featuredSnippet.domainstring | nullyesThat page's host.
peopleAlsoAsk({ question, answer })[]yesThe "People also ask" questions.
peopleAlsoAsk.questionstringyesThe question.
peopleAlsoAsk.answer{ title, url, domain, snippet } | nullyesThe page Google answers it from, when shown.
peopleAlsoAsk.answer.titlestring | nullyesThe page's title.
peopleAlsoAsk.answer.urlstringyesThe page's URL.
peopleAlsoAsk.answer.domainstring | nullyesThe page's host.
peopleAlsoAsk.answer.snippetstring | nullyesThe answer text.
relatedSearchesstring[]yesThe related searches at the bottom of the page.
aiOverview{ text, sources } | nullyesGoogle's AI Overview, when it shows one.
aiOverview.textstringyesThe overview, as Markdown.
aiOverview.sourcesSeoSource[]yesThe pages it cites.
usage{ credits }yesWhat the call cost.
usage.creditsnumberyesCredits charged for this call.

Errors — besides the errors every call can throw:

CodeHTTPWhen
SEO_CITY_NOT_FOUND400No such city in country.
NOT_AVAILABLE_IN_COUNTRY400No data for that country and language.
RATE_LIMIT_EXCEEDED429The plan's SEO calls per minute or per month are used up; details.period.
PROVIDER_TIMEOUT504The search took too long; retry.
PROVIDER_UNAVAILABLE503Search data is unavailable; retry later.

Example

ts
const page = await totalum.seo.serp.google({ keyword: 'dentista barcelona', country: 'es', language: 'es', city: 'Barcelona' });

Result:

json
{
  "keyword": "dentista barcelona",
  "totalResults": 3150000,
  "organic": [{ "position": 1, "title": "Clínica Dental …", "url": "https://www.example.es/", "domain": "www.example.es", "snippet": "…", "breadcrumb": "https://www.example.es" }],
  "featuredSnippet": null,
  "peopleAlsoAsk": [{ "question": "¿Cuánto cuesta un empaste en Barcelona?", "answer": null }],
  "relatedSearches": ["dentista barcelona urgencias"],
  "aiOverview": null,
  "usage": { "credits": 0.1429 }
}

#seo.serp.aiMode

ts
seo.serp.aiMode(input: { country, language, keyword, device? }): Promise<{ sources, keyword, answer, usage }>

Google's AI Mode answer for a question and the pages it cites, where Google offers AI Mode.

Parameters

NameTypeRequiredDescription
input{ country, language, keyword, device? }yesThe question and where it is asked from.
input.countrystringyesThe country searched from, as an ISO 3166-1 alpha-2 code (es, us, any case).
input.languagestringyesThe language of the search, as an ISO 639-1 code (es, ca, en) or a regional tag (pt-BR). seo.locations() lists them.
input.keywordstringyesThe question, as a user asks it. Allowed: at least 1 character, at most 700 characters.
input.device'mobile' | 'desktop'nodesktop or mobile. Allowed: default "desktop".

Returns Promise<{ sources, keyword, answer, usage }> — The answer, its sources and the credits it cost.

FieldTypeAlways presentDescription
sourcesSeoSource[]yesThe pages it cites.
keywordstringyesThe question asked.
answerstringyesThe answer, as Markdown.
usage{ credits }yesWhat the call cost.
usage.creditsnumberyesCredits charged for this call.

Errors — besides the errors every call can throw:

CodeHTTPWhen
NOT_AVAILABLE_IN_COUNTRY400Google does not offer AI Mode there, or no data for that country and language.
RATE_LIMIT_EXCEEDED429The plan's SEO calls per minute or per month are used up; details.period.
PROVIDER_TIMEOUT504The search took too long; retry.
PROVIDER_UNAVAILABLE503Search data is unavailable; retry later.

Example

ts
const ai = await totalum.seo.serp.aiMode({ keyword: 'best budgeting apps', country: 'us', language: 'en' });

Result:

json
{ "keyword": "best budgeting apps", "answer": "Popular choices include …", "sources": [{ "title": "…", "url": "https://…", "domain": "…" }], "usage": { "credits": 0.2858 } }

#seo.serp.maps

ts
seo.serp.maps(input: { country, city?, language, keyword, depth? }): Promise<{ keyword, results, usage }>

Google Maps results for a search (local businesses): name, category, address, phone, website, rating and reviews — the local competitors of a business.

Parameters

NameTypeRequiredDescription
input{ country, city?, language, keyword, depth? }yesThe search, where it is made from and how many results.
input.countrystringyesThe country searched from, as an ISO 3166-1 alpha-2 code (es, us, any case).
input.citystringnoA city of country: the places as seen there. Allowed: at least 2 characters, at most 80 characters.
input.languagestringyesThe language of the search, as an ISO 639-1 code (es, ca, en) or a regional tag (pt-BR). seo.locations() lists them.
input.keywordstringyesWhat is searched on Maps (dentista, pizzeria). Allowed: at least 1 character, at most 700 characters.
input.depthnumbernoHow many places to read, 1 to 100. Allowed: ≥ 1, ≤ 100, default 20.

Returns Promise<{ keyword, results, usage }> — The places, best first, and the credits it cost.

FieldTypeAlways presentDescription
keywordstringyesThe search.
results({ position, title, category, address, city, phone, website, rating, reviews, priceLevel, latitude, longitude, placeId, claimed })[]yesThe places, in rank order.
results.positionnumberyesThe rank, from 1.
results.titlestringyesThe place's name.
results.categorystring | nullyesIts main category.
results.addressstring | nullyesIts address.
results.citystring | nullyesIts city.
results.phonestring | nullyesIts phone number.
results.websitestring | nullyesIts website.
results.ratingnumber | nullyesIts average rating, 1–5.
results.reviewsnumber | nullyesHow many reviews it has.
results.priceLevelstring | nullyesIts price level, when shown.
results.latitudenumber | nullyesLatitude.
results.longitudenumber | nullyesLongitude.
results.placeIdstring | nullyesGoogle's place id.
results.claimedboolean | nullyesWhether the owner claimed the listing.
usage{ credits }yesWhat the call cost.
usage.creditsnumberyesCredits charged for this call.

Errors — besides the errors every call can throw:

CodeHTTPWhen
SEO_CITY_NOT_FOUND400No such city in country.
NOT_AVAILABLE_IN_COUNTRY400No data for that country and language.
RATE_LIMIT_EXCEEDED429The plan's SEO calls per minute or per month are used up; details.period.
PROVIDER_TIMEOUT504The search took too long; retry.
PROVIDER_UNAVAILABLE503Search data is unavailable; retry later.

Example

ts
const { results } = await totalum.seo.serp.maps({ keyword: 'dentista', country: 'es', language: 'es', city: 'Barcelona', depth: 10 });

Result:

ts
{ "keyword": "dentista", "results": [{ "position": 1, "title": "Clínica Dental …", "category": "Dentista", "rating": 4.9, "reviews": 812, … }], "usage": { "credits": 0.1429 } }

#seo.ai.answer

ts
seo.ai.answer(input: { country?, prompt, model?, platform?, webSearch? }): Promise<{ sources, model, platform, answer, citedDomains, searchQueries, usage }>

What an AI assistant (ChatGPT, Claude, Gemini or Perplexity) answers to a question, with the web searches it ran, the pages it cited and their domains — to see which brands and sites the AIs recommend (GEO). Among the dearer research calls: ask a few real questions, not dozens.

Parameters

NameTypeRequiredDescription
input{ country?, prompt, model?, platform?, webSearch? }yesThe question, the assistant and the country its web search runs from.
input.countrystringnoThe country its web search runs from (ISO 3166-1 alpha-2).
input.promptstringyesThe question, as a user asks the assistant. Allowed: at least 1 character, at most 500 characters.
input.modelstringnoA model id of that assistant; omitted = a current fast model.
input.platform'claude' | 'chatgpt' | 'gemini' | 'perplexity'noThe assistant: chatgpt, claude, gemini or perplexity. Allowed: default "chatgpt".
input.webSearchbooleannoWhether the assistant may search the web (as it does for users); true by default. Allowed: default true.

Returns Promise<{ sources, model, platform, answer, citedDomains, searchQueries, usage }> — The answer, its sources and the credits it cost.

FieldTypeAlways presentDescription
sourcesSeoSource[]yesThe pages it cited.
modelstringyesThe model that answered.
platform'claude' | 'chatgpt' | 'gemini' | 'perplexity'yesThe assistant asked.
answerstringyesThe answer, as Markdown.
citedDomainsstring[]yesThe domains of those pages.
searchQueriesstring[]yesThe web searches the assistant ran.
usage{ credits }yesWhat the call cost.
usage.creditsnumberyesCredits charged for this call.

Errors — besides the errors every call can throw:

CodeHTTPWhen
SEO_REQUEST_REJECTED400The question or model was refused; details.field.
RATE_LIMIT_EXCEEDED429The plan's SEO calls per minute or per month are used up; details.period.
PROVIDER_TIMEOUT504The answer took too long; retry.
PROVIDER_UNAVAILABLE503The AI data is unavailable; retry later.

Example

ts
const a = await totalum.seo.ai.answer({ prompt: 'Mejor clínica dental en Barcelona', platform: 'chatgpt', country: 'es' });

Result:

json
{ "platform": "chatgpt", "model": "…", "answer": "Algunas de las clínicas mejor valoradas …", "sources": [{ "title": "…", "url": "https://…", "domain": "…" }], "citedDomains": ["www.doctoralia.es"], "searchQueries": ["mejor clínica dental barcelona"], "usage": { "credits": 2.1883 } }

#seo.ai.chatgptSearch

ts
seo.ai.chatgptSearch(input: SeoChatGptSearchInput): Promise<{ sources, keyword, answer, searchQueries, searchResults, brands, usage }>

ChatGPT's search answer for a query as shown to users in a country: the answer, the sources and search results it showed, and the brands it named.

Parameters

NameTypeRequiredDescription
inputSeoChatGptSearchInputyesThe query and the country and language.
input.countrystringyesThe country searched from, as an ISO 3166-1 alpha-2 code (es, us, any case).
input.languagestringyesThe language of the search, as an ISO 639-1 code (es, ca, en) or a regional tag (pt-BR). seo.locations() lists them.
input.keywordstringyesThe query, as a user types it in ChatGPT. Allowed: at least 1 character, at most 2000 characters.

Returns Promise<{ sources, keyword, answer, searchQueries, searchResults, brands, usage }> — The answer, its sources, brands and the credits it cost.

FieldTypeAlways presentDescription
sources({ title, url, domain, snippet, publishedAt })[]yesThe pages it cites.
sources.titlestring | nullyesThe page's title.
sources.urlstringyesThe page's URL.
sources.domainstring | nullyesThe page's host.
sources.snippetstring | nullyesThe text it quotes, when given.
sources.publishedAtstring | nullyesThe page's date, when known.
keywordstringyesThe query.
answerstringyesThe answer, as Markdown.
searchQueriesstring[]yesThe searches it ran.
searchResultsSeoSource[]yesThe search results it showed.
brands({ name, category })[]yesThe brands and products it named.
brands.namestringyesThe brand or product named.
brands.categorystring | nullyesWhat it is, when known.
usage{ credits }yesWhat the call cost.
usage.creditsnumberyesCredits charged for this call.

Errors — besides the errors every call can throw:

CodeHTTPWhen
NOT_AVAILABLE_IN_COUNTRY400No data for that country and language.
RATE_LIMIT_EXCEEDED429The plan's SEO calls per minute or per month are used up; details.period.
PROVIDER_TIMEOUT504The answer took too long; retry.
PROVIDER_UNAVAILABLE503The AI data is unavailable; retry later.

Example

ts
const s = await totalum.seo.ai.chatgptSearch({ keyword: 'best budgeting app', country: 'us', language: 'en' });

Result:

json
{ "keyword": "best budgeting app", "answer": "…", "sources": [], "searchResults": [], "brands": [{ "name": "YNAB", "category": "Software" }], "searchQueries": ["best budgeting app 2026"], "usage": { "credits": 0.2858 } }

#seo.ai.mentions

ts
seo.ai.mentions(input: { country, language, domain?, keyword?, platform?, limit?, view? }): Promise<{ pages?, mentions?, totalCount, domains?, usage }>

Where a domain, or a keyword or brand, is mentioned in AI answers (Google's AI Overviews; ChatGPT for the United States in English): the questions and answers, or the most cited domains or pages. Give exactly one of domain or keyword. The dearest research call: use it once per brand, not per page.

Parameters

NameTypeRequiredDescription
input{ country, language, domain?, keyword?, platform?, limit?, view? }yesThe domain or keyword, the place, the AI and the view.
input.countrystringyesThe country searched from, as an ISO 3166-1 alpha-2 code (es, us, any case).
input.languagestringyesThe language of the search, as an ISO 639-1 code (es, ca, en) or a regional tag (pt-BR). seo.locations() lists them.
input.domainstringnoMentions of this domain (cited by AI answers). Allowed: at most 253 characters.
input.keywordstringnoOr mentions of this keyword or brand name in AI questions and answers. Allowed: at least 1 character, at most 250 characters.
input.platform'chatgpt' | 'google'nogoogle (AI Overviews) or chatgpt (United States, English only); omitted = both.
input.limitnumbernoAt most this many rows. Allowed: ≥ 1, ≤ 100, default 20.
input.view'mentions' | 'top-domains' | 'top-pages'nomentions (the questions and answers), top-domains or top-pages (the most cited). Allowed: default "mentions".

Returns Promise<{ pages?, mentions?, totalCount, domains?, usage }> — The mentions (or top domains or pages) and the credits it cost.

FieldTypeAlways presentDescription
pages({ mentions, aiSearchVolume, url })[]noThe most cited pages (view: top-pages).
pages.mentionsnumberyesHow many answers cite it.
pages.aiSearchVolumenumber | nullyesThe monthly AI search volume of those answers.
pages.urlstringyesThe page.
mentions({ platform, question, answer, sources, brands, aiSearchVolume })[]noThe questions and answers (view: mentions).
mentions.platform'chatgpt' | 'google'yesgoogle (AI Overview) or chatgpt.
mentions.questionstringyesThe question asked.
mentions.answerstringyesThe AI answer.
mentions.sourcesSeoSource[]yesThe pages it cites.
mentions.brands({ name, category })[]yesThe brands it names.
mentions.brands.namestringyesThe brand or product named.
mentions.brands.categorystring | nullyesWhat it is, when known.
mentions.aiSearchVolumenumber | nullyesHow often the question is asked per month.
totalCountnumberyesHow many mentions exist in all.
domains({ mentions, aiSearchVolume, domain })[]noThe most cited domains (view: top-domains).
domains.mentionsnumberyesHow many answers cite it.
domains.aiSearchVolumenumber | nullyesThe monthly AI search volume of those answers.
domains.domainstringyesThe domain.
usage{ credits }yesWhat the call cost.
usage.creditsnumberyesCredits charged for this call.

Errors — besides the errors every call can throw:

CodeHTTPWhen
VALIDATION_ERROR400Neither or both of domain and keyword.
NOT_AVAILABLE_IN_COUNTRY400No data for that country and language.
RATE_LIMIT_EXCEEDED429The plan's SEO calls per minute or per month are used up; details.period.
PROVIDER_UNAVAILABLE503The AI data is unavailable; retry later.

Example

ts
const m = await totalum.seo.ai.mentions({ keyword: 'budgeting app', country: 'us', language: 'en', view: 'top-domains', limit: 5 });

Result:

json
{ "totalCount": 1814, "domains": [{ "domain": "www.nerdwallet.com", "mentions": 416, "aiSearchVolume": 316550 }], "usage": { "credits": 7.5 } }

#seo.ai.keywordVolume

ts
seo.ai.keywordVolume(input: SeoAiKeywordVolumeInput): Promise<{ keywords, usage }>

How often keywords are asked to AI assistants per month (AI search volume), per keyword.

Parameters

NameTypeRequiredDescription
inputSeoAiKeywordVolumeInputyesUp to 1,000 keywords and the place.
input.countrystringyesThe country searched from, as an ISO 3166-1 alpha-2 code (es, us, any case).
input.languagestringyesThe language of the search, as an ISO 639-1 code (es, ca, en) or a regional tag (pt-BR). seo.locations() lists them.
input.keywordsstring[]yesUp to 1,000 keywords. Allowed: at least 1 item, at most 1000 items.

Returns Promise<{ keywords, usage }> — The AI search volume per keyword and the credits it cost.

FieldTypeAlways presentDescription
keywords({ keyword, aiSearchVolume, monthlySearches })[]yesOne row per keyword.
keywords.keywordstringyesThe keyword.
keywords.aiSearchVolumenumber | nullyesHow often it is asked to AI assistants per month.
keywords.monthlySearches({ year, month, aiSearchVolume })[]yesThe last 12 months, newest first.
keywords.monthlySearches.yearnumberyesThe year.
keywords.monthlySearches.monthnumberyesThe month, 1–12.
keywords.monthlySearches.aiSearchVolumenumber | nullyesAI searches that month.
usage{ credits }yesWhat the call cost.
usage.creditsnumberyesCredits charged for this call.

Errors — besides the errors every call can throw:

CodeHTTPWhen
NOT_AVAILABLE_IN_COUNTRY400No data for that country and language.
RATE_LIMIT_EXCEEDED429The plan's SEO calls per minute or per month are used up; details.period.
PROVIDER_UNAVAILABLE503The AI data is unavailable; retry later.

Example

ts
const v = await totalum.seo.ai.keywordVolume({ keywords: ['budget planner'], country: 'us', language: 'en' });

Result:

json
{ "keywords": [{ "keyword": "budget planner", "aiSearchVolume": 3241, "monthlySearches": [{ "year": 2026, "month": 10, "aiSearchVolume": 3241 }] }], "usage": { "credits": 0.7215 } }

#seo.keywords.ideas

ts
seo.keywords.ideas(input: { country, language, keywords, limit? }): Promise<{ keywords, usage }>

Keyword ideas around seed keywords (phrases containing the first seed first, then wider ideas), each with its monthly Google search volume, cost per click, competition, difficulty and intent — to choose what a page or an article targets.

Parameters

NameTypeRequiredDescription
input{ country, language, keywords, limit? }yesUp to 20 seed keywords, the place and how many ideas.
input.countrystringyesThe country searched from, as an ISO 3166-1 alpha-2 code (es, us, any case).
input.languagestringyesThe language of the search, as an ISO 639-1 code (es, ca, en) or a regional tag (pt-BR). seo.locations() lists them.
input.keywordsstring[]yesUp to 20 seed keywords; ideas containing the first one come first. Allowed: at least 1 item, at most 20 items.
input.limitnumbernoAt most this many ideas. Allowed: ≥ 1, ≤ 100, default 50.

Returns Promise<{ keywords, usage }> — The ideas and the credits it cost.

FieldTypeAlways presentDescription
keywordsSeoKeyword[]yesThe keywords, most relevant first.
usage{ credits }yesWhat the call cost.
usage.creditsnumberyesCredits charged for this call.

Errors — besides the errors every call can throw:

CodeHTTPWhen
NOT_AVAILABLE_IN_COUNTRY400No keyword data for that country and language.
RATE_LIMIT_EXCEEDED429The plan's SEO calls per minute or per month are used up; details.period.
PROVIDER_UNAVAILABLE503Keyword data is unavailable; retry later.

Example

ts
const { keywords } = await totalum.seo.keywords.ideas({ keywords: ['dentista barcelona'], country: 'es', language: 'es', limit: 20 });

Result:

json
{ "keywords": [{ "keyword": "dentista barcelona", "searchVolume": 4400, "cpc": 2.1, "competition": 0.4, "competitionLevel": "medium", "difficulty": 31, "intent": "commercial", "trend": { "monthly": 0, "quarterly": 22, "yearly": -18 }, "monthlySearches": [{ "year": 2026, "month": 10, "searchVolume": 4400 }] }], "usage": { "credits": 2.0572 } }

#seo.keywords.related

ts
seo.keywords.related(input: { country, language, keyword, limit?, depth? }): Promise<{ keywords, usage }>

The searches Google relates to a keyword ("related searches", followed depth hops), with the same data as ideas — topic clusters and article ideas.

Parameters

NameTypeRequiredDescription
input{ country, language, keyword, limit?, depth? }yesThe keyword, the place, the depth and how many.
input.countrystringyesThe country searched from, as an ISO 3166-1 alpha-2 code (es, us, any case).
input.languagestringyesThe language of the search, as an ISO 639-1 code (es, ca, en) or a regional tag (pt-BR). seo.locations() lists them.
input.keywordstringyesThe keyword. Allowed: at least 1 character, at most 80 characters.
input.limitnumbernoAt most this many keywords. Allowed: ≥ 1, ≤ 100, default 50.
input.depthnumbernoHow many hops of related searches to follow, 1 to 3. Allowed: ≥ 1, ≤ 3, default 1.

Returns Promise<{ keywords, usage }> — The related keywords and the credits it cost.

FieldTypeAlways presentDescription
keywordsSeoKeyword[]yesThe keywords, most relevant first.
usage{ credits }yesWhat the call cost.
usage.creditsnumberyesCredits charged for this call.

Errors — besides the errors every call can throw:

CodeHTTPWhen
NOT_AVAILABLE_IN_COUNTRY400No keyword data for that country and language.
RATE_LIMIT_EXCEEDED429The plan's SEO calls per minute or per month are used up; details.period.
PROVIDER_UNAVAILABLE503Keyword data is unavailable; retry later.

Example

ts
const { keywords } = await totalum.seo.keywords.related({ keyword: 'emergency fund', country: 'us', language: 'en', limit: 20 });

Result:

ts
{ "keywords": [{ "keyword": "how much emergency fund", "searchVolume": 2900, "difficulty": 22, "intent": "informational", … }], "usage": { "credits": 0.9343 } }

#seo.keywords.overview

ts
seo.keywords.overview(input: SeoKeywordOverviewInput): Promise<{ keywords, usage }>

The search data of keywords you already have (up to 700): volume, cost per click, competition, difficulty, intent and the last 12 months.

Parameters

NameTypeRequiredDescription
inputSeoKeywordOverviewInputyesThe keywords and the place.
input.countrystringyesThe country searched from, as an ISO 3166-1 alpha-2 code (es, us, any case).
input.languagestringyesThe language of the search, as an ISO 639-1 code (es, ca, en) or a regional tag (pt-BR). seo.locations() lists them.
input.keywordsstring[]yesUp to 700 keywords. Allowed: at least 1 item, at most 700 items.

Returns Promise<{ keywords, usage }> — One row per keyword found and the credits it cost.

FieldTypeAlways presentDescription
keywordsSeoKeyword[]yesThe keywords, most relevant first.
usage{ credits }yesWhat the call cost.
usage.creditsnumberyesCredits charged for this call.

Errors — besides the errors every call can throw:

CodeHTTPWhen
NOT_AVAILABLE_IN_COUNTRY400No keyword data for that country and language.
RATE_LIMIT_EXCEEDED429The plan's SEO calls per minute or per month are used up; details.period.
PROVIDER_UNAVAILABLE503Keyword data is unavailable; retry later.

Example

ts
const { keywords } = await totalum.seo.keywords.overview({ keywords: ['implantes dentales barcelona', 'ortodoncia invisible barcelona'], country: 'es', language: 'es' });

Result:

ts
{ "keywords": [{ "keyword": "implantes dentales barcelona", "searchVolume": 1900, "difficulty": 28, … }], "usage": { "credits": 0.8743 } }

#seo.keywords.trends

ts
seo.keywords.trends(input: { country?, language?, keywords, timeRange? }): Promise<{ keywords, timeline, usage }>

Google Trends interest over time (0–100) for up to 5 keywords, worldwide or in a country — seasonality and which wording is rising.

Parameters

NameTypeRequiredDescription
input{ country?, language?, keywords, timeRange? }yesThe keywords, the place (optional) and the period.
input.countrystringnoThe country (ISO 3166-1 alpha-2); omitted = worldwide.
input.languagestringnoThe language; omitted = all.
input.keywordsstring[]yesUp to 5 keywords, compared on one scale. Allowed: at least 1 item, at most 5 items.
input.timeRange'past_7_days' | 'past_30_days' | 'past_90_days' | 'past_12_months' | 'past_5_years'noThe period: past_7_days, past_30_days, past_90_days, past_12_months or past_5_years. Allowed: default "past_12_months".

Returns Promise<{ keywords, timeline, usage }> — The timeline and the credits it cost.

FieldTypeAlways presentDescription
keywordsstring[]yesThe keywords, in the order of values.
timeline({ from, to, values })[]yesOne row per period, oldest first.
timeline.fromstringyesThe first day of the period.
timeline.tostringyesThe last day.
timeline.values(number | null)[]yesEach keyword's interest, 0–100 (100 = the peak of the chart).
usage{ credits }yesWhat the call cost.
usage.creditsnumberyesCredits charged for this call.

Errors — besides the errors every call can throw:

CodeHTTPWhen
RATE_LIMIT_EXCEEDED429The plan's SEO calls per minute or per month are used up; details.period.
PROVIDER_UNAVAILABLE503Trends data is unavailable; retry later.

Example

ts
const t = await totalum.seo.keywords.trends({ keywords: ['budget app', 'expense tracker'], country: 'us' });

Result:

json
{ "keywords": ["budget app", "expense tracker"], "timeline": [{ "from": "2025-11-23", "to": "2025-11-29", "values": [71, 40] }], "usage": { "credits": 0.7858 } }

#seo.domain.keywords

ts
seo.domain.keywords(input: { country, language, domain, limit? }): Promise<{ domain, keywords, totalCount, usage }>

The keywords a domain ranks for on Google in a country, with its position, the ranking URL and the estimated traffic — what a competitor gets its visits from.

Parameters

NameTypeRequiredDescription
input{ country, language, domain, limit? }yesThe domain, the place and how many keywords.
input.countrystringyesThe country searched from, as an ISO 3166-1 alpha-2 code (es, us, any case).
input.languagestringyesThe language of the search, as an ISO 639-1 code (es, ca, en) or a regional tag (pt-BR). seo.locations() lists them.
input.domainstringyesA bare domain (example.com); a URL is cut to its host. Allowed: at most 253 characters.
input.limitnumbernoAt most this many keywords. Allowed: ≥ 1, ≤ 100, default 50.

Returns Promise<{ domain, keywords, totalCount, usage }> — The ranked keywords, best first, and the credits it cost.

FieldTypeAlways presentDescription
domainstringyesThe domain.
keywords({ keyword, searchVolume, cpc, difficulty, intent, position, url, traffic })[]yesThe keywords, by traffic.
keywords.keywordstringyesThe keyword.
keywords.searchVolumenumber | nullyesAverage monthly Google searches in the country and language asked; null when unknown.
keywords.cpcnumber | nullyesAverage cost per click of the keyword's ads, in USD; null when no ads run on it.
keywords.difficultynumber | nullyesHow hard it is to rank in the top 10, 0 (easy) to 100 (hardest).
keywords.intent'informational' | 'navigational' | 'commercial' | 'transactional' | nullyesWhat the searcher wants: informational (to learn), navigational (a specific site), commercial (to compare before buying) or transactional (to buy or book now).
keywords.positionnumberyesIts Google position for the keyword.
keywords.urlstring | nullyesThe page that ranks.
keywords.trafficnumber | nullyesEstimated monthly visits from this keyword.
totalCountnumberyesHow many keywords it ranks for in all.
usage{ credits }yesWhat the call cost.
usage.creditsnumberyesCredits charged for this call.

Errors — besides the errors every call can throw:

CodeHTTPWhen
NOT_AVAILABLE_IN_COUNTRY400No data for that country and language.
RATE_LIMIT_EXCEEDED429The plan's SEO calls per minute or per month are used up; details.period.
PROVIDER_UNAVAILABLE503Domain data is unavailable; retry later.

Example

ts
const d = await totalum.seo.domain.keywords({ domain: 'example.es', country: 'es', language: 'es', limit: 20 });

Result:

ts
{ "domain": "example.es", "totalCount": 1273, "keywords": [{ "keyword": "…", "position": 1, "url": "https://example.es/p", "traffic": 2.97, "searchVolume": 880, … }], "usage": { "credits": 0.9 } }

#seo.domain.competitors

ts
seo.domain.competitors(input: { country, language, domain, limit? }): Promise<{ domain, competitors, usage }>

The domains that compete with a domain on Google in a country (most shared keywords first).

Parameters

NameTypeRequiredDescription
input{ country, language, domain, limit? }yesThe domain, the place and how many competitors.
input.countrystringyesThe country searched from, as an ISO 3166-1 alpha-2 code (es, us, any case).
input.languagestringyesThe language of the search, as an ISO 639-1 code (es, ca, en) or a regional tag (pt-BR). seo.locations() lists them.
input.domainstringyesA bare domain (example.com). Allowed: at most 253 characters.
input.limitnumbernoAt most this many competitors. Allowed: ≥ 1, ≤ 100, default 20.

Returns Promise<{ domain, competitors, usage }> — The competitors and the credits it cost.

FieldTypeAlways presentDescription
domainstringyesThe domain.
competitors({ domain, sharedKeywords, avgPosition, organicKeywords, traffic })[]yesThe competitors, most shared keywords first.
competitors.domainstringyesThe competitor's domain.
competitors.sharedKeywordsnumberyesKeywords both rank for.
competitors.avgPositionnumber | nullyesThe competitor's average position on those.
competitors.organicKeywordsnumber | nullyesHow many keywords the competitor ranks for.
competitors.trafficnumber | nullyesThe competitor's estimated monthly organic visits.
usage{ credits }yesWhat the call cost.
usage.creditsnumberyesCredits charged for this call.

Errors — besides the errors every call can throw:

CodeHTTPWhen
NOT_AVAILABLE_IN_COUNTRY400No data for that country and language.
RATE_LIMIT_EXCEEDED429The plan's SEO calls per minute or per month are used up; details.period.
PROVIDER_UNAVAILABLE503Domain data is unavailable; retry later.

Example

ts
const c = await totalum.seo.domain.competitors({ domain: 'example.es', country: 'es', language: 'es', limit: 5 });

Result:

json
{ "domain": "example.es", "competitors": [{ "domain": "rival.es", "sharedKeywords": 540, "avgPosition": 18.2, "organicKeywords": 9000, "traffic": 12000 }], "usage": { "credits": 0.9086 } }

#seo.domain.keywordGap

ts
seo.domain.keywordGap(input: { country, language, domain, competitor, limit?, mode? }): Promise<{ domain, keywords, competitor, usage }>

The keyword gap between a domain and a competitor: the keywords the competitor ranks for and the domain does not (missing), or that both rank for (shared).

Parameters

NameTypeRequiredDescription
input{ country, language, domain, competitor, limit?, mode? }yesThe domain, the competitor, the place, the mode and how many.
input.countrystringyesThe country searched from, as an ISO 3166-1 alpha-2 code (es, us, any case).
input.languagestringyesThe language of the search, as an ISO 639-1 code (es, ca, en) or a regional tag (pt-BR). seo.locations() lists them.
input.domainstringyesYour domain. Allowed: at most 253 characters.
input.competitorstringyesThe competitor's domain. Allowed: at most 253 characters.
input.limitnumbernoAt most this many keywords. Allowed: ≥ 1, ≤ 100, default 50.
input.mode'shared' | 'missing'nomissing: the competitor ranks and domain does not; shared: both rank. Allowed: default "missing".

Returns Promise<{ domain, keywords, competitor, usage }> — The keywords with both positions and the credits it cost.

FieldTypeAlways presentDescription
domainstringyesYour domain.
keywords({ keyword, searchVolume, cpc, difficulty, intent, competitorPosition, competitorUrl, domainPosition, domainUrl })[]yesThe keywords.
keywords.keywordstringyesThe keyword.
keywords.searchVolumenumber | nullyesAverage monthly Google searches in the country and language asked; null when unknown.
keywords.cpcnumber | nullyesAverage cost per click of the keyword's ads, in USD; null when no ads run on it.
keywords.difficultynumber | nullyesHow hard it is to rank in the top 10, 0 (easy) to 100 (hardest).
keywords.intent'informational' | 'navigational' | 'commercial' | 'transactional' | nullyesWhat the searcher wants: informational (to learn), navigational (a specific site), commercial (to compare before buying) or transactional (to buy or book now).
keywords.competitorPositionnumber | nullyesThe competitor's position.
keywords.competitorUrlstring | nullyesThe competitor's ranking page.
keywords.domainPositionnumber | nullyesYour position; null when you do not rank.
keywords.domainUrlstring | nullyesYour ranking page, if any.
competitorstringyesThe competitor's domain.
usage{ credits }yesWhat the call cost.
usage.creditsnumberyesCredits charged for this call.

Errors — besides the errors every call can throw:

CodeHTTPWhen
NOT_AVAILABLE_IN_COUNTRY400No data for that country and language.
RATE_LIMIT_EXCEEDED429The plan's SEO calls per minute or per month are used up; details.period.
PROVIDER_UNAVAILABLE503Domain data is unavailable; retry later.

Example

ts
const g = await totalum.seo.domain.keywordGap({ domain: 'example.es', competitor: 'rival.es', country: 'es', language: 'es' });

Result:

ts
{ "domain": "example.es", "competitor": "rival.es", "keywords": [{ "keyword": "…", "competitorPosition": 3, "competitorUrl": "https://rival.es/p", "domainPosition": null, "domainUrl": null, … }], "usage": { "credits": 0.9 } }
ts
seo.domain.backlinks(input: SeoBacklinksSummaryInput): Promise<{ domain, rank, backlinks, referringDomains, referringDomainsNofollow, referringMainDomains, referringIps, brokenBacklinks, spamScore, firstSeen, topTlds, topCountries, usage }>

A domain's backlink profile: authority rank, backlinks, referring domains, spam score and where its links come from.

Parameters

NameTypeRequiredDescription
inputSeoBacklinksSummaryInputyesThe domain.
input.domainstringyesA bare domain (example.com). Allowed: at most 253 characters.

Returns Promise<{ domain, rank, backlinks, referringDomains, referringDomainsNofollow, referringMainDomains, referringIps, brokenBacklinks, spamScore, firstSeen, topTlds, topCountries, usage }> — The summary and the credits it cost.

FieldTypeAlways presentDescription
domainstringyesThe domain.
ranknumber | nullyesAuthority, 0–1000.
backlinksnumber | nullyesLinks pointing to it.
referringDomainsnumber | nullyesDomains linking to it.
referringDomainsNofollownumber | nullyesOf those, the ones whose links are all nofollow.
referringMainDomainsnumber | nullyesDistinct main domains linking to it.
referringIpsnumber | nullyesDistinct IP addresses linking to it.
brokenBacklinksnumber | nullyesLinks to pages of it that no longer exist.
spamScorenumber | nullyesHow spammy its link profile looks, 0–100.
firstSeenstring | nullyesWhen a link to it was first seen.
topTldsRecord<string, number>yesLinking domains per top-level domain (com → count).
topCountriesRecord<string, number>yesLinking domains per country (US → count).
usage{ credits }yesWhat the call cost.
usage.creditsnumberyesCredits charged for this call.

Errors — besides the errors every call can throw:

CodeHTTPWhen
RATE_LIMIT_EXCEEDED429The plan's SEO calls per minute or per month are used up; details.period.
PROVIDER_UNAVAILABLE503Backlink data is unavailable; retry later.

Example

ts
const b = await totalum.seo.domain.backlinks({ domain: 'example.es' });

Result:

ts
{ "domain": "example.es", "rank": 212, "backlinks": 667, "referringDomains": 235, "spamScore": 11, …, "usage": { "credits": 1.7169 } }

#seo.page.analyze

ts
seo.page.analyze(input: SeoPageAnalyzeInput): Promise<{ url, links, images, statusCode, title, description, score, content, canonical, headings, wordCount, hasStructuredData, issues, social, usage }>

Reads one public page as a search engine does: title, description, canonical, headings, word count, links, images, structured data, social tags, an on-page score with the issues found, and its main text by section — the structure of a page that ranks.

Parameters

NameTypeRequiredDescription
inputSeoPageAnalyzeInputyesThe page's URL.
input.urlstringyesThe public http(s) URL of the page. Allowed: a URL.

Returns Promise<{ url, links, images, statusCode, title, description, score, content, canonical, headings, wordCount, hasStructuredData, issues, social, usage }> — The page analysis and the credits it cost.

FieldTypeAlways presentDescription
urlstringyesThe page read (after redirects).
links{ internal, external }yesIts links.
links.internalnumber | nullyesLinks to its own site.
links.externalnumber | nullyesLinks to other sites.
imagesnumber | nullyesHow many images.
statusCodenumber | nullyesIts HTTP status.
titlestring | nullyesIts <title>.
descriptionstring | nullyesIts meta description.
scorenumber | nullyesAn on-page score, 0–100.
content({ heading, level, text })[]yesIts main text by section.
content.headingstring | nullyesThe section's heading.
content.levelnumber | nullyesThe heading level (1 = H1).
content.textstringyesThe section's text.
canonicalstring | nullyesIts canonical URL.
headings{ h1, h2, h3 }yesIts headings.
headings.h1string[]yesThe H1s.
headings.h2string[]yesThe H2s.
headings.h3string[]yesThe H3s.
wordCountnumber | nullyesWords of text.
hasStructuredDataboolean | nullyesWhether it has schema.org structured data.
issuesstring[]yesProblems found, e.g. title_too_long, no_image_alt, no_h1_tag.
socialRecord<string, string>yesIts Open Graph and Twitter tags (og:title → value).
usage{ credits }yesWhat the call cost.
usage.creditsnumberyesCredits charged for this call.

Errors — besides the errors every call can throw:

CodeHTTPWhen
SEO_REQUEST_REJECTED400The page could not be read; details.field.
RATE_LIMIT_EXCEEDED429The plan's SEO calls per minute or per month are used up; details.period.
PROVIDER_TIMEOUT504The page took too long; retry.
PROVIDER_UNAVAILABLE503Page analysis is unavailable; retry later.

Example

ts
const p = await totalum.seo.page.analyze({ url: 'https://www.example.es/' });

Result:

ts
{ "url": "https://www.example.es/", "statusCode": 200, "title": "Ejemplo", "headings": { "h1": ["Ejemplo"], "h2": ["…"], "h3": [] }, "wordCount": 2418, "hasStructuredData": true, "score": 91.59, "issues": ["title_too_long"], "content": [{ "heading": "Ejemplo", "level": 1, "text": "…" }], …, "usage": { "credits": 0.0215 } }

#SeoAiAnswerInput

The question of seo.ai.answer().

NameTypeRequiredDescription
promptstringyesThe question, as a user asks the assistant. Allowed: at least 1 character, at most 500 characters.
platform'claude' | 'chatgpt' | 'gemini' | 'perplexity'yesThe assistant: chatgpt, claude, gemini or perplexity. Allowed: default "chatgpt".
webSearchbooleanyesWhether the assistant may search the web (as it does for users); true by default. Allowed: default true.
modelstringnoA model id of that assistant; omitted = a current fast model.
countrystringnoThe country its web search runs from (ISO 3166-1 alpha-2).

#SeoAiAnswerOutput

The assistant's answer.

FieldTypeAlways presentDescription
platform'claude' | 'chatgpt' | 'gemini' | 'perplexity'yesThe assistant asked.
modelstringyesThe model that answered.
answerstringyesThe answer, as Markdown.
sourcesSeoSource[]yesThe pages it cited.
citedDomainsstring[]yesThe domains of those pages.
searchQueriesstring[]yesThe web searches the assistant ran.

#SeoAiKeywordVolumeInput

The keywords of seo.ai.keywordVolume().

NameTypeRequiredDescription
countrystringyesThe country searched from, as an ISO 3166-1 alpha-2 code (es, us, any case).
languagestringyesThe language of the search, as an ISO 639-1 code (es, ca, en) or a regional tag (pt-BR). seo.locations() lists them.
keywordsstring[]yesUp to 1,000 keywords. Allowed: at least 1 item, at most 1000 items.

#SeoAiKeywordVolumeOutput

AI search volume per keyword.

FieldTypeAlways presentDescription
keywords({ keyword, aiSearchVolume, monthlySearches })[]yesOne row per keyword.
keywords.keywordstringyesThe keyword.
keywords.aiSearchVolumenumber | nullyesHow often it is asked to AI assistants per month.
keywords.monthlySearches({ year, month, aiSearchVolume })[]yesThe last 12 months, newest first.
keywords.monthlySearches.yearnumberyesThe year.
keywords.monthlySearches.monthnumberyesThe month, 1–12.
keywords.monthlySearches.aiSearchVolumenumber | nullyesAI searches that month.

#SeoAiMentionsInput

The target of seo.ai.mentions(): exactly one of domain or keyword.

NameTypeRequiredDescription
view'mentions' | 'top-domains' | 'top-pages'yesmentions (the questions and answers), top-domains or top-pages (the most cited). Allowed: default "mentions".
limitnumberyesAt most this many rows. Allowed: ≥ 1, ≤ 100, default 20.
countrystringyesThe country searched from, as an ISO 3166-1 alpha-2 code (es, us, any case).
languagestringyesThe language of the search, as an ISO 639-1 code (es, ca, en) or a regional tag (pt-BR). seo.locations() lists them.
platform'chatgpt' | 'google'nogoogle (AI Overviews) or chatgpt (United States, English only); omitted = both.
domainstringnoMentions of this domain (cited by AI answers). Allowed: at most 253 characters.
keywordstringnoOr mentions of this keyword or brand name in AI questions and answers. Allowed: at least 1 character, at most 250 characters.

#SeoAiMentionsOutput

Mentions in AI answers; the field present depends on view.

FieldTypeAlways presentDescription
totalCountnumberyesHow many mentions exist in all.
mentions({ platform, question, answer, sources, brands, aiSearchVolume })[]noThe questions and answers (view: mentions).
mentions.platform'chatgpt' | 'google'yesgoogle (AI Overview) or chatgpt.
mentions.questionstringyesThe question asked.
mentions.answerstringyesThe AI answer.
mentions.sourcesSeoSource[]yesThe pages it cites.
mentions.brands({ name, category })[]yesThe brands it names.
mentions.brands.namestringyesThe brand or product named.
mentions.brands.categorystring | nullyesWhat it is, when known.
mentions.aiSearchVolumenumber | nullyesHow often the question is asked per month.
domains({ mentions, aiSearchVolume, domain })[]noThe most cited domains (view: top-domains).
domains.mentionsnumberyesHow many answers cite it.
domains.aiSearchVolumenumber | nullyesThe monthly AI search volume of those answers.
domains.domainstringyesThe domain.
pages({ mentions, aiSearchVolume, url })[]noThe most cited pages (view: top-pages).
pages.mentionsnumberyesHow many answers cite it.
pages.aiSearchVolumenumber | nullyesThe monthly AI search volume of those answers.
pages.urlstringyesThe page.

#SeoBacklinksSummaryInput

The domain of seo.domain.backlinks().

NameTypeRequiredDescription
domainstringyesA bare domain (example.com). Allowed: at most 253 characters.

#SeoBacklinksSummaryOutput

A domain's backlink profile.

FieldTypeAlways presentDescription
domainstringyesThe domain.
ranknumber | nullyesAuthority, 0–1000.
backlinksnumber | nullyesLinks pointing to it.
referringDomainsnumber | nullyesDomains linking to it.
referringDomainsNofollownumber | nullyesOf those, the ones whose links are all nofollow.
referringMainDomainsnumber | nullyesDistinct main domains linking to it.
referringIpsnumber | nullyesDistinct IP addresses linking to it.
brokenBacklinksnumber | nullyesLinks to pages of it that no longer exist.
spamScorenumber | nullyesHow spammy its link profile looks, 0–100.
firstSeenstring | nullyesWhen a link to it was first seen.
topTldsRecord<string, number>yesLinking domains per top-level domain (com → count).
topCountriesRecord<string, number>yesLinking domains per country (US → count).

#SeoChatGptSearchInput

The query of seo.ai.chatgptSearch().

NameTypeRequiredDescription
countrystringyesThe country searched from, as an ISO 3166-1 alpha-2 code (es, us, any case).
languagestringyesThe language of the search, as an ISO 639-1 code (es, ca, en) or a regional tag (pt-BR). seo.locations() lists them.
keywordstringyesThe query, as a user types it in ChatGPT. Allowed: at least 1 character, at most 2000 characters.

#SeoChatGptSearchOutput

ChatGPT's search answer.

FieldTypeAlways presentDescription
keywordstringyesThe query.
answerstringyesThe answer, as Markdown.
sources({ title, url, domain, snippet, publishedAt })[]yesThe pages it cites.
sources.titlestring | nullyesThe page's title.
sources.urlstringyesThe page's URL.
sources.domainstring | nullyesThe page's host.
sources.snippetstring | nullyesThe text it quotes, when given.
sources.publishedAtstring | nullyesThe page's date, when known.
searchResultsSeoSource[]yesThe search results it showed.
brands({ name, category })[]yesThe brands and products it named.
brands.namestringyesThe brand or product named.
brands.categorystring | nullyesWhat it is, when known.
searchQueriesstring[]yesThe searches it ran.

#SeoDomainCompetitorsInput

The domain of seo.domain.competitors().

NameTypeRequiredDescription
limitnumberyesAt most this many competitors. Allowed: ≥ 1, ≤ 100, default 20.
countrystringyesThe country searched from, as an ISO 3166-1 alpha-2 code (es, us, any case).
languagestringyesThe language of the search, as an ISO 639-1 code (es, ca, en) or a regional tag (pt-BR). seo.locations() lists them.
domainstringyesA bare domain (example.com). Allowed: at most 253 characters.

#SeoDomainCompetitorsOutput

A domain's search competitors.

FieldTypeAlways presentDescription
domainstringyesThe domain.
competitors({ domain, sharedKeywords, avgPosition, organicKeywords, traffic })[]yesThe competitors, most shared keywords first.
competitors.domainstringyesThe competitor's domain.
competitors.sharedKeywordsnumberyesKeywords both rank for.
competitors.avgPositionnumber | nullyesThe competitor's average position on those.
competitors.organicKeywordsnumber | nullyesHow many keywords the competitor ranks for.
competitors.trafficnumber | nullyesThe competitor's estimated monthly organic visits.

#SeoDomainKeywordsInput

The domain of seo.domain.keywords().

NameTypeRequiredDescription
limitnumberyesAt most this many keywords. Allowed: ≥ 1, ≤ 100, default 50.
countrystringyesThe country searched from, as an ISO 3166-1 alpha-2 code (es, us, any case).
languagestringyesThe language of the search, as an ISO 639-1 code (es, ca, en) or a regional tag (pt-BR). seo.locations() lists them.
domainstringyesA bare domain (example.com); a URL is cut to its host. Allowed: at most 253 characters.

#SeoDomainKeywordsOutput

The keywords a domain ranks for.

FieldTypeAlways presentDescription
domainstringyesThe domain.
totalCountnumberyesHow many keywords it ranks for in all.
keywords({ keyword, searchVolume, cpc, difficulty, intent, position, url, traffic })[]yesThe keywords, by traffic.
keywords.keywordstringyesThe keyword.
keywords.searchVolumenumber | nullyesAverage monthly Google searches in the country and language asked; null when unknown.
keywords.cpcnumber | nullyesAverage cost per click of the keyword's ads, in USD; null when no ads run on it.
keywords.difficultynumber | nullyesHow hard it is to rank in the top 10, 0 (easy) to 100 (hardest).
keywords.intent'informational' | 'navigational' | 'commercial' | 'transactional' | nullyesWhat the searcher wants: informational (to learn), navigational (a specific site), commercial (to compare before buying) or transactional (to buy or book now).
keywords.positionnumberyesIts Google position for the keyword.
keywords.urlstring | nullyesThe page that ranks.
keywords.trafficnumber | nullyesEstimated monthly visits from this keyword.

#SeoIndexNowKey type

The project's IndexNow key.

FieldTypeAlways presentDescription
keystringyesThe key.
keyLocationstringyesThe URL where the site serves it (https://<host>/<key>.txt).

#SeoKeyword

One keyword's Google search data in the country and language asked.

FieldTypeAlways presentDescription
keywordstringyesThe keyword.
searchVolumenumber | nullyesAverage monthly Google searches in the country and language asked; null when unknown.
cpcnumber | nullyesAverage cost per click of the keyword's ads, in USD; null when no ads run on it.
competitionnumber | nullyesHow many advertisers bid on it, 0 (none) to 1 (most).
competitionLevel'low' | 'medium' | 'high' | nullyesThe same as a level: low, medium or high.
difficultynumber | nullyesHow hard it is to rank in the top 10, 0 (easy) to 100 (hardest).
intent'informational' | 'navigational' | 'commercial' | 'transactional' | nullyesWhat the searcher wants: informational (to learn), navigational (a specific site), commercial (to compare before buying) or transactional (to buy or book now).
trend{ monthly, quarterly, yearly } | nullyesThe change of its search volume, in percent.
trend.monthlynumber | nullyesAgainst the previous month.
trend.quarterlynumber | nullyesAgainst three months ago.
trend.yearlynumber | nullyesAgainst a year ago.
monthlySearches({ year, month, searchVolume })[]yesThe last 12 months, newest first.
monthlySearches.yearnumberyesThe year.
monthlySearches.monthnumberyesThe month, 1–12.
monthlySearches.searchVolumenumber | nullyesGoogle searches that month.

#SeoKeywordGapInput

The two domains of seo.domain.keywordGap().

NameTypeRequiredDescription
mode'shared' | 'missing'yesmissing: the competitor ranks and domain does not; shared: both rank. Allowed: default "missing".
limitnumberyesAt most this many keywords. Allowed: ≥ 1, ≤ 100, default 50.
countrystringyesThe country searched from, as an ISO 3166-1 alpha-2 code (es, us, any case).
languagestringyesThe language of the search, as an ISO 639-1 code (es, ca, en) or a regional tag (pt-BR). seo.locations() lists them.
domainstringyesYour domain. Allowed: at most 253 characters.
competitorstringyesThe competitor's domain. Allowed: at most 253 characters.

#SeoKeywordGapOutput

The keyword gap between two domains.

FieldTypeAlways presentDescription
domainstringyesYour domain.
competitorstringyesThe competitor's domain.
keywords({ keyword, searchVolume, cpc, difficulty, intent, competitorPosition, competitorUrl, domainPosition, domainUrl })[]yesThe keywords.
keywords.keywordstringyesThe keyword.
keywords.searchVolumenumber | nullyesAverage monthly Google searches in the country and language asked; null when unknown.
keywords.cpcnumber | nullyesAverage cost per click of the keyword's ads, in USD; null when no ads run on it.
keywords.difficultynumber | nullyesHow hard it is to rank in the top 10, 0 (easy) to 100 (hardest).
keywords.intent'informational' | 'navigational' | 'commercial' | 'transactional' | nullyesWhat the searcher wants: informational (to learn), navigational (a specific site), commercial (to compare before buying) or transactional (to buy or book now).
keywords.competitorPositionnumber | nullyesThe competitor's position.
keywords.competitorUrlstring | nullyesThe competitor's ranking page.
keywords.domainPositionnumber | nullyesYour position; null when you do not rank.
keywords.domainUrlstring | nullyesYour ranking page, if any.

#SeoKeywordIdeasInput

The seeds of seo.keywords.ideas().

NameTypeRequiredDescription
limitnumberyesAt most this many ideas. Allowed: ≥ 1, ≤ 100, default 50.
countrystringyesThe country searched from, as an ISO 3166-1 alpha-2 code (es, us, any case).
languagestringyesThe language of the search, as an ISO 639-1 code (es, ca, en) or a regional tag (pt-BR). seo.locations() lists them.
keywordsstring[]yesUp to 20 seed keywords; ideas containing the first one come first. Allowed: at least 1 item, at most 20 items.

#SeoKeywordOverviewInput

The keywords of seo.keywords.overview().

NameTypeRequiredDescription
countrystringyesThe country searched from, as an ISO 3166-1 alpha-2 code (es, us, any case).
languagestringyesThe language of the search, as an ISO 639-1 code (es, ca, en) or a regional tag (pt-BR). seo.locations() lists them.
keywordsstring[]yesUp to 700 keywords. Allowed: at least 1 item, at most 700 items.

#SeoKeywordRelatedInput

The keyword of seo.keywords.related().

NameTypeRequiredDescription
depthnumberyesHow many hops of related searches to follow, 1 to 3. Allowed: ≥ 1, ≤ 3, default 1.
limitnumberyesAt most this many keywords. Allowed: ≥ 1, ≤ 100, default 50.
countrystringyesThe country searched from, as an ISO 3166-1 alpha-2 code (es, us, any case).
languagestringyesThe language of the search, as an ISO 639-1 code (es, ca, en) or a regional tag (pt-BR). seo.locations() lists them.
keywordstringyesThe keyword. Allowed: at least 1 character, at most 80 characters.

#SeoKeywordsOutput

Keywords with their search data.

FieldTypeAlways presentDescription
keywordsSeoKeyword[]yesThe keywords, most relevant first.

#SeoKeywordTrendsInput

The keywords of seo.keywords.trends().

NameTypeRequiredDescription
keywordsstring[]yesUp to 5 keywords, compared on one scale. Allowed: at least 1 item, at most 5 items.
timeRange'past_7_days' | 'past_30_days' | 'past_90_days' | 'past_12_months' | 'past_5_years'yesThe period: past_7_days, past_30_days, past_90_days, past_12_months or past_5_years. Allowed: default "past_12_months".
countrystringnoThe country (ISO 3166-1 alpha-2); omitted = worldwide.
languagestringnoThe language; omitted = all.

#SeoKeywordTrendsOutput

Google Trends interest over time.

FieldTypeAlways presentDescription
keywordsstring[]yesThe keywords, in the order of values.
timeline({ from, to, values })[]yesOne row per period, oldest first.
timeline.fromstringyesThe first day of the period.
timeline.tostringyesThe last day.
timeline.values(number | null)[]yesEach keyword's interest, 0–100 (100 = the peak of the chart).

#SeoLocationsOutput

The places the research methods accept.

FieldTypeAlways presentDescription
countries({ country, name, dataLanguages })[]yesEvery country.
countries.countrystringyesIts ISO 3166-1 alpha-2 code.
countries.namestringyesIts English name.
countries.dataLanguagesstring[]yesThe languages keyword, domain and AI data exist in there; search results take any language.
languages({ language, name })[]yesEvery language.
languages.languagestringyesIts code.
languages.namestringyesIts English name.

#SeoNotifyOutput

The answer of seo.notifyChanged().

FieldTypeAlways presentDescription
acceptednumberyesHow many URLs were sent to IndexNow.
indexNow'error' | 'sent' | 'skipped_no_custom_domain'yessent; skipped_no_custom_domain when the project has no verified custom domain (Totalum's own hosts are never sent); error when IndexNow refused them.
sitemapsPingedbooleanyesWhether each domain's /sitemap.xml answered.

#SeoPageAnalyzeInput

The page of seo.page.analyze().

NameTypeRequiredDescription
urlstringyesThe public http(s) URL of the page. Allowed: a URL.

#SeoPageAnalyzeOutput

One page as a search engine reads it.

FieldTypeAlways presentDescription
urlstringyesThe page read (after redirects).
statusCodenumber | nullyesIts HTTP status.
titlestring | nullyesIts <title>.
descriptionstring | nullyesIts meta description.
canonicalstring | nullyesIts canonical URL.
headings{ h1, h2, h3 }yesIts headings.
headings.h1string[]yesThe H1s.
headings.h2string[]yesThe H2s.
headings.h3string[]yesThe H3s.
wordCountnumber | nullyesWords of text.
links{ internal, external }yesIts links.
links.internalnumber | nullyesLinks to its own site.
links.externalnumber | nullyesLinks to other sites.
imagesnumber | nullyesHow many images.
hasStructuredDataboolean | nullyesWhether it has schema.org structured data.
scorenumber | nullyesAn on-page score, 0–100.
issuesstring[]yesProblems found, e.g. title_too_long, no_image_alt, no_h1_tag.
socialRecord<string, string>yesIts Open Graph and Twitter tags (og:title → value).
content({ heading, level, text })[]yesIts main text by section.
content.headingstring | nullyesThe section's heading.
content.levelnumber | nullyesThe heading level (1 = H1).
content.textstringyesThe section's text.

#SeoSerpAiModeInput

The question of seo.serp.aiMode().

NameTypeRequiredDescription
device'mobile' | 'desktop'yesdesktop or mobile. Allowed: default "desktop".
countrystringyesThe country searched from, as an ISO 3166-1 alpha-2 code (es, us, any case).
languagestringyesThe language of the search, as an ISO 639-1 code (es, ca, en) or a regional tag (pt-BR). seo.locations() lists them.
keywordstringyesThe question, as a user asks it. Allowed: at least 1 character, at most 700 characters.

#SeoSerpAiModeOutput

Google AI Mode's answer.

FieldTypeAlways presentDescription
keywordstringyesThe question asked.
answerstringyesThe answer, as Markdown.
sourcesSeoSource[]yesThe pages it cites.

#SeoSerpGoogleInput

The search of seo.serp.google().

NameTypeRequiredDescription
depthnumberyesHow many results to read, 10 to 100. Allowed: ≥ 10, ≤ 100, default 10.
device'mobile' | 'desktop'yesdesktop or mobile results. Allowed: default "desktop".
countrystringyesThe country searched from, as an ISO 3166-1 alpha-2 code (es, us, any case).
languagestringyesThe language of the search, as an ISO 639-1 code (es, ca, en) or a regional tag (pt-BR). seo.locations() lists them.
keywordstringyesWhat is searched, as a user types it. Allowed: at least 1 character, at most 700 characters.
citystringnoA city of country (Barcelona): the results as seen there. Allowed: at least 2 characters, at most 80 characters.

#SeoSerpGoogleOutput

Google's results page for the keyword.

FieldTypeAlways presentDescription
keywordstringyesThe keyword searched.
totalResultsnumber | nullyesHow many results Google reports.
organic({ position, title, url, domain, snippet, breadcrumb })[]yesThe organic results, in rank order.
organic.positionnumberyesThe rank among organic results, from 1.
organic.titlestring | nullyesThe result's title.
organic.urlstringyesThe ranking page's URL.
organic.domainstring | nullyesThe ranking page's host.
organic.snippetstring | nullyesThe text Google shows under the title.
organic.breadcrumbstring | nullyesThe path Google shows above the title.
featuredSnippet{ title, snippet, url, domain } | nullyesThe answer box at the top, when Google shows one.
featuredSnippet.titlestring | nullyesIts title.
featuredSnippet.snippetstring | nullyesIts text.
featuredSnippet.urlstringyesThe page it quotes.
featuredSnippet.domainstring | nullyesThat page's host.
peopleAlsoAsk({ question, answer })[]yesThe "People also ask" questions.
peopleAlsoAsk.questionstringyesThe question.
peopleAlsoAsk.answer{ title, url, domain, snippet } | nullyesThe page Google answers it from, when shown.
peopleAlsoAsk.answer.titlestring | nullyesThe page's title.
peopleAlsoAsk.answer.urlstringyesThe page's URL.
peopleAlsoAsk.answer.domainstring | nullyesThe page's host.
peopleAlsoAsk.answer.snippetstring | nullyesThe answer text.
relatedSearchesstring[]yesThe related searches at the bottom of the page.
aiOverview{ text, sources } | nullyesGoogle's AI Overview, when it shows one.
aiOverview.textstringyesThe overview, as Markdown.
aiOverview.sourcesSeoSource[]yesThe pages it cites.

#SeoSerpMapsInput

The search of seo.serp.maps().

NameTypeRequiredDescription
depthnumberyesHow many places to read, 1 to 100. Allowed: ≥ 1, ≤ 100, default 20.
countrystringyesThe country searched from, as an ISO 3166-1 alpha-2 code (es, us, any case).
languagestringyesThe language of the search, as an ISO 639-1 code (es, ca, en) or a regional tag (pt-BR). seo.locations() lists them.
keywordstringyesWhat is searched on Maps (dentista, pizzeria). Allowed: at least 1 character, at most 700 characters.
citystringnoA city of country: the places as seen there. Allowed: at least 2 characters, at most 80 characters.

#SeoSerpMapsOutput

Google Maps places for the search.

FieldTypeAlways presentDescription
keywordstringyesThe search.
results({ position, title, category, address, city, phone, website, rating, reviews, priceLevel, latitude, longitude, placeId, claimed })[]yesThe places, in rank order.
results.positionnumberyesThe rank, from 1.
results.titlestringyesThe place's name.
results.categorystring | nullyesIts main category.
results.addressstring | nullyesIts address.
results.citystring | nullyesIts city.
results.phonestring | nullyesIts phone number.
results.websitestring | nullyesIts website.
results.ratingnumber | nullyesIts average rating, 1–5.
results.reviewsnumber | nullyesHow many reviews it has.
results.priceLevelstring | nullyesIts price level, when shown.
results.latitudenumber | nullyesLatitude.
results.longitudenumber | nullyesLongitude.
results.placeIdstring | nullyesGoogle's place id.
results.claimedboolean | nullyesWhether the owner claimed the listing.

#SeoSource

A page an answer cites or a result links to.

FieldTypeAlways presentDescription
titlestring | nullyesThe page's title.
urlstringyesThe page's URL.
domainstring | nullyesThe page's host.