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

# Create a new search job

> Submit a query to be scraped



## OpenAPI

````yaml api-reference/openapi.json post /searchgpt/jobs
openapi: 3.0.0
info:
  title: GPT Scrape API
  version: 1.0.0
  description: API for scraping searchGPT responses
servers:
  - url: https://app.gptscraper.com/api
    description: Production server
security:
  - bearerAuth: []
paths:
  /searchgpt/jobs:
    post:
      summary: Create a new search job
      description: Submit a query to be scraped
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                query:
                  type: string
                  description: The query to send to searchGPT
                screenshot:
                  type: boolean
                  description: Whether to capture a screenshot of the search results
                country:
                  type: string
                  description: Country code in ISO 3166-1 alpha-2 format
              required:
                - query
                - screenshot
      responses:
        '200':
          description: Job created successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  jobId:
                    type: string
                    description: Unique identifier for the created job
                  success:
                    type: boolean
                    description: Whether the job was created successfully
                required:
                  - jobId
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Error message
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key
      description: 'Enter your API key in the format: Bearer <YOUR_API_KEY>'

````