View as Markdown
DataForSEO icon

DataForSEO ACTION

Create OnPage Task

Create an OnPage task to retrieve detailed information on how well your pages are optimized for search. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's DataForSEO account once, then configure and run Create OnPage Task from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "dataforseo-create-onpage-task",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    dataforseo: { authProvisionId: "apn_xxxxxxx" },
    target: "Target",
    maxCrawlPages: 10,
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Create OnPage Task inputs
Property Type Description
target Target string
The domain name or the url of the target website or page. The domain should be specified without https:// and www.
Required
maxCrawlPages Max Crawl Pages integer
The number of pages to crawl on the specified domain
Required
startUrl Start URL string
The URL to start crawling from
Optional
loadResources Load Resources boolean
Set to true if you want to load image, stylesheets, scripts, and broken resources on the page
Optional
enableJavascript Enable Javascript boolean
Set to true if you want to load the scripts available on a page
Optional
tag Tag string
You can use this parameter to identify the task and match it with the result.
Optional
pingbackUrl Pingback URL string
When a task is completed you will be notified by a GET request sent to the URL you have specified
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
dataforseo-create-onpage-task
Version
0.0.1
App
DataForSEO
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes