# Page type and category classifications

Site Explorer predicts the type and subject category of referring pages. The [All backlinks](../reference/site-explorer/get-all-backlinks) and [Broken backlinks](../reference/site-explorer/get-broken-backlinks) endpoints expose these classifications through `page_type_source` and `page_category_source`.

Both fields are nullable strings. A page can have classifications from more than one top-level group, so each field may contain a comma-separated list of paths:

```text
/Article/Tutorial_or_Guide,/Video/How_to
```

Treat the taxonomies as open sets. Ahrefs may add values as the classification models change.

## Page types

The page type taxonomy is specific to Ahrefs. Each root path is also a valid value on its own.

| Root path                      | Nested paths                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `/Listing`                     | `/Listing/Product`<br />`/Listing/Property`<br />`/Listing/Job`<br />`/Listing/Service`<br />`/Listing/Event`<br />`/Listing/Location`<br />`/Listing/Business`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `/Listing_Collection`          | `/Listing_Collection/Article`<br />`/Listing_Collection/Product`<br />`/Listing_Collection/Property`<br />`/Listing_Collection/Job`<br />`/Listing_Collection/Service`<br />`/Listing_Collection/Event`<br />`/Listing_Collection/Location`<br />`/Listing_Collection/Business`                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `/Article`                     | `/Article/How_to`<br />`/Article/Tutorial_or_Guide`<br />`/Article/Listicle`<br />`/Article/Comparisons`<br />`/Article/Roundup`<br />`/Article/Product_or_Brand_Review`<br />`/Article/Opinion_Piece`<br />`/Article/News_Update`<br />`/Article/Thought_Leadership`<br />`/Article/Story`<br />`/Article/Recipe`<br />`/Article/FAQ`<br />`/Article/Checklists`<br />`/Article/Study_or_Research_Findings`<br />`/Article/Definitions`<br />`/Article/Wiki`                                                                                                                                                                                                                                                    |
| `/Landing_Page`                | `/Landing_Page/Service_Page`<br />`/Landing_Page/Location_Page`<br />`/Landing_Page/Product_Page`<br />`/Landing_Page/Course_Sales_Page`<br />`/Landing_Page/Product_Feature_Page`<br />`/Landing_Page/Pricing_Page`                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| `/Interactive_Tools`           | `/Interactive_Tools/Calculator`<br />`/Interactive_Tools/SaaS_Software`<br />`/Interactive_Tools/Map`<br />`/Interactive_Tools/Quiz`<br />`/Interactive_Tools/Poll`<br />`/Interactive_Tools/Simulator`<br />`/Interactive_Tools/Generator`<br />`/Interactive_Tools/Configurator`                                                                                                                                                                                                                                                                                                                                                                                                            |
| `/Image`                       | `/Image/Infographic`<br />`/Image/Mapographic`<br />`/Image/Photography`<br />`/Image/Vector_Illustration`<br />`/Image/Meme`<br />`/Image/Diagram`<br />`/Image/Flowchart`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| `/Video`                       | `/Video/How_to`<br />`/Video/Tutorial_or_Guide`<br />`/Video/Listicle`<br />`/Video/Comparisons`<br />`/Video/Compilation`<br />`/Video/Roundup`<br />`/Video/Product_or_Brand_Review`<br />`/Video/Opinion_Piece`<br />`/Video/News_Update`<br />`/Video/Thought_Leadership`<br />`/Video/Story`<br />`/Video/Recipe`<br />`/Video/Interview`<br />`/Video/Webinar`<br />`/Video/Vlog`                                                                                                                                                                                                                                                                                                                  |
| `/Audio`                       | `/Audio/Podcast`<br />`/Audio/Webinar`<br />`/Audio/Interview`<br />`/Audio/Sound_Byte`<br />`/Audio/Music`<br />`/Audio/Audiobook`<br />`/Audio/Commentary`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| `/Document`                    | `/Document/Case_Study`<br />`/Document/Ebook`<br />`/Document/White_Paper`<br />`/Document/Slide_Deck`<br />`/Document/Research_Paper`<br />`/Document/Template`<br />`/Document/Report`<br />`/Document/Manual`<br />`/Document/Worksheet`                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| `/User_Generated_Content`      | `/User_Generated_Content/Forum_Thread`<br />`/User_Generated_Content/Discussions`<br />`/User_Generated_Content/Social_Media_Post`<br />`/User_Generated_Content/Reviews`<br />`/User_Generated_Content/Testimonials`<br />`/User_Generated_Content/Comments`<br />`/User_Generated_Content/Q&A`                                                                                                                                                                                                                                                                                                                                                                                                  |
| `/Core_Page`                   | `/Core_Page/Homepage`<br />`/Core_Page/About_Page`<br />`/Core_Page/Contact_Page`<br />`/Core_Page/FAQ_Page`<br />`/Core_Page/Blog_Index`<br />`/Core_Page/Services_Page`<br />`/Core_Page/Portfolio_Page`<br />`/Core_Page/Careers_Page`<br />`/Core_Page/Privacy_Policy_Page`<br />`/Core_Page/T&C_Page`                                                                                                                                                                                                                                                                                                                                                                                        |

## Page categories

Page categories use the [Google Cloud Natural Language content category taxonomy](https://docs.cloud.google.com/natural-language/docs/categories), including all levels listed there.

Ahrefs represents each category as a slash-prefixed path. Spaces become underscores and `&` is written as `and`. For example, Google's category:

```text
/Business & Industrial/Advertising & Marketing/Marketing
```

appears in the API as:

```text
/Business_and_Industrial/Advertising_and_Marketing/Marketing
```

Copy exact API paths when possible. Do not assume that replacing spaces and ampersands covers every punctuation mark in the taxonomy.

## Why only the most nested paths are returned

The classifier can assign a parent and a more specific child from the same top-level group. The API removes the less-specific paths from the selected value.

For example, this classification:

```text
/Article
/Article/Tutorial_or_Guide
/Video
/Video/Interview
```

is returned as:

```text
/Article/Tutorial_or_Guide,/Video/Interview
```

The API groups paths by their first component, such as `/Article` or `/Video`, and keeps the paths with the greatest depth in each group. If two paths in a group have the same greatest depth, it returns both.

This rule removes redundant ancestors from the response. It does not prevent you from filtering by a parent path.

## Filter by a parent and its children

Use `substring` with the complete parent path enclosed in literal double quotes. This filter matches `/Article` and its children:

```json
{
  "field": "page_type_source",
  "is": ["substring", "\"/Article\""]
}
```

The quotes are part of the substring. They match the exact parent key in the underlying classification data. Without them, `/Article` would also match unrelated paths such as `/Listing_Collection/Article`.

Use the same form for a category parent:

```json
{
  "field": "page_category_source",
  "is": ["substring", "\"/Business_and_Industrial\""]
}
```

Do not use `prefix` for this. The filter runs against the underlying serialized classification data, not each path in the selected comma-separated value.

Here is a complete request for article backlinks:

```bash
curl --get 'https://api.ahrefs.com/v3/site-explorer/all-backlinks' \
  --header 'Authorization: Bearer YOUR_API_TOKEN' \
  --data-urlencode 'target=example.com' \
  --data-urlencode 'mode=subdomains' \
  --data-urlencode 'select=url_from,url_to,page_type_source' \
  --data-urlencode 'where={"field":"page_type_source","is":["substring","\"/Article\""]}' \
  --data-urlencode 'limit=100'
```

See [Filter syntax](./filter-syntax.md) for compound filters and the full operator reference.
