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

# Get Hacker News stories

> Resolve a Hacker News story-id list (top, new, best, ask, show, job) to full item details.



## OpenAPI

````yaml get /v1/hacker-news/stories
openapi: 3.1.0
info:
  title: Scrapio
  version: 1.0.0
  description: >-
    Turn any URL into structured data. Fetch raw HTML, crawl sites, extract
    structured content, interact with dynamic pages, and search the web through
    one API.
  contact:
    name: Scrapio Support
    url: https://scrapio.dev
  license:
    name: Proprietary
servers:
  - url: https://api.scrapio.dev
    description: Production
security:
  - bearerAuth: []
tags:
  - name: System
  - name: Fetch
  - name: Crawl
  - name: Map
  - name: Interact
  - name: Search
  - name: Google
  - name: Fast Search
  - name: Jobs
  - name: YouTube
  - name: Amazon
  - name: Walmart
  - name: Booking
  - name: Agoda
  - name: Airbnb
  - name: AutoTrader
  - name: ChatGPT
  - name: Perplexity
  - name: Gemini
  - name: Bing
  - name: Reddit
  - name: Instagram
  - name: Twitter
  - name: Facebook
  - name: Hacker News
  - name: GitHub
  - name: TikTok
  - name: Apple App Store
  - name: Target
  - name: Monitors
paths:
  /v1/hacker-news/stories:
    get:
      tags:
        - Hacker News
      summary: Get a Hacker News story list
      description: >-
        Resolves a Hacker News story-id list (top, new, best, ask, show, or job)
        from the official Firebase API into full item objects. Requires a
        Starter plan or higher.
      operationId: getHackerNewsStories
      parameters:
        - name: type
          in: query
          required: true
          schema:
            type: string
            enum:
              - top
              - new
              - best
              - ask
              - show
              - job
            description: Which Firebase story-id list to resolve
        - name: limit
          in: query
          required: false
          schema:
            description: Max number of stories to resolve, default 30, max 100
            type: integer
            exclusiveMinimum: 0
            maximum: 100
      responses:
        '200':
          description: Resolved Hacker News story items.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HackerNewsStoriesResponse'
        '400':
          description: Missing or invalid type/limit.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '402':
          description: Hacker News dedicated endpoints require a Starter plan or higher.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Daily credit cap exceeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '502':
          description: Hacker News upstream failed or returned an unusable response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: Hacker News upstream unavailable.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-codeSamples:
        - lang: cURL
          label: cURL
          source: >-
            curl
            "https://api.scrapio.dev/v1/hacker-news/stories?type=top&limit=10" \
              -H "Authorization: Bearer $SCRAPIO_API_KEY"
components:
  schemas:
    HackerNewsStoriesResponse:
      type: object
      properties:
        provider:
          type: string
          enum:
            - hacker_news
        request_id:
          type: string
        type:
          type: string
          enum:
            - top
            - new
            - best
            - ask
            - show
            - job
        stories:
          type: array
          items:
            type: object
            properties:
              id:
                type: integer
                minimum: -9007199254740991
                maximum: 9007199254740991
              type:
                type: string
                enum:
                  - story
                  - comment
                  - job
                  - poll
                  - pollopt
              by:
                anyOf:
                  - type: string
                  - type: 'null'
              time:
                anyOf:
                  - type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  - type: 'null'
              created_at:
                anyOf:
                  - type: string
                  - type: 'null'
              text:
                anyOf:
                  - type: string
                  - type: 'null'
              dead:
                anyOf:
                  - type: boolean
                  - type: 'null'
              deleted:
                anyOf:
                  - type: boolean
                  - type: 'null'
              title:
                anyOf:
                  - type: string
                  - type: 'null'
              url:
                anyOf:
                  - type: string
                  - type: 'null'
              score:
                anyOf:
                  - type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  - type: 'null'
              descendants:
                anyOf:
                  - type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  - type: 'null'
              kids:
                anyOf:
                  - type: array
                    items:
                      type: integer
                      minimum: -9007199254740991
                      maximum: 9007199254740991
                  - type: 'null'
              parent:
                anyOf:
                  - type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  - type: 'null'
              parts:
                anyOf:
                  - type: array
                    items:
                      type: integer
                      minimum: -9007199254740991
                      maximum: 9007199254740991
                  - type: 'null'
              poll:
                anyOf:
                  - type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  - type: 'null'
            required:
              - id
              - type
              - by
              - time
              - created_at
              - text
              - dead
              - deleted
              - title
              - url
              - score
              - descendants
              - kids
              - parent
              - parts
              - poll
            additionalProperties: false
      required:
        - provider
        - request_id
        - type
        - stories
      additionalProperties: false
    ErrorResponse:
      type: object
      properties:
        request_id:
          type: string
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
          required:
            - code
            - message
        diagnostics:
          type: object
          properties:
            outcome:
              type: string
              enum:
                - failed
            retryable:
              type: boolean
            blocked:
              type: boolean
            timed_out:
              type: boolean
          required:
            - outcome
            - retryable
          additionalProperties: false
      required:
        - request_id
        - error
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key

````