Data API / DataForSEO / On Page
OnPage API Microdata
Validates the structured data on one crawled url. 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. ⚠️ The page must have been part of the crawl: asking for a URL that was not returns status_code 40406, Requested page was not submitted for crawling, inside an HTTP 200. Widen max_crawl_pages or set start_url on the submit call if the page you want is missing. 💰 Free upstream: querying a finished crawl costs nothing, only the crawl itself does.
Parameters
No path, query, or header parameters.
Request body
idstringRequiredID of the task required field you can get this ID in the response of the Task POST endpoint example: "07131248-1535-0216-1000-17384017ad04"
urlstringRequiredresource URL required field you can get this URL in the response of the Pages endpoint example: https://dataforseo.com/apis
tagstringOptionaluser-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
Example request
curl -X POST "https://openapi.felo.ai/v1/beta/dataforseo/on_page/microdata" \
-H "Authorization: Bearer $FELO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "<string>",
"url": "<string>",
"tag": "<string>"
}'Response
Response fields
versionstringOptionalthe current version of the API
status_codeintegerOptionalgeneral 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_messagestringOptionalgeneral informational message you can find the full list of general informational messages here
timestringOptionalexecution time, seconds
costnumberOptionaltotal tasks cost, USD
tasks_countintegerOptionalthe number of tasks in the tasks array
tasks_errorintegerOptionalthe number of tasks in the tasks array returned with an error
tasksstring[]Optionalarray of tasks
idstringOptionaltask identifier unique task identifier in our system in the UUID format
status_codeintegerOptionalstatus 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_messagestringOptionalinformational message of the task you can find the full list of general informational messages here
timestringOptionalexecution time, seconds
costnumberOptionalcost of the task, USD
result_countintegerOptionalnumber of elements in the result array
pathstring[]OptionalURL path
dataobjectOptionalcontains the same parameters that you specified in the POST request
resultstring[]Optionalarray of results
crawl_progressstringOptionalstatus of the crawling session possible values: in_progress, finished
crawl_statusobjectOptionaldetails of the crawling session
max_crawl_pagesintegerOptionalmaximum number of pages to crawl indicates the max_crawl_pages limit you specified when setting a task
pages_in_queueintegerOptionalnumber of pages that are currently in the crawling queue
pages_crawledintegerOptionalnumber of crawled pages
test_summaryobjectOptionalmicrodata validation test results
fatalintegerOptionalnumber of fatal microdata errors
errorintegerOptionalnumber of serious microdata errors
warningintegerOptionalnumber of microdata warnings
infointegerOptionalnumber of microdata information flags
items_countintegerOptionalnumber of items in the results array
itemsstring[]Optionalitems array
typestringOptionaltype of the item = ‘json_ld’
inspection_infoobjectOptionalinformation related to microdata validation
typesstring[]Optionalparent microdata types for a full list of available types, please visit schema.org
fieldsstring[]Optionalmicrodata fields an array of objects containing data fields related to the certain microdata type
namestringOptionalfield name name of the data field
typesstring[]Optionallist of microdata sub-types
valuestring[]Optionalmicrodata value microdata value specified on a target web page
test_resultsobjectOptionalmicrodata validation test results sub-type microdata test results that contain detected errors and related messages
levelstringOptionallevel of microdata error can take the following values: fatal, error, warning, info
messagestringOptionalmessage associated with an error message providing the details of the detected error
fieldsstring[]Optionalmicrodata fields an array of objects containing data fields related to the certain microdata type