Contextual Backlinks: How the context2 Hash Determines Link Value

Google's leaked API reveals a context2 hash that fingerprints text around each link. Learn how contextual placement, documentSection classification, and siteFocusScore determine link value.

TL;DR
  • A contextual backlink is a link embedded within the body content of a page — as opposed to links in sidebars, footers, navigation menus, or widget areas.
  • The leaked Google API reveals a context2 hash attribute that fingerprints the text surrounding each link. This hash is compared against the target page’s topic vector to determine topical alignment — making surrounding content a direct ranking input.
  • Link placement matters algorithmically. Links in body paragraphs carry maximum pagerankWeight. Links in headers, sidebars, footers, and boilerplate sections carry progressively less weight based on documentSection classification.
  • The siteFocusScore patent (US9165040B1) evaluates how topically focused the linking domain is — a contextual link from a niche-relevant site carries a higher siteFocusScore multiplier than one from a topically broad site, even at the same Domain Rating.
  • Non-contextual links (sidebar widgets, footer links, blogroll links) are not ignored — but they carry a fraction of the signal that in-content contextual links carry. The gap is widening as Google moves toward a quality-first link index.

The difference between a link in a blog post’s body and a link in its sidebar is not just about user experience. It’s an algorithmic distinction that determines how much ranking signal reaches your page.

Google’s leaked API documentation reveals a multi-layered contextual scoring system. It hashes the text surrounding each link, classifies the document section the link sits in, and evaluates the topical focus of the linking domain — all before deciding how much pagerankWeight to assign. Most SEO guides define “contextual backlinks” as links within content. That’s true, but it’s only the surface.

In this article, we go deeper: how the context2 hash works, why document section classification changes link value, and how to build a contextual backlink profile that maximizes every signal Google measures.

A contextual backlink is a hyperlink placed within the editorial body content of a page — embedded naturally within a paragraph, surrounded by relevant text, and positioned where a reader would encounter it as part of the content’s narrative flow.

Contextual backlinks keyword snapshot — 250 monthly searches, KD 1, $7.00 average CPC.
Contextual backlinks keyword snapshot — 250 monthly searches, KD 1, $7.00 average CPC.

The opposite is a non-contextual link: links placed in sidebars, footers, navigation menus, author bio sections, comment areas, or widget zones. These links exist on the page but are not embedded within substantive content.

Here is the critical distinction:

<!-- Contextual link (in body content) -->
<p>Our analysis across 200 campaigns confirms that
<a href="https://example.com/data">anchor text ratios</a>
directly influence ranking volatility.</p>

<!-- Non-contextual link (in sidebar widget) -->
<div class="sidebar-widget">
  <h4>Resources</h4>
  <a href="https://example.com">Example Site</a>
</div>

Both are dofollow backlinks. Both point to the same domain. But they produce fundamentally different algorithmic signals because Google’s link index processes them through different scoring pipelines.

The most significant contextual signal in the API leak is the context2 attribute — a hash of the text surrounding each link that creates a topical fingerprint for the link’s context.

How Google's context2 hash scores contextual links — extracting surrounding text, hashing it, and comparing to target page topic.
How Google's context2 hash scores contextual links — extracting surrounding text, hashing it, and comparing to target page topic.

How the context2 hash works

When Google encounters a link within body content, it extracts the surrounding text (the paragraph, the section, and potentially the broader content block) and hashes it into a topical fingerprint. This fingerprint is then compared against the target page’s topic vector.

If the context matches the target’s topic: the link receives amplified pagerankWeight — it’s a relevant, contextual endorsement.

If the context conflicts with the target’s topic: the link triggers an anchorMismatch-like devaluation — the contextual signal becomes a negative signal.

This is why a contextual link about “link building strategies” pointing to your link building guide carries more weight than an identical link embedded in an article about cooking recipes. Same HTML. Different context2 hash. Different ranking impact.

Based on our reading of the API leak documentation: The context2 hash is not a simple keyword check. It uses topical fingerprinting — similar to the phrase-based indexing approach documented in Patent US7536408B2 — to evaluate whether the surrounding content is semantically related to the target page.

The API leak also documents a documentSection classification that tags each link by its position in the page’s content hierarchy:

Section classificationSignal weightExamples
Body contentMaximumParagraphs within the main article
Header/navigationReducedTop navigation menus, header links
Author bioModerate”About the author” sections
SidebarLowWidget areas, Related posts, Blogrolls
FooterMinimalFooter links, copyright sections
Comment/UGCLow-MinimalUser comments, forum signatures

