get/audit_2/watcher

Method description

Use the method to get Website Watcher tool results.

Method parameters

Parameter Type Description Default
Mandatory
project_id int project ID
check_ids array(int)

Check IDs

(check_ids is mandatory if date1, date2 or check_id1, check_id2 are not specified)
check_id1, check_id2 int
  • check_id1 - ID of the first check in the applied period
  • check_id2 - ID of the last check in the applied period

(check_id1 and check_id2 are mandatory, if check_ids or date1, date2 are not specified)
date1, date2 date

The first and the last date of the applied period

(date1 and date2 are mandatory if check_ids and date1, date2 are not specified)
Additional
watcher_fields set(project_id, check_id, changed, url_id, data, code)

Returned fields

Description of values:

  • project_id - project ID
  • check_id - check ID
  • changed - a flag that indicates if there are changes compared to the previous check
  • url_id - link ID
  • data - watcher_type check results
  • code - page HTTP code
type_range enum(2, 3, 4, 7)

Period of dates

see a description of values here.

7
watcher_type set(title, description, h1, content, code)

Type of check

Description of values:

  • title - page Title
  • description - page Description
  • h1 - page H1 header
  • content - page Content
  • code - page HTTP code
count_ids int Max returned checks (up to 60) 60
show_headers boolean Add report headers to the result 0
show_counts_watcher boolean Add the number of checks to the result 0
show_exists_dates boolean Add dates of checks to the result 0
show_diff enum (0, 1, 2)

Add differences in data to the result

Description of values:

  • 0 - do not add changes
  • 1 - shortened text
  • 2 - full text
0

Посмотреть в API Explorer