Run in Enrichment Spreadsheet
Use this function as a column step in
deepline enrich.deepline enrich --input leads.csv --output leads.enriched.csv --with 'result=dataforseo_content_analysis_phrase_trends_live:{"keyword":"{{keyword}}","date_from":"{{date_from}}"}' --json
Map payload values to spreadsheet columns with
{{column_name}} placeholders.Input Schema
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
payload.keyword | string | Yes | target keyword required field UTF-8 encoding the keywords will be converted to a lowercase format; Note : to match an exact phrase instead of a stand-alone keyword, use double quotes and backslashes; example: “keyword”: ""tesla palo alto"" learn more about rules and limitations of keyword and keywords fields in DataForSEO APIs in this Help Center article | |
payload.keyword_fields | object | No | target keyword fields and target keywords optional field use this parameter to filter the dataset by keywords that certain fields should contain; fields you can specify: title , main_title , previous_title , snippet you can indicate several fields; Note : to match an exact phrase instead of a stand-alone keyword, use double quotes and backslashes; example: “keyword_fields”: { “snippet”: ""logitech mouse"", “main_title”: “sale” } | |
payload.page_type | array | No | target page types optional field use this parameter to filter the dataset by page types possible values: “ecommerce” , “news” , “blogs” , “message-boards” , “organization” | |
payload.search_mode | string | No | results grouping type optional field possible grouping types: as_is - returns data on all citations for the target keyword one_per_domain - returns data on one citation of the keyword per domain default value: as_is | |
payload.internal_list_limit | integer | No | 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 | |
payload.date_from | string | Yes | starting date of the time range required field date format: “yyyy-mm-dd” example: “2019-01-15” | |
payload.date_to | string | No | 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” | |
payload.date_group | string | No | time range which will be used to group the results optional field default value: month possible values: day , week , month | |
payload.initial_dataset_filters | array | No | 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 | |
payload.rank_scale | string | No | 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 | |
payload.tag | string | No | 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 |
Output Schema
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
result.version | string | Yes | the current version of the API | |
result.status_code | integer | Yes | 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 | |
result.status_message | string | Yes | general informational message you can find the full list of general informational messages here | |
result.time | string | Yes | execution time, seconds | |
result.tasks_count | integer | Yes | the number of tasks in the tasks array | |
result.tasks_error | integer | Yes | the number of tasks in the tasks array returned with an error | |
result.tasks | array | Yes | array of tasks |
Advanced: Direct CLI
Use direct execution for single payload debugging.
deepline tools execute dataforseo_content_analysis_phrase_trends_live --payload '{
"keyword": "string",
"date_from": "string"
}' --json
CLI flags
| Flag | Description |
|---|---|
--json | Print machine-readable output. |
--wait | Wait for terminal provider status when supported. |
--debug | Enable wait mode with additional status/log output. |
--wait-timeout SECONDS | Max seconds to wait in wait mode. |
--poll-interval SECONDS | Polling interval in seconds during wait mode. |
--timeout SECONDS | Request timeout in seconds. |
--connect-timeout SECONDS | Connection timeout in seconds. |
Cost
- Pricing model:
provider_usage(provider usage). - Estimated Deepline credits:
0.01per pricing unit. - Billing mode:
post_deduct.