{"uid":"cap_ItsW_yqK5_-b-lHgh2BBC","slug":"402utils-keyword-extraction-textrank-d7d80909","name":"402utils Keyword Extraction (TextRank)","description":"Extract salient keywords/key-phrases from text via TextRank (word co-occurrence graph + PageRank), merging adjacent high-ranked words into phrases. Pure, deterministic, model-free — extractive, NOT ML/NER or an LLM (the point: reproducible, no inference cost). English + French stopwords removed. Returns keywords[] with normalized scores (top ≈ 1). For content tagging/indexing and pre-RAG. Over 100k tokens is truncated.","url":"https://402utils.com/v1/keywords","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"The text to analyze (max 1 MB UTF-8; larger is truncated)."},"topK":{"type":"integer","default":10,"maximum":50,"minimum":1,"description":"How many key-phrases to return."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_iP_59tcR_5yoJr_vf1wx1","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts top keywords and key-phrases from text using TextRank (word co-occurrence graph + PageRank), returning normalized scores — deterministic, model-free, and reproducible.","exampleAgentPrompt":"Pull the top 15 keywords and key-phrases from this article text using TextRank so I can tag it for our content index: [article text here].","exampleUseCases":null,"resultDescription":"Returns an array of keywords/key-phrases with normalized relevance scores (top score ≈ 1), extracted via TextRank graph ranking. Adjacent high-ranked words are merged into phrases. English and French stopwords are removed. Input over 100k tokens is truncated.","failureModes":["Text too large (>1 MB UTF-8) — input is silently truncated at 100k tokens, potentially losing content","topK out of range (must be 1–50) — API returns validation error","Empty or whitespace-only text — may return empty keywords array","Non-English/non-French text — stopword removal only covers EN/FR, other languages may yield lower-quality results","Payment failure — x402 protocol payment not completed, request rejected"],"whenToPreferThis":"Use this endpoint when you need reproducible, deterministic keyword extraction with no ML inference cost or LLM dependency. Ideal for content tagging, document indexing, and pre-RAG preprocessing where consistency matters more than semantic understanding. Prefer over LLM-based keyword extraction when you need zero variance across runs, lower cost, or auditability. Supports English and French text best.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:51:08.256Z","isFirstParty":false}