TF-IDF term gap vs competitor pages API
Find stemmed terms common among competitor pages but missing or under-used in a draft, ranked by TF-IDF gap.
The TF-IDF term gap vs competitor pages operation is part of the Content Keyword Analytics TF-IDF Readability API on BRAINIAC.software. Find stemmed terms common among competitor pages but missing or under-used in a draft, ranked by TF-IDF gap. It is exposed as POST /api/v1/seo-content/tfidf-term-gap and priced at $0.04 USDC on Base. Payment uses the x402 exact scheme: an unpaid call returns HTTP 402 with payment requirements; after paying the exact USDC amount, retry the same request with a payment-signature header and Idempotency-Key. No account and no API key are required. Data sources for this product: Caller-supplied page texts, keywords and rank snapshots processed locally stopwords-iso English list (MIT) and Snowball English stemming (ISC / BSD-3-Clause) Liberation Sans Regular 2.1.5 advance widths (OFL-1.1) for snippet pixel estimates Limitations: Pure computation on caller input: no SERP scrape, keyword database or LLM is called at request time. English stopwords and Porter2 stemming only in v1; other languages return unsupported_language. Outputs are lookups or prechecks for human review. They are not legal, customs, tax, medical, or identity determinations. Outputs are compliance prechecks, drafts, or data lookups for human review. They are not official determinations, legal advice, identity confirmation, or certified filings. Related operations in this group include Content brief from SERP page texts, English readability metrics, Near-duplicate page clustering, Internal link suggestions. Open the group documentation for the full request schema, field notes, and response examples before integrating.
/api/v1/seo-content/tfidf-term-gapExample request
curl -i -X POST "https://www.brainiac.software/api/v1/seo-content/tfidf-term-gap" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"draft": "Our solar panel cost guide explains prices.",
"competitors": [
"Solar panel installation cost depends on roof size. Solar panel grants reduce the installation cost.",
"Solar panel cost includes battery storage. Grants are available for solar panel battery storage.",
"How much does solar panel installation cost? Installation cost varies by roof."
],
"language": "en",
"minDocFrequency": 2,
"limit": 20
}
JSONAn unpaid probe returns HTTP 402 with x402 payment requirements. After paying the exact USDC amount on Base, retry the identical request with a payment-signature header.
FAQ
- Do I need an API key? No. Pay the listed USDC amount with x402.
- What network? Base (eip155:8453), USDC.
- Is this an official determination? No. Results are for human review against the cited sources.
Related operations
- Content brief from SERP page texts — $0.04 USDC
- English readability metrics — $0.02 USDC
- Near-duplicate page clustering — $0.03 USDC
- Internal link suggestions — $0.04 USDC
Related APIs
Content Keyword Analytics TF-IDF Readability APIFull docsHow it works