# 【实时】Hacker News 热帖

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v2/hacker-news/{type}:
    get:
      summary: 【实时】Hacker News 热帖
      deprecated: false
      description: ''
      tags:
        - 🔥 热门榜单
      parameters:
        - name: type
          in: path
          description: 支持 top、new、best 三种
          required: true
          example: top
          schema:
            type: string
            enum:
              - new
              - top
              - best
            x-apifox-enum:
              - value: new
                name: ''
                description: ''
              - value: top
                name: ''
                description: ''
              - value: best
                name: ''
                description: ''
        - name: encoding
          in: query
          description: 编码方式，支持 text/json/markdown
          required: false
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  message:
                    type: string
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                        title:
                          type: string
                        link:
                          type: string
                        score:
                          type: integer
                        author:
                          type: string
                        created:
                          type: string
                        created_at:
                          type: integer
                      required:
                        - id
                        - title
                        - link
                        - score
                        - author
                        - created
                        - created_at
                required:
                  - code
                  - message
                  - data
          headers: {}
          x-apifox-name: 成功
      security: []
      x-apifox-folder: 🔥 热门榜单
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/5757303/apis/api-343622824-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://60s.viki.moe
    description: 正式环境
security: []

```
