Felo API PlatformFelo API Platform

데이터 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.

파라미터

경로, 쿼리, 헤더 파라미터가 없습니다.

요청 본문

  • idstring필수

    ID of the task required field you can get this ID in the response of the Task POST endpoint example: "07131248-1535-0216-1000-17384017ad04"

  • urlstring필수

    resource URL required field you can get this URL in the response of the Pages endpoint example: https://dataforseo.com/apis

  • 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/on_page/microdata" \
  -H "Authorization: Bearer $FELO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "id": "<string>",
  "url": "<string>",
  "tag": "<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

  • crawl_progressstring선택

    status of the crawling session possible values: in_progress, finished

  • crawl_statusobject선택

    details of the crawling session

  • max_crawl_pagesinteger선택

    maximum number of pages to crawl indicates the max_crawl_pages limit you specified when setting a task

  • pages_in_queueinteger선택

    number of pages that are currently in the crawling queue

  • pages_crawledinteger선택

    number of crawled pages

  • test_summaryobject선택

    microdata validation test results

  • fatalinteger선택

    number of fatal microdata errors

  • errorinteger선택

    number of serious microdata errors

  • warninginteger선택

    number of microdata warnings

  • infointeger선택

    number of microdata information flags

  • items_countinteger선택

    number of items in the results array

  • itemsstring[]선택

    items array

  • typestring선택

    type of the item = ‘json_ld’

  • inspection_infoobject선택

    information related to microdata validation

  • typesstring[]선택

    parent microdata types for a full list of available types, please visit schema.org

  • fieldsstring[]선택

    microdata fields an array of objects containing data fields related to the certain microdata type

  • namestring선택

    field name name of the data field

  • typesstring[]선택

    list of microdata sub-types

  • valuestring[]선택

    microdata value microdata value specified on a target web page

  • test_resultsobject선택

    microdata validation test results sub-type microdata test results that contain detected errors and related messages

  • levelstring선택

    level of microdata error can take the following values: fatal, error, warning, info

  • messagestring선택

    message associated with an error message providing the details of the detected error

  • fieldsstring[]선택

    microdata fields an array of objects containing data fields related to the certain microdata type