> ## Documentation Index
> Fetch the complete documentation index at: https://docs.marblecms.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get tag

> Get a single tag by ID or slug



## OpenAPI

````yaml https://api.marblecms.com/openapi.json get /v1/tags/{identifier}
openapi: 3.1.0
info:
  title: Marble API
  version: 1.0.0
  description: A headless CMS API for managing and delivering content programmatically.
servers:
  - url: https://api.marblecms.com
    description: Production
security:
  - apiKey: []
paths:
  /v1/tags/{identifier}:
    get:
      tags:
        - Tags
      summary: Get tag
      description: Get a single tag by ID or slug
      parameters:
        - schema:
            type: string
            example: javascript
            description: Tag ID or slug
          required: true
          description: Tag ID or slug
          name: identifier
          in: path
      responses:
        '200':
          description: The requested tag
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TagResponse'
        '404':
          description: Tag not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFound'
        '500':
          description: Server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServerError'
components:
  schemas:
    TagResponse:
      type: object
      properties:
        tag:
          $ref: '#/components/schemas/Tag'
      required:
        - tag
    NotFound:
      type: object
      properties:
        error:
          type: string
          example: Post not found
        message:
          type: string
          example: The requested resource does not exist
      required:
        - error
        - message
    ServerError:
      type: object
      properties:
        error:
          type: string
          example: Internal server error
        message:
          type: string
          example: Failed to fetch resource
      required:
        - error
    Tag:
      type: object
      properties:
        id:
          type: string
          example: cryitfjp4567no07ygqadhm1
        name:
          type: string
          example: JavaScript
        slug:
          type: string
          example: javascript
        description:
          type: string
          nullable: true
          example: JavaScript tutorials
        count:
          type: object
          properties:
            posts:
              type: integer
              example: 8
          required:
            - posts
          description: Number of published posts with this tag
      required:
        - id
        - name
        - slug
        - description
        - count
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: Authorization
      description: Your Marble API key

````