Links in body content receive full contextual scoring (the context2 hash is applied). Links in sidebars and footers may be classified as boilerplate and excluded from the primary contextual scoring pipeline entirely.

The 5 Layers of Contextual Signal

A contextual backlink doesn’t produce a single signal. It produces a layered signal stack where each layer amplifies or diminishes the others:

Anatomy of a contextual backlink signal — 5 layers from anchor text to click behavior.
Anatomy of a contextual backlink signal — 5 layers from anchor text to click behavior.

Layer 1: Anchor text (normalizedTopicality)

The clickable text of the link serves as the first topical signal. The normalizedTopicality attribute measures how strongly the anchor text associates with the target page’s primary topic.

Layer 2: Surrounding content (context2 hash)

The paragraph and section surrounding the link create a topical fingerprint. This is the layer that makes contextual links fundamentally different from non-contextual links — sidebar and footer links have no meaningful surrounding content to hash.

Layer 3: Page topic (documentTopicality)

The overall topic of the linking page matters. A contextual link from an article about “SEO link building” has stronger page-level topical alignment to a link building guide than a contextual link from a general marketing roundup.

Layer 4: Domain focus (siteFocusScore)

The siteFocusScore patent (US9165040B1) evaluates how topically concentrated a domain is. A contextual link from a domain that focuses exclusively on SEO carries a higher siteFocusScore multiplier than one from a domain covering dozens of unrelated topics. This is why niche relevant backlinks from focused domains outperform same-DR links from topically broad sites.

Layer 5: Click behavior (lastLongestClicks)

Contextual links in body content are more likely to be clicked by readers than sidebar or footer links. Google’s NavBoost system (Patent US9953049B1) tracks click behavior on links and uses lastLongestClicks and goodClicks attributes to tier links by engagement quality.

This creates a positive feedback loop: contextual links get more clicks → higher engagement tier → more ranking signal → better rankings → more clicks.

The value gap between contextual and non-contextual links is wider than most SEOs realize:

Contextual vs. non-contextual links — comparing body content placement against sidebar/footer links across all signal dimensions.
Contextual vs. non-contextual links — comparing body content placement against sidebar/footer links across all signal dimensions.

No context2 hash: Sidebar widgets and footer links have no surrounding editorial content to hash. They produce no contextual topical signal — just a raw link with an anchor.

Boilerplate classification: Links that appear on every page of a site (sitewide footer links, navigation links) are classified as boilerplate. Google’s boilerplate detection patent (Patent US8001127B1) identifies these patterns and reduces their per-page pagerankWeight to a fraction of a unique contextual link.

Zero click expectation: Users rarely click sidebar widgets or footer links. The click-based quality tier for these links is lower, further reducing their ranking signal.

Non-contextual links aren’t worthless. They still:

  • Contribute to overall referring domain count (diversity signal)
  • Enable crawling of the target URL
  • Pass a small amount of pagerankWeight per unique linking domain
  • Build entity co-occurrence signals (your brand appears on the linking domain)

But volume-for-volume, 10 contextual links from relevant body content outperform 100 sidebar or footer links from the same domains. The signal architecture is fundamentally different.

Not all body content positions are equal. Link placement within the content hierarchy affects signal strength:

Where contextual links carry maximum weight — page layout showing body content as the primary contextual zone.
Where contextual links carry maximum weight — page layout showing body content as the primary contextual zone.

First 25% of body content (maximum weight)

Links placed early in an article — within the introduction or first major section — carry the strongest contextual signal. This aligns with the Reasonable Surfer model (Patent US7716225B1), which weights links based on the probability that a user would click them. Links at the top of substantive content have higher click probability.

Mid-body content (high weight)

Links embedded in the middle sections of an article still carry strong contextual signals. The context2 hash evaluates surrounding content quality regardless of position — but the Reasonable Surfer click probability decreases with scroll depth.

End-of-article sections (moderate weight)

Links in conclusion sections, “further reading” lists, or reference sections carry moderate weight. They have contextual value (they’re in body content) but lower click probability than early-article placements.

Author bios and About sections (low-moderate weight)

Links in author bios are contextual in the sense that they’re embedded in content — but the documentSection classification may reduce their weight compared to body paragraph links.

Building contextual backlinks means securing placements within body content, not in sidebars or footers. Here are the strategies that consistently produce body-content placements:

When contributing guest content, negotiate link placement within the article body — not in the author bio. An in-content contextual link from a DR 50 site outperforms an author-bio link from a DR 80 site because the context2 hash and documentSection classification favor body content.

