Felo API PlatformFelo API Platform

데이터 API / DataForSEO / On Page

OnPage API Content Parsing

Parses one crawled url into structured content, with markdown_view for a markdown rendering. 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 standalone twin post_dataforseo_on_page_content_parsing_live parses any URL without a crawl - prefer that unless the page is already part of one.

파라미터

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

요청 본문

  • urlstring필수

    URL of the content to parse required field URL of the page to parse example: https://dataforseo.com/blog/a-versatile-alternative-to-google-trends-exploring-the-power-of-dataforseo-trends-api

  • idstring필수

    ID of the task required field you can get this ID in the response of the Task POST endpoint note: the enable_content_parsing parameter in the POST request must be set to true example: "07131248-1535-0216-1000-17384017ad04"

  • markdown_viewboolean선택

    return page content as markdown optional field if set to true, the markdown-formatted content of the page will be returned in the page_as_markdown field of the response; default value: false

요청 예시

curl -X POST "https://openapi.felo.ai/v1/beta/dataforseo/on_page/content_parsing" \
  -H "Authorization: Bearer $FELO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "<string>",
  "id": "<string>",
  "markdown_view": false
}'

응답

응답 필드

  • 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

  • items_countinteger선택

    number of items in the results array

  • itemsstring[]선택

    items array

  • typestring선택

    type of the returned item = ‘сontent_parsing_element’

  • fetch_timestring선택

    date and time when the content was fethced example: "2022-11-01 10:02:52 +00:00"

  • status_codeinteger선택

    status code of the page

  • page_contentobject선택

    parsed content of the page

  • headerobject선택

    parsed content of the header

  • primary_contentstring[]선택

    primary content on the page you can find more information about content priority calculation in this help center article

  • textstring선택

    content text

  • urlstring선택

    page URL displayed in case the text is a link anchor

  • urlsstring[]선택

    contains other URLs and anchors found in the content element

  • urlstring선택

    other URL found in the content element

  • anchor_textstring선택

    text of the URL’s anchor

  • secondary_contentstring[]선택

    secondary content on the page you can find more information about content priority calculation in this help center article

  • textstring선택

    content text

  • urlstring선택

    page URL displayed in case the text is a link anchor

  • urlsstring[]선택

    contains other URLs and anchors found in the content element

  • urlstring선택

    other URL found in the content element

  • anchor_textstring선택

    text of the URL’s anchor

  • table_contentstring[]선택

    content of the table on the page

  • headerstring[]선택

    content of the header of the table

  • row_cellsstring[]선택

    content of the row cells of the header

  • textstring선택

    text in the row cell

  • urlsstring[]선택

    contains other URLs and anchors found in the cell

  • urlstring선택

    URL found in the cell

  • anchor_textstring선택

    text of the URL’s anchor

  • is_headerboolean선택

    indicates if the text belongs to the header

  • bodystring[]선택

    content of the body of the table

  • row_cellsstring[]선택

    content of the row cells of the header

  • textstring선택

    text in the row cell

  • urlsstring[]선택

    contains other URLs and anchors found in the cell

  • urlstring선택

    URL found in the cell

  • anchor_textstring선택

    text of the URL’s anchor

  • is_headerboolean선택

    indicates if the text belongs to the header

  • footerstring[]선택

    content of the footer of the table

  • row_cellsstring[]선택

    content of the row cells of the header

  • textstring선택

    text in the row cell

  • urlsstring[]선택

    contains other URLs and anchors found in the cell

  • urlstring선택

    URL found in the cell

  • anchor_textstring선택

    text of the URL’s anchor

  • is_headerboolean선택

    indicates if the text belongs to the header

  • footerobject선택

    parsed content of the footer

  • main_topicstring[]선택

    main topic on the page you can find more information about topic priority calculation in this help center article

  • h_titlestring선택

    meta title

  • main_titlestring선택

    main title of the block

  • authorstring선택

    content author name

  • languagestring선택

    content language

  • levelstring선택

    HTML level

  • primary_contentstring[]선택

    primary content on the page you can find more information about content priority calculation in this help center article

  • textstring선택

    content text

  • urlstring선택

    page URL displayed in case the text is a link anchor

  • urlsstring[]선택

    contains other URLs and anchors found in the content element

  • urlstring선택

    other URL found in the content element

  • anchor_textstring선택

    text of the URL’s anchor

  • secondary_contentstring[]선택

    secondary content on the page you can find more information about content priority calculation in this help center article

  • secondary_topicstring[]선택

    secondary topic on the page you can find more information about topic priority calculation in this help center article

  • h_titlestring선택

    meta title

  • main_titlestring선택

    main title of the block

  • authorstring선택

    content author name

  • languagestring선택

    content language

  • levelstring선택

    HTML level

  • primary_contentstring[]선택

    primary content on the page you can find more information about content priority calculation in this help center article

  • textstring선택

    content text

  • urlstring선택

    page URL displayed in case the text is a link anchor

  • urlsstring[]선택

    contains other URLs and anchors found in the content element

  • urlstring선택

    other URL found in the content element

  • anchor_textstring선택

    text of the URL’s anchor

  • secondary_contentstring[]선택

    secondary content on the page you can find more information about content priority calculation in this help center article

  • ratingsstring[]선택

    contains objects with rating information for the products displayed on the page

  • namestring선택

    rating name Note: this field is not used in this particular object, and its value is always set to null

  • rating_valueinteger선택

    the value of the rating

  • max_rating_valueinteger선택

    maximum value for the rating

  • rating_countinteger선택

    the amount of feedback

  • relative_ratingnumber선택

    relative rating can take values from 0 to 1

  • offersstring[]선택

    array of products displayed on the page contains objects with information on products displayed on the page

  • namestring선택

    name of the product

  • priceinteger선택

    price of the product

  • price_currencystring선택

    price currency

  • price_valid_untilinteger선택

    displays the date and time until which the price is valid in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00” example: "2022-11-01 10:02:52 +00:00"

  • commentsstring[]선택

    array of comments displayed on the page contains objects with information on comments related to displayed products

  • ratingobject선택

    product’s rating contains information about the rating a customer has given to the product

  • namestring선택

    rating name Note: this field is not used in this particular object, and its value is always null

  • rating_valueinteger선택

    the value of the rating

  • max_rating_valueinteger선택

    maximum value for the rating

  • rating_countinteger선택

    the amount of feedback Note: this field is not used in this particular object, and its value is always null

  • relative ratingnumber선택

    relative rating can take values from 0 to 1

  • titlestring선택

    title of the customer’s comment

  • publish_datestring선택

    date when the comment was published

  • authorstring선택

    author of the comment

  • primary_contentstring[]선택

    primary content on the page you can find more information about content priority calculation in this help center article

  • textstring선택

    text of the comment

  • urlstring선택

    displayed in case the text is a link anchor

  • urlsstring[]선택

    contains other URLs and anchors found in the content element

  • contactsobject선택

    contact information contains contact information displayed on the page

  • telephonesstring[]선택

    array of telephone numbers

  • emailsstring[]선택

    array of emails

  • page_as_markdownstring선택

    page content in the markdown format page content in the text-to-HTML markdown format specify markdown_view as true in the request to return the value