{"uid":"cap_OW9QkRIowaCSVVUWX9eh3","slug":"text-analysis-tools-keyword-extraction-3e796dc8","name":"Text Analysis Tools – Keyword Extraction","description":"Top keywords and two-word phrases in an English text by frequency after removing stopwords, with counts and share.","url":"https://text-metrics.x402tookit.com/keyword-extract?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["text"],"properties":{"n":{"type":"integer","description":"How many keywords, 1 to 25, default 10"},"text":{"type":"string","description":"English text, up to 3000 characters"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"source":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"keywords":{"type":["array","null"],"items":{"type":"object","properties":{"word":{"type":["null","string"]},"count":{"type":["null","number"]},"sharePct":{"type":["null","number"]}}}},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"totalWords":{"type":["null","number"]},"contentWords":{"type":["null","number"]},"repeatedPhrases":{"type":["array","null"],"items":{"type":"object","properties":{"count":{"type":["null","number"]},"phrase":{"type":["null","string"]}}}},"uniqueContentWords":{"type":["null","number"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm__2PRRYEIEU3a3tNGLEvjO","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts the top N keywords and two-word phrases from English text by frequency, returning counts and percentage share after removing stopwords.","exampleAgentPrompt":"Can you pull the top 10 keywords and repeated two-word phrases from this article text, with how often each appears and its share of content words? Here's the text: 'Artificial intelligence is transforming healthcare by enabling faster diagnosis, reducing costs, and improving patient outcomes across hospitals worldwide.'","exampleUseCases":[{"title":"SEO keyword audit for blog post","prompt":"I just wrote a 500-word blog post about sustainable fashion — can you extract the top 15 keywords and bigrams from it so I can see what terms I'm actually emphasizing, with their frequency and share?"},{"title":"Topic fingerprinting for news article","prompt":"Here's a news article about the Federal Reserve's rate decision. Pull the top 10 keywords from it so I can tag it with the right topics for my content database."},{"title":"Detecting repetitive phrasing in marketing copy","prompt":"Can you check this product description for overused words and repeated two-word phrases? I want to see the top 10 most frequent terms with their counts so I know what to vary."}],"resultDescription":"Returns a list of the top N keywords (single words, stopwords removed) each with their raw occurrence count and share of content words as a percentage, plus a list of repeated two-word phrases with counts. Also includes total word count, content word count, and unique content word count.","failureModes":["Text exceeds 3000 character limit — request is rejected or truncated","n parameter outside 1–25 range — may return error or default to 10","Non-English text submitted — stopword removal may be ineffective, results less meaningful","Empty or whitespace-only text — returns empty keyword list","Payment failure (x402) — endpoint returns 402 and no results"],"whenToPreferThis":"Choose this endpoint when you need fast, lightweight keyword frequency analysis on English text without requiring an ML model or embeddings. It is ideal for SEO audits, content tagging, topic fingerprinting, or detecting overused terms. Prefer alternatives (e.g., TF-IDF or embedding-based extractors) when you need semantic relevance rather than raw frequency, or when working with non-English text.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T12:30:09.342Z","isFirstParty":false,"canonicalSlug":"text-analysis-tools-keyword-extraction-3e796dc8"}