Felo API PlatformFelo API Platform

資料 API / DataForSEO / Content Analysis

Content Analysis – Category Trends API

The same per-period metrics as post_dataforseo_content_phrase_trends_live, but for an entire product category instead of one keyword. Takes category_code from get_dataforseo_content_categories, with date_from, date_to and date_group setting range and granularity, and returns a date plus total_count, rank, top_domains (each domain and count), sentiment_connotations (anger, happiness, love, sadness, share, fun), connotation_types (positive, negative, neutral), text_categories, page_categories, page_types, countries and languages per period. Use it to see how a market moves rather than a single phrase; swap to the phrase endpoint when you already know the exact wording you care about.

參數

沒有路徑、查詢或請求標頭參數。

請求主體

  • category_codeinteger必填

    target category code required field to obtain a full list of available categories, refer to the Categories endpoint

  • page_typestring[]選填

    target page types optional field use this parameter to filter the dataset by page types possible values: "ecommerce", "news", "blogs", "message-boards", "organization"

  • search_modestring選填

    results grouping type optional field possible grouping types: as_is – returns data on all citations for the target category_code one_per_domain – returns data on one citation of the category_code per domain default value: as_is

  • internal_list_limitinteger選填

    maximum number of elements within internal arrays optional field you can use this field to limit the number of elements within the following arrays: top_domains text_categories page_categories countries languages default value: 1 maximum value: 20

  • date_fromstring必填

    starting date of the time range required field minimum value: 2022-10-31 date format: "yyyy-mm-dd" example: "2019-01-15"

  • date_tostring選填

    ending date of the time range optional field if you don’t specify this field, today’s date will be used by default date format: "yyyy-mm-dd" example: "2019-01-15"

  • date_groupstring選填

    time range which will be used to group the results optional field default value: month possible values: day, week, month

  • initial_dataset_filtersarray選填

    initial dataset filtering parameters optional field initial filtering parameters that apply to fields in the Search endpoint; 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, has, has_not, match, not_match you can use the % operator with like and not_like to match any string of zero or more characters example: ["domain","", "logitech.com"] [["domain","","logitech.com"],"and",["content_info.connotation_types.negative",">",1000]] [["domain","","logitech.com"]], "and", [["content_info.connotation_types.negative",">",1000], "or", ["content_info.text_category","has",10994]]] for more information about filters, please refer to Content Analysis API – Filters learn more about the initial dataset filters in this help center article.

  • rank_scalestring選填

    defines the scale used for calculating and displaying the rank values optional field you can use this parameter to choose whether rank values are presented on a 0–100 or 0–1000 scale possible values: one_hundred — rank values are displayed on a 0–100 scale one_thousand — rank values are displayed on a 0–1000 scale default value: one_thousand learn more about how this parameter works in this Help Center article

  • tagstring選填

    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

請求範例

curl -X POST "https://openapi.felo.ai/v1/beta/dataforseo/content_analysis/category_trends/live" \
  -H "Authorization: Bearer $FELO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "category_code": 0,
  "date_from": "<string>",
  "page_type": [
    "<string>"
  ],
  "search_mode": "<string>",
  "internal_list_limit": 0,
  "date_to": "<string>",
  "date_group": "<string>",
  "initial_dataset_filters": "<string>"
}'

回應

回應欄位

  • versionstring選填

    the current version of the API

  • status_codeinteger選填

    general status code you can find the full list of the response codes here Note: we strongly recommend designing a necessary system for handling related exceptional or error conditions

  • status_messagestring選填

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

  • timestring選填

    execution time, seconds

  • costnumber選填

    total tasks cost, USD

  • tasks_countinteger選填

    the number of tasks in the tasks array

  • tasks_errorinteger選填

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

  • tasksstring[]選填

    array of tasks

  • idstring選填

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

  • status_codeinteger選填

    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_messagestring選填

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

  • timestring選填

    execution time, seconds

  • costnumber選填

    cost of the task, USD

  • result_countinteger選填

    number of elements in the result array

  • pathstring[]選填

    URL path

  • dataobject選填

    contains the same parameters that you specified in the POST request

  • resultstring[]選填

    array of results

  • typestring選填

    type of element = ‘content_analysis_trends’

  • datestring選填

    date for which the data is provided

  • total_countinteger選填

    total number of results in our database relevant to your request

  • rankinteger選填

    rank of all URLs citing the keyword normalized sum of ranks of all URLs citing the target keyword for the given date

  • top_domainsstring[]選填

    top domains citing the target keyword contains objects with top domains citing the target category and citation count per each domain

  • sentiment_connotationsobject選填

    sentiment connotations contains sentiments (emotional reactions) related to the target category citation and the number of citations per each sentiment possible connotations: "anger", "fear", "happiness", "love", "sadness", "share", "neutral", "fun"

  • connotation_typesobject選填

    connotation types contains types of sentiments (sentiment polarity) related to the category citation and citation count per each sentiment type possible connotation types: "positive", "negative", "neutral"

  • text_categoriesstring[]選填

    text categories contains objects with text categories and citation count in each text category to obtain a full list of available categories, refer to the Categories endpoint

  • page_categoriesstring[]選填

    page categories contains objects with page categories and citation count in each page category to obtain a full list of available categories, refer to the Categories endpoint

  • page_typesobject選填

    page types contains page types and citation count per each page type

  • countriesobject選填

    countries contains countries and citation count in each country to obtain a full list of available countries, refer to the Locations endpoint

  • languagesobject選填

    languages contains languages and citation count in each language to obtain a full list of available languages, refer to the Languages endpoint