<commit_before>---
layout: document_type_layout
title: Document types on GOV.UK
---

The document type describes a page on GOV.UK.

You can [download this data as CSV too](/document-types.csv). In Google Spreadsheets, use the following formula:

```
=importData("https://docs.publishing.service.gov.uk/document-types.csv")
```<commit_msg>Add more detail to viewing information on document types<commit_after>---
layout: document_type_layout
title: Document types on GOV.UK
---

The document type describes a page on GOV.UK.

You can [download this data as CSV too](/document-types.csv) which is generated automatically based on the data in the [govuk_document_types repo][].

To view the current data in Google Spreadsheets, copy the following formula into a new spreadsheet:

```
=importData("https://docs.publishing.service.gov.uk/document-types.csv")
```

Note that this is only a snapshot of the data and isn't kept up to date from the CSV.

## Using Search to find similar data

Use this [search query for document types][] (it's currently missing bits of Whitehall)


[govuk_document_types repo]: https://github.com/alphagov/govuk_document_types
[search query for document types]: https://www.gov.uk/api/search.json?count=0&facet_content_store_document_type=115,examples:1,example_scope:query,example_fields:rendering_app
{'fraction_non_alphanumeric': 0.10173323285606632, 'fraction_numerical': 0.0037678975131876413, 'mean_word_length': 5.176744186046512, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1863136', 'n_tokens_mistral': 398, 'n_tokens_neox': 381, 'n_words': 140}