About the API:
Keyword density is a foundational concept of search engine optimization (SEO). It’s important to understand how keyword density works, since it can have a direct impact on your site content’s visibility in search engine results pages (SERPs) and on the costs of your online marketing campaigns.
Keyword density refers to the number of times a keyword appears on a given webpage or within a piece of content as a ratio or percentage of the overall word count. This is also sometimes referred to as keyword frequency, or the frequency with which a specific keyword appears on a webpage.
This API will receive a text and it will deliver, as a JSON, the number of times that that word appears. Also, it will deliver a percentage of keyword density in the text.
This API is ideal to check how many occurrences are in a text on a webpage. This is great to improve your SEO. If you repeat several times a certain word, the SEO rank of that text will drop down.
This is a good tool to check the density and the number of times that a keyword appears, so you can have a better SEO rank for your page or texts.
Besides API call limitations per month, there is a limitation of 1 request per second.
Submit a text and immediately get a list of relevant words with a number of occurrences.
Get Ocurrences - 端点功能
| 对象 | 描述 |
|---|---|
请求体 |
[必需] Json |
{"status":"ok","text_words":"30","unique_keywords":"27","density":[{"the":4,"augustus":1,"garrisoned":1,"sixteen":1,"only":1,"served":1,"praetorians":1,"legionaries":1,"than":1,"paid":1,"better":1,"italy":1,"in":1,"which":1,"were":1,"also":1,"peace":1,"public":1,"maintain":1,"to":1,"ostensibly":1,"cohorts":1,"nine":1,"guard":1,"praetorian":1,"created":1,"years":1}]}
curl --location --request POST 'https://zylalabs.com/api/831/keyword+occurrences+and+density+checker+api/592/get+ocurrences' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{
"text": "Augustus also created the Praetorian Guard: nine cohorts, ostensibly to maintain the public peace, which were garrisoned in Italy. Better paid than the legionaries, the Praetorians served only sixteen years"
}'
Submit a text and immediately get a list of relevant words with density (percentage).
Get Density - 端点功能
| 对象 | 描述 |
|---|---|
请求体 |
[必需] Json |
{"status":"ok","text_words":"42","unique_keywords":"36","density":[{"roman":"7","the":"7","empire":"5","law":"5","codes":"2","well-established":"2","had":"2","already":"2","eastern":"2","impose":"2","and":"2","juridical":"2","parts":"2","most":"2","provinces":"2","in":"2","uniformly":"2","of":"2","functionaries":"2","to":"2","citizens":"2","held":"2","original":"2","jurisdiction":"2","over":"2","cases":"2","involving":"2","throughout":"2","courts":"2","but":"2","there":"2","were":"2","too":"2","few":"2","judicial":"2","procedures":"2"}]}
curl --location --request POST 'https://zylalabs.com/api/831/keyword+occurrences+and+density+checker+api/593/get+density' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{
"text": "Roman courts held original jurisdiction over cases involving Roman citizens throughout the empire, but there were too few judicial functionaries to impose Roman law uniformly in the provinces. Most parts of the Eastern Empire already had well-established law codes and juridical procedures"
}'
| 标头 | 描述 |
|---|---|
授权
|
[必需] 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。 |
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
The "Get Occurrences" endpoint returns the total number of words, unique keywords, and a list of keyword occurrences. The "Get Density" endpoint provides similar data but includes the density percentage for each keyword, allowing users to assess keyword relevance in their text.
Key fields include "status" (indicating success), "text_words" (total word count), "unique_keywords" (count of distinct keywords), and "density" (an array showing keyword occurrences or density percentages).
The response data is structured in JSON format. It includes a status message, total word count, unique keyword count, and a density array, where each entry corresponds to a keyword and its respective occurrence or density.
The primary parameter for both endpoints is the text input, which should be a string containing the content to analyze. Users can submit any text they wish to evaluate for keyword occurrences or density.
Typical use cases include optimizing web content for SEO by analyzing keyword frequency and density, ensuring balanced keyword usage to avoid penalties, and improving content visibility in search engine results.
Users can analyze the "density" data to adjust keyword usage in their content. For example, if a keyword's density is too high, they may reduce its occurrences to enhance SEO performance and avoid keyword stuffing.
Data accuracy is maintained through consistent algorithms that count word occurrences and calculate density based on the provided text. The API processes text in real-time, ensuring up-to-date analysis.
If the input text is empty or contains no keywords, the API will return a response indicating zero occurrences and density. Users should ensure their input text is valid and contains relevant keywords for meaningful analysis.
服务级别:
100%
响应时间:
662ms
服务级别:
100%
响应时间:
735ms
服务级别:
100%
响应时间:
379ms
服务级别:
100%
响应时间:
1,512ms
服务级别:
100%
响应时间:
2,921ms
服务级别:
100%
响应时间:
2,592ms
服务级别:
100%
响应时间:
1,249ms
服务级别:
100%
响应时间:
0ms
服务级别:
100%
响应时间:
4,635ms
服务级别:
100%
响应时间:
166ms
服务级别:
100%
响应时间:
1,793ms
服务级别:
100%
响应时间:
6,392ms
服务级别:
100%
响应时间:
2,317ms
服务级别:
100%
响应时间:
1,414ms
服务级别:
100%
响应时间:
8,561ms
服务级别:
100%
响应时间:
1,259ms
服务级别:
100%
响应时间:
1,209ms
服务级别:
100%
响应时间:
1,064ms
服务级别:
100%
响应时间:
198ms
服务级别:
100%
响应时间:
1,815ms