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

# Post scrape

> Scrapes a webpage and converts it to markdown. Costs 1 credit per request.



## OpenAPI

````yaml api-reference/openapi.json post /scrape
openapi: 3.0.1
info:
  title: Norns AI API
  description: API documentation for Norns AI services
  version: 1.0.0
servers:
  - url: https://www.norns.ai/api/v0
    description: Production server
security:
  - bearerAuth: []
paths:
  /scrape:
    post:
      description: >-
        Scrapes a webpage and converts it to markdown. Costs 1 credit per
        request.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ScrapeRequest'
      responses:
        '200':
          description: Successful scraping response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScrapeResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    ScrapeRequest:
      type: object
      required:
        - url
      properties:
        url:
          type: string
          description: The URL to scrape (must include protocol)
    ScrapeResponse:
      type: object
      properties:
        success:
          type: boolean
        data:
          type: object
          properties:
            markdown:
              type: string
            metadata:
              type: object
              properties:
                title:
                  type: string
                description:
                  type: string
                html:
                  type: string
            scrape_id:
              type: string
    Error:
      type: object
      properties:
        error:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key authentication

````