Skip to main content
Use these fields when building listing cards, article pages, topic hubs, and metadata.

RankBuddyArticle

FieldTypeUse on your site
idstringKeys, analytics (optional on public pages)
slugstringURL segment at {blogPath}/[slug]
titlestring<h1>, cards, Open Graph fallback
descriptionstringMeta description fallback, card excerpt
excerptstring?Prefer over description for card blurbs
content{ format: "markdown"; html: string; source?: string }Render content.html in article body
coverImagestring?Hero image, OG/Twitter image fallback
publishedAtstring?Byline, JSON-LD datePublished, OG publishedTime
updatedAtstring?JSON-LD dateModified, OG modifiedTime
readingTimenumber?Minutes to read (round up, minimum 1)
tagsstring[]?Topic chips on the article page
clusterRelation"pillar" | "supporting"?Optional badge (pillar vs supporting)
primaryKeywordstring?Optional chip or metadata
primaryCluster{ id, slug, name, pillarKeyword }?Link to {blogPath}/topic/{slug}
seo.titlestring?<title> and OG title
seo.descriptionstring?Meta description
seo.canonicalUrlstring?Canonical link (absolute or site-relative)
seo.ogImagestring?Prefer over coverImage for social cards
seo.keywordsstring[]?Meta keywords, JSON-LD keywords
seo.noIndexboolean?Set robots: { index: false, follow: false }

RankBuddyCluster

FieldTypeUse on your site
slugstringURL at {blogPath}/topic/[clusterSlug]
namestringTopic page <h1>
pillarKeywordstringSubtitle, meta keywords
notesstring?Topic page description
postCountnumberOptional stat
keywordsstring[]Meta keywords
createdAt / updatedAtstring?Sitemap lastmod

Client options (createRankBuddyClient)

OptionRequiredPurpose
apiKeyYesServer-only secret (RANKBUDDY_API_KEY)
siteUrlRecommendedBuilds canonical URLs when seo.canonicalUrl is missing
blogPathRecommendedMust match your project’s content path (e.g. /blog)
apiUrlNoCustom API base (HTTPS only)
timeoutMsNoDefault 10000
allowBrowserNoKeep false for secret keys

SDK list parameters

getArticlesList(client, params)
ParamTypeDefault behavior
limitnumber?Page size (index often uses 24)
pagenumber?1-based pagination
tagstring?Filter by tag when needed
getClusterArticles(client, clusterSlug, params)
ParamTypeDefault behavior
limitnumber?Topic grid size
pagenumber?Pagination