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.
{"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"
}'
{"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"
}'
| Header | Description |
|---|---|
Authorization
|
[Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed. |
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
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.
To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
Service Level:
100%
Response Time:
662ms
Service Level:
100%
Response Time:
735ms
Service Level:
100%
Response Time:
379ms
Service Level:
100%
Response Time:
1,512ms
Service Level:
100%
Response Time:
2,921ms
Service Level:
100%
Response Time:
2,592ms
Service Level:
100%
Response Time:
1,249ms
Service Level:
100%
Response Time:
0ms
Service Level:
100%
Response Time:
325ms
Service Level:
100%
Response Time:
4,635ms