# Webmaster Tools API . urlcrawlerrorssamples

## Instance Methods

Retrieves details about crawl errors for a site's sample URL.

Lists a site's sample URLs for the specified crawl error category and platform.

Marks the provided site's sample URL as fixed, and removes it from the samples list.

### Method Details

`get(siteUrl, url, category, platform)`

    Retrieves details about crawl errors for a site's sample URL.

    Args:
      siteUrl: string, The site's URL, including protocol, for example 'http://www.example.com/' (required)
      url: string, The relative path (without the site) of the sample URL; must be one of the URLs returned by list (required)
      category: string, The crawl error category, for example 'authPermissions' (required)
        Allowed values
          authPermissions -
          manyToOneRedirect -
          notFollowed -
          notFound -
          other -
          roboted -
          serverError -
          soft404 -
      platform: string, The user agent type (platform) that made the request, for example 'web' (required)
        Allowed values
          mobile -
          smartphoneOnly -
          web -

    Returns:
      An object of the form:

        {
        "urlDetails": { # Additional details about the URL, set only when calling get(). # Additional details about the URL, set only when calling get().
          "containingSitemaps": [ # List of sitemaps pointing at this URL.
            "A String",
          ],
          "linkedFromUrls": [ # A sample set of URLs linking to this URL.
            "A String",
          ],
        },
        "first_detected": "A String", # The time the error was first detected, in RFC 3339 format.
        "pageUrl": "A String", # The URL of an error, relative to the site.
        "responseCode": 42, # The HTTP response code, if any.
        "last_crawled": "A String", # The time when the URL was last crawled, in RFC 3339 format.
      }

`list(siteUrl, category, platform)`

    Lists a site's sample URLs for the specified crawl error category and platform.

    Args:
      siteUrl: string, The site's URL, including protocol, for example 'http://www.example.com/' (required)
      category: string, The crawl error category, for example 'authPermissions' (required)
        Allowed values
          authPermissions -
          manyToOneRedirect -
          notFollowed -
          notFound -
          other -
          roboted -
          serverError -
          soft404 -
      platform: string, The user agent type (platform) that made the request, for example 'web' (required)
        Allowed values
          mobile -
          smartphoneOnly -
          web -

    Returns:
      An object of the form:

        { # List of crawl error samples.
        "urlCrawlErrorSample": [ # Information about the sample URL and its crawl error.
          {
            "urlDetails": { # Additional details about the URL, set only when calling get(). # Additional details about the URL, set only when calling get().
              "containingSitemaps": [ # List of sitemaps pointing at this URL.
                "A String",
              ],
              "linkedFromUrls": [ # A sample set of URLs linking to this URL.
                "A String",
              ],
            },
            "first_detected": "A String", # The time the error was first detected, in RFC 3339 format.
            "pageUrl": "A String", # The URL of an error, relative to the site.
            "responseCode": 42, # The HTTP response code, if any.
            "last_crawled": "A String", # The time when the URL was last crawled, in RFC 3339 format.
          },
        ],
      }

`markAsFixed(siteUrl, url, category, platform)`

    Marks the provided site's sample URL as fixed, and removes it from the samples list.

    Args:
      siteUrl: string, The site's URL, including protocol, for example 'http://www.example.com/' (required)
      url: string, The relative path (without the site) of the sample URL; must be one of the URLs returned by list (required)
      category: string, The crawl error category, for example 'authPermissions' (required)
        Allowed values
          authPermissions -
          manyToOneRedirect -
          notFollowed -
          notFound -
          other -
          roboted -
          serverError -
          soft404 -
      platform: string, The user agent type (platform) that made the request, for example 'web' (required)
        Allowed values
          mobile -
          smartphoneOnly -
          web -