Requesting link insertions into existing, relevant articles produces natural contextual placements. The link is embedded within already-published content that has an established topical fingerprint — producing strong context2 alignment from day one.

Digital PR and data-driven outreach

Pitching original research to journalists produces editorial backlinks embedded within news articles. These are the highest-quality contextual links because they combine editorial sourceType, body-content placement, topical relevance, and click traffic.

Resource page placements

Resource pages — “best tools for X,” “recommended reading for Y” — provide contextual placements because the links are embedded within curated content about a specific topic. The context2 hash captures the resource page’s topical focus, which aligns with the target page’s topic.

No link building agency, including ours, can control where every link appears on the linking page. What we can do is prioritize strategies that produce body-content placements — and decline opportunities that would only produce sidebar or footer links. Every placement we build at Get Me Links is evaluated against the context2 and documentSection signals before we pursue it. See how we evaluate link opportunities →

What This Means for GEO and Source Authority

Contextual backlinks feed the GEO pipeline in a way that non-contextual links cannot — and they’re a direct input into the Source → Consensus → Trust cycle.

The AI Overview source selection patent (US20240289407A1) evaluates source trust through Layer 2 (query-independent trust via links). Contextual links with verified topical alignment (via context2) contribute more to the trust score than non-contextual links with no topical fingerprint.

Additionally, AI Overview systems use entity co-occurrence to determine whether a source is authoritative on a topic. Contextual links create stronger entity co-occurrence signals because the surrounding text associates your brand with specific topical entities. A sidebar link with “example.com” as anchor text produces no entity association. A body-content link with “Get Me Links’ research on anchor text ratios” in a relevant paragraph produces strong entity association.

This is Source authority in its most concrete form: your content is cited in context, surrounded by topically aligned text, on a relevant domain — creating the consensus pattern that search engines and AI systems use to determine trust.

Based on our reading of patent US20240289407A1: GEO source selection rewards contextual citations because they reflect genuine editorial endorsement with verifiable topical alignment — the same signals that context2 captures.

Building contextual links that produce maximum context2 alignment requires systematic evaluation of every placement opportunity. That’s what we do at Get Me Links. Talk to us about your contextual link strategy →

Frequently Asked Questions

Contextual backlinks are links embedded within the body content of a page, surrounded by relevant editorial text. Unlike sidebar, footer, or navigation links, contextual links produce a context2 topical fingerprint that Google uses to verify topical alignment between the linking content and the target page.

Contextual links produce a multi-layered signal: anchor text relevance, surrounding content alignment (context2 hash), page-level topicality, domain focus, and click behavior. Non-contextual links (sidebars, footers) miss most of these layers — particularly the context2 hash — which reduces their ranking impact significantly.

View the linking page and examine where the link is placed. A contextual backlink appears within a body paragraph, surrounded by related editorial text. A non-contextual link appears in a sidebar widget, footer, navigation menu, or other non-content section. In Ahrefs Site Explorer, the “Link context” column shows the text surrounding each backlink.

Quality and relevance matter more than count. Based on our agency data, a page with 10–15 contextual backlinks from topically relevant, authoritative sites (DR 30+) consistently outranks pages with 50+ non-contextual links. Prioritize body-content placements from niche relevant sources over volume.

They provide marginal value: crawl paths, referring domain diversity, and weak entity co-occurrence. But they carry a fraction of the ranking signal of body-content contextual links because they lack the context2 hash, have lower documentSection classification, and generate near-zero click engagement.


References:

  1. Google. (2024). Content Warehouse API Documentation (Leaked). Attributes cited: context2, documentSection, normalizedTopicality, documentTopicality, pagerankWeight, anchorMismatch.
  2. SparkToro & Fishkin, R. (2024). An Anonymous Source Shared Thousands of Leaked Google Search API Documents with Me. SparkToro Blog.
  3. Google. (2014). Patent US9165040B1: Ranking search results based on entity metrics (siteFocusScore). USPTO.
  4. Google. (2010). Patent US7716225B1: Reasonable Surfer model — ranking documents based on user behavior. USPTO.
  5. Google. (2009). Patent US7536408B2: Phrase-based indexing and information retrieval. USPTO.
  6. Google. (2011). Patent US8001127B1: Boilerplate detection using distant supervision. USPTO.
  7. Google. (2017). Patent US9953049B1: NavBoost — modifying search result ranking based on implicit user feedback. USPTO.
  8. Google. (2024). Patent US20240289407A1: AI Overview source selection and scoring. USPTO.
  9. Wikipedia. (2025). Backlink.