# Sitemaps

<br />

For a list of [methods](https://developers.google.com/webmaster-tools/v1/sitemaps#methods) for this resource, see the end of this page.

## Resource representations

### Sitemap

Contains detailed information about a specific URL submitted as a [sitemap](https://support.google.com/webmasters/answer/156184).

```
{
  "path": string,
  "lastSubmitted": datetime,
  "isPending": boolean,
  "isSitemapsIndex": boolean,
  "type": string,
  "lastDownloaded": datetime,
  "warnings": long,
  "errors": long,
  "contents": [
    {
      "type": string,
      "submitted": long,
      "indexed": long
    }
  ]
}
```

| Property name | Value | Description | Notes |
|---|---|---|---|
| `contents[]` | `list` | The various content types in the sitemap. |   |
| `contents[].indexed` | `N/A` | *Deprecated; do not use.* |   |
| `contents[].submitted` | `long` | The number of URLs in the sitemap (of the content type). |   |
| `contents[].type` | `string` | The specific type of content in this sitemap. For example: `web`. <br /> Acceptable values are: - "`androidApp`" - "`image`" - "`iosApp`" - "`mobile`" - "`news`" - "`pattern`" - "`video`" - "`web`" |   |
| `errors` | `long` | Number of errors in the sitemap. These are issues with the sitemap itself that need to be fixed before it can be processed correctly. |   |
| `isPending` | `boolean` | If true, the sitemap has not been processed. |   |
| `isSitemapsIndex` | `boolean` | If true, the sitemap is a collection of sitemaps. |   |
| `lastDownloaded` | `datetime` | Date \& time in which this sitemap was last downloaded. Date format is in RFC 3339 format (yyyy-mm-dd). |   |
| `lastSubmitted` | `datetime` | Date \& time in which this sitemap was submitted. Date format is in RFC 3339 format (yyyy-mm-dd). |   |
| `path` | `string` | The url of the sitemap. |   |
| `type` | `string` | The type of the sitemap. For example: `rssFeed`. <br /> Acceptable values are: - "`atomFeed`" - "`notSitemap`" - "`patternSitemap`" - "`rssFeed`" - "`sitemap`" - "`urlList`" |   |
| `warnings` | `long` | Number of warnings for the sitemap. These are generally non-critical issues with URLs in the sitemaps. |   |

## Methods

[delete](https://developers.google.com/webmaster-tools/v1/sitemaps/delete)
:   Deletes a sitemap from this site.

[get](https://developers.google.com/webmaster-tools/v1/sitemaps/get)
:   Retrieves information about a specific sitemap.

[list](https://developers.google.com/webmaster-tools/v1/sitemaps/list)
:   Lists the [sitemaps-entries](https://developers.google.com/webmaster-tools/v1/sitemaps) submitted for this site, or included in the sitemap index file (if `sitemapIndex` is specified in the request).

[submit](https://developers.google.com/webmaster-tools/v1/sitemaps/submit)
:   Submits a sitemap for a site.