---
title: "GET /v1/projects/{projectsId}/locations/{locationsId}/plugins/{pluginsId}/styleGuide"
method: GET
path: "/v1/projects/{projectsId}/locations/{locationsId}/plugins/{pluginsId}/styleGuide"
tags: ["projects"]
---

# GET /v1/projects/{projectsId}/locations/{locationsId}/plugins/{pluginsId}/styleGuide

`GET /v1/projects/{projectsId}/locations/{locationsId}/plugins/{pluginsId}/styleGuide`

## Request

- Base URL: `https://apihub.googleapis.com`
- URL: `https://apihub.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/plugins/{pluginsId}/styleGuide`
- Auth: one of:
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/apihub.readonly`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/apihub.readonly`
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/apihub.readwrite`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/apihub.readwrite`
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/cloud-platform`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`
- TypeScript: <https://skmtc.dev/google/apis/apihub/docs/v1/projects/:projectsId/locations/:locationsId/plugins/:pluginsId/styleGuide/get.ts> (a function with typed inputs; its response is checked against the schema)

Get the style guide being used for linting.

## Path parameters

- `projectsId` string, required
- `locationsId` string, required
- `pluginsId` string, required

## Response `200`

Successful response

- GoogleCloudApihubV1StyleGuide: Represents a singleton style guide resource to be used for linting Open API specs.
  - `contents` GoogleCloudApihubV1StyleGuideContents: The style guide contents.
    - `contents` string, byte: Required. The contents of the style guide.
    - `mimeType` string: Required. The mime type of the content.
  - `linter` 'LINTER_UNSPECIFIED' | 'SPECTRAL' | 'OTHER': Required. Target linter for the style guide.
  - `name` string: Identifier. The name of the style guide. Format: `projects/{project}/locations/{location}/plugins/{plugin}/styleGuide`

## Changes

- **2026-11-08** `09b6c7d2247b`: 4 info
  - the security scope `https://www.googleapis.com/auth/apihub.readonly` was added to the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/apihub.readonly` was added to the endpoint's security scheme `Oauth2c`
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was removed from the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was removed from the endpoint's security scheme `Oauth2c`

[Operation history](https://skmtc.dev/google/apis/apihub/changes/v1/projects/:projectsId/locations/:locationsId/plugins/:pluginsId/styleGuide/get.md)

---

[API](https://skmtc.dev/google/apis/apihub.md) - [All operations](https://skmtc.dev/google/apis/apihub/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/apihub/revisions/09b6c7d2247b?raw)
