DataForSeo v0.3.3 DataForSeo.API.Serp View Source

Provides SERP API interfaces.

Link to this section Summary

Functions

Gets result for a single task. The fetched tasks are then removed from completed list. So be sure to save and process them.

Creates a task for each keyword.

Gets the list of completed tasks ids.

Link to this section Functions

Link to this function

task_get(task_id, opts \\ [])

View Source

Gets result for a single task. The fetched tasks are then removed from completed list. So be sure to save and process them.

Examples

DataForSeo.API.Serp.task_get("test-task-id")
DataForSeo.API.Serp.task_get("test-task-id", parse: false)
Link to this function

task_post(keywords_data, params \\ [])

View Source

Creates a task for each keyword.

Options

Keyword, or list of keywords, or a map with the keyword => tag relation. You can use tags later to find your result in the completed tasks. Also additional parameters can be passed as a keyword list: https://docs.dataforseo.com/v3/serp/google/organic/task_post/

Examples

DataForSeo.API.Serp.task_post("Schrauben")
DataForSeo.API.Serp.task_post(["Schrauben", "Blumen"])
DataForSeo.API.Serp.task_post(%{"Schrauben" => "123987", "Blumen" => "789231"})
DataForSeo.API.Serp.task_post(%{"Schrauben" => "123987", "Blumen" => "789231"},  language_code: "de-DE", location_name: "20537,Hamburg,Germany", se_domain: "google.de")

Gets the list of completed tasks ids.

Examples

DataForSeo.API.Serp.tasks_ready()