Felo API PlatformFelo API Platform
All DataForSEO endpoints
v0.2.0-beta
OpenAPI 3.1.0

Keyword Density

Server:https://openapi.felo.ai
Client Libraries

DataForSEO

​

SEO, search-engine results, keyword research, backlinks and AI visibility data.

Keyword Density

​

Word and phrase frequency across a crawl, with keyword_length choosing n-gram size. Returns total_items_count, items_count and items. Reads a finished crawl, so it needs the id from post_dataforseo_on_page_submit and returns crawl_progress plus a crawl_status of max_crawl_pages, pages_in_queue and pages_crawled - check those before trusting a small result, because a crawl still running simply has less to report. This describes what a site says about itself; for what the web says about it use post_dataforseo_backlinks_anchors_live, and for what people search use post_dataforseo_keywords_gads_search_volume_live. 💰 Free upstream: querying a finished crawl costs nothing, only the crawl itself does.

Pricing reference

  • Metering: Reported response cost.
  • Reference request estimate: USD 0.012.
  • Reference customer multiplier: 1.0. Do not apply it again to a settled customer amount.

Reference metadata only, not an account quote, a guaranteed price or a spending cap. Resource credits are not Felo credits. Final charges follow Felo billing records.

Body
application/json
  • Type: array (object | null)[]
    • filters
      Type: array (object | null)[] | null

      array of results filtering parameters
      optional field
      you can add several filters at once (8 filters maximum)
      you should set a logical operator and, or between the conditions
      the following operators are supported:
      regex, not_regex, =, <>, in, not_in, like, not_like
      you can use the % operator with like and not_like to match any string of zero or more characters
      example:
      ["keyword","=","%seo%"]

      [["keyword","=","%seo%"],
      "and",
      ["frequency","<","6"]]

      [["keyword","not_like","%seo%"],
      "and",
      [["frequency",">","6"],"or",["density",">","0.02"]]]

      The full list of possible filters is available by this link.

      Empty object
    • id
      Type: string

      ID of the task
      required field
      you can get this ID in the response of the Task POST endpoint
      example:
      "07131248-1535-0216-1000-17384017ad04"

    • keyword_length
      Type: integer

      number of words for a keyword
      required field
      possible values:
      1, 2, 3, 4, 5

    • limit
      Type: integer | null

      the maximum number of returned keywords
      optional field
      default value: 100
      maximum value: 1000

    • order_by
      Type: array string[] | null

      results sorting rules
      optional field
      you can use the same values as in the filters array to sort the results
      possible sorting types:
      asc - results will be sorted in the ascending order
      desc - results will be sorted in the descending order
      you should use a comma to set up a sorting type
      example:
      ["frequency,desc"]
      note that you can set no more than three sorting rules in a single request
      you should use a comma to separate several sorting rules
      example:
      ["keyword,asc","frequency,desc"]

    • tag
      Type: string | null

      user-defined task identifier
      optional field
      the character limit is 255
      you can use this parameter to identify the task and match it with the result
      you will find the specified tag value in the data object of the response

    • url
      Type: string | null

      page URL
      optional field
      if you do not specify a page here, the results will be provided for the whole website
      if you use this field, the API response will contain only keywords from the specified page
      a page should be specified with absolute URL (including http:// or https://)

Responses
  • 200
    Type: object | null · Response36Afe1097B20_OnPageKeywordDensityResponseInfo
    • cost
      Type: number | null Format: double

      total tasks cost, USD

    • status_code
      Type: integer | null

      general status code you can find the full list of the response codes here

    • status_message
      Type: string | null

      general informational message you can find the full list of general informational messages here

    • tasks
      Type: array (object | null)[] | null

      array of tasks

      • Type: object | null · Response36Afe1097B20_OnPageKeywordDensityTaskInfo
        • cost
          Type: number | null Format: double

          total tasks cost, USD

        • data
          Type: object | null

          contains the same parameters that you specified in the POST request

          • propertyName
            Type: object | null
        • id
          Type: string | null

          task identifier unique task identifier in our system in the UUID format

        • path
          Type: array (string | null)[] | null

          URL path

        • result
          Type: array (object | null)[] | null

          array of results

          • crawl_progress
            Type: string | null

            status of the crawling session
            possible values: in_progress, finished

          • crawl_status
            Type: object | null · Response36Afe1097B20_CrawlStatusInfo

            details of the crawling session

            • max_crawl_pages
              Type: integer | null Format: int64

              maximum number of pages to crawl indicates the max_crawl_pages limit you specified when setting a task

            • pages_crawled
              Type: integer | null Format: int64

              number of crawled pages

            • pages_in_queue
              Type: integer | null Format: int64

              number of pages that are currently in the crawling queue

          • items
            Type: array (object | null)[] | null

            items array

            • density
              Type: number | null

              keyword density
              calculated as a ratio of frequency to the total count of keywords with the set keyword_length on the web page or website

            • frequency
              Type: integer | null

              keyword frequency
              number of times the keyword appears on the website (or webpage if you specified a url)

            • keyword
              Type: string | null

              returned keyword

          • items_count
            Type: integer | null Format: int64

            number of items in the results array

          • total_items_count
            Type: integer | null Format: int64

            total number of relevant items
            total number of keywords on the specified website or web page matching the set keyword_length and filters

        • result_count
          Type: integer | null Format: int64

          number of elements in the result array

        • status_code
          Type: integer | null

          status code of the task generated by DataForSEO, can be within the following range: 10000-60000 you can find the full list of the response codes here

        • status_message
          Type: string | null

          informational message of the task you can find the full list of general informational messages here

        • time
          Type: string | null

          execution time, seconds

    • tasks_count
      Type: integer | null Format: int64

      the number of tasks in the tasks array

    • tasks_error
      Type: integer | null Format: int64

      the number of tasks in the tasks array returned with an error

    • time
      Type: string | null

      total execution time, seconds

    • version
      Type: string | null

      the current version of the API

    application/json
  • 400

    The request could not be processed. Check the request parameters.

  • 401

    A valid Felo API key is required.

  • 402

    The request cannot proceed because a billing requirement is not met.

  • 403

    The account is not permitted to perform this operation.

  • 429

    A request or spending limit has been reached.

  • 502

    The service could not complete the request.

  • 503

    The API or billing service is temporarily unavailable.

  • 504

    The service timed out while processing the request.

  • default

    Error response; upstream passthrough responses may use provider formats

    application/json
Request Example for post/v1/beta/dataforseo/on_page/keyword_density
curl https://openapi.felo.ai/v1/beta/dataforseo/on_page/keyword_density \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '[
  {
    "id": "09101923-1535-0216-0000-2389a8854b70",
    "url": "https://dataforseo.com/",
    "keyword_length": 2,
    "filters": [
      "frequency",
      ">",
      5
    ]
  }
]'
{
  "version": null,
  "status_code": null,
  "status_message": null,
  "time": null,
  "cost": null,
  "tasks_count": null,
  "tasks_error": null,
  "tasks": [
    {
      "id": null,
      "status_code": null,
      "status_message": null,
      "time": null,
      "cost": null,
      "result_count": null,
      "path": [
        null
      ],
      "data": null,
      "result": [
        {
          "crawl_progress": null,
          "crawl_status": {
            "max_crawl_pages": null,
            "pages_in_queue": null,
            "pages_crawled": null
          },
          "total_items_count": null,
          "items_count": null,
          "items": [
            {
              "keyword": null,
              "frequency": null,
              "density": null
            }
          ]
        }
      ]
    }
  ]
}
Keyword Density

Need help?