openapi: 3.0.0
info:
  title: Naukri Jobs API
  description: |
    Search Naukri.com job listings in India by keyword and city.

    Each job returns the title, company, location and links, plus the experience range, salary, skills and posting date when Naukri shows them. Filter by experience, work mode, posting date, salary band, city, department, industry, company and company type, and page through up to 150 pages of results.
  version: 1.0.0
servers:
  - url: https://www.searchapi.io/api/v1
paths:
  /search:
    get:
      summary: Naukri Jobs Search
      security:
        - ApiKeyAuth: []
        - ApiKeyQuery: []
      parameters:
        - name: engine
          in: query
          required: true
          description: 'Search engine. Must be set to: `naukri_jobs`'
          schema:
            type: string
            enum: ["naukri_jobs"]
        - name: q
          in: query
          required: false
          description: Keywords to search for, such as a job title, a skill or a company name. It must contain a letter or a digit. Either `q` or `location` is required.
          schema:
            type: string
            maxLength: 200
        - name: location
          in: query
          required: false
          description: City or region in India to search jobs in. Either `q` or `location` is required.
          schema:
            type: string
            maxLength: 200
        - name: experience
          in: query
          required: false
          description: Years of experience that the job's experience range must include.
          schema:
            type: integer
            minimum: 0
            maximum: 30
        - name: work_arrangement
          in: query
          required: false
          description: 'Work modes to search, separated by commas. Values: `on_site`, `remote`, `hybrid`.'
          schema:
            type: string
            pattern: '^ *(?:on_site|remote|hybrid) *(?:, *(?:on_site|remote|hybrid) *)*$'
        - name: time_period
          in: query
          required: false
          description: Only jobs posted within the last 1, 3, 7, 15 or 30 days.
          schema:
            type: string
            enum: ["last_day", "last_3_days", "last_week", "last_15_days", "last_month"]
        - name: sort_by
          in: query
          required: false
          description: Order of the jobs.
          schema:
            type: string
            enum: ["relevance", "date"]
            default: "relevance"
        - name: salary_range
          in: query
          required: false
          description: 'Yearly salary bands in lakh rupees, separated by commas, which also match jobs with an undisclosed salary. Values: `0to3`, `3to6`, `6to10`, `10to15`, `15to25`, `25to50`, `50to75`, `75to100`, `100to500`, `501` (5 crore and up).'
          schema:
            type: string
            pattern: '^ *(?:0to3|3to6|6to10|10to15|15to25|25to50|50to75|75to100|100to500|501) *(?:, *(?:0to3|3to6|6to10|10to15|15to25|25to50|50to75|75to100|100to500|501) *)*$'
        - name: city_id
          in: query
          required: false
          description: Up to 20 city ids from the `city_id` filter of a previous response, separated by commas.
          schema:
            $ref: '#/components/schemas/IdList'
        - name: department_id
          in: query
          required: false
          description: Up to 20 department ids from the `department_id` filter of a previous response, separated by commas.
          schema:
            $ref: '#/components/schemas/IdList'
        - name: industry_id
          in: query
          required: false
          description: Up to 20 industry ids from the `industry_id` filter of a previous response, separated by commas.
          schema:
            $ref: '#/components/schemas/IdList'
        - name: company_id
          in: query
          required: false
          description: Up to 20 company ids from the `company_id` filter of a previous response, separated by commas.
          schema:
            $ref: '#/components/schemas/IdList'
        - name: company_type
          in: query
          required: false
          description: Up to 20 company type ids from the `company_type` filter of a previous response, separated by commas.
          schema:
            $ref: '#/components/schemas/IdList'
        - name: page
          in: query
          required: false
          description: Page of results to return. Each page holds up to 20 jobs.
          schema:
            type: integer
            minimum: 1
            maximum: 150
            default: 1
        - name: zero_retention
          in: query
          required: false
          description: Set to true to disable logging and persistent storage for this request. Enterprise plans only.
          schema:
            type: boolean
            default: false
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchResponse'
        '400':
          description: Validation Error. There is an issue with query parameters, such as missing required parameters or invalid values, or Naukri refused the search words.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Authentication Error. The API key is missing or invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden. Zero data retention is not available to the account, or the account requires `zero_retention=true`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate Limit Exceeded. The number of allowed requests has been exceeded. Consider upgrading your plan or waiting for the limit to reset.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Server Error. Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: Timeout. We could not retrieve results in 90 seconds.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: 'Use Bearer authentication. Format: "Bearer YOUR_API_KEY"'
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api_key
      description: Pass API key as query parameter
  schemas:
    IdList:
      type: string
      pattern: '^ *\d{1,10} *(?:, *\d{1,10} *){0,19}$'
    SearchResponse:
      type: object
      properties:
        search_metadata:
          $ref: '#/components/schemas/SearchMetadata'
        search_parameters:
          $ref: '#/components/schemas/SearchParameters'
        search_information:
          $ref: '#/components/schemas/SearchInformation'
        jobs:
          type: array
          items:
            $ref: '#/components/schemas/Job'
        filters:
          type: array
          items:
            $ref: '#/components/schemas/Filter'
        pagination:
          $ref: '#/components/schemas/Pagination'
        error:
          type: string
          description: Why there are no jobs to return.
    SearchMetadata:
      type: object
      required: [status, created_at]
      properties:
        id:
          type: string
          description: "Unique identifier for the search request"
        status:
          type: string
          description: "Status of the search request"
        created_at:
          type: string
          format: date-time
          description: "Timestamp when the search was created"
        request_time_taken:
          type: number
          description: "Time taken to make the request in seconds"
        parsing_time_taken:
          type: number
          description: "Time taken to parse the results in seconds"
        total_time_taken:
          type: number
          description: "Total time taken for the search in seconds"
        request_url:
          type: string
          description: "Naukri URL for this search"
        html_url:
          type: string
          description: "URL to view HTML results"
        json_url:
          type: string
          description: "URL to view JSON results"
    SearchParameters:
      type: object
      properties:
        engine:
          type: string
          description: Search engine used for the request.
        q:
          type: string
          description: Keywords the search was run for.
        location:
          type: string
          description: Location the search was run for.
        q_used:
          type: string
          description: Keywords Naukri searched after moving a place it found in `q` into the location.
        location_used:
          type: string
          description: Location Naukri searched after moving a place it found in `q` into it.
        experience:
          type: integer
          description: Years of experience the search was filtered by.
        work_arrangement:
          type: string
          description: Work modes the search was filtered by.
        time_period:
          type: string
          description: Posting date window of the search.
        sort_by:
          type: string
          description: Order of the jobs.
        salary_range:
          type: string
          description: Salary bands the search was filtered by.
        city_id:
          type: string
          description: City ids the search was filtered by.
        department_id:
          type: string
          description: Department ids the search was filtered by.
        industry_id:
          type: string
          description: Industry ids the search was filtered by.
        company_id:
          type: string
          description: Company ids the search was filtered by.
        company_type:
          type: string
          description: Company type ids the search was filtered by.
        page:
          type: integer
          description: Page of results requested.
    SearchInformation:
      type: object
      properties:
        total_results:
          type: integer
          description: Number of jobs Naukri reports for the search.
        has_relaxed_filters:
          type: boolean
          description: Whether Naukri could not apply the location or a filter and searched more broadly.
    Job:
      type: object
      required: [position, job_id, title, link, is_remote, is_hybrid, is_external_apply, is_consultant, is_walk_in]
      properties:
        position:
          type: integer
          description: Position of the job on the page.
        job_id:
          type: string
          description: Naukri identifier for the job.
        title:
          type: string
          description: Job title.
        company_name:
          type: string
          description: Name of the hiring company.
        company_id:
          type: string
          description: Naukri identifier of the hiring company.
        company_link:
          type: string
          description: Link to the company's jobs page on Naukri.
        company_logo:
          type: string
          description: URL of the company logo.
        company_rating:
          type: number
          description: Employer rating out of 5.
        company_reviews:
          type: integer
          description: Number of employer reviews behind the rating.
        location:
          type: string
          description: Job locations as shown on Naukri.
        experience:
          type: object
          description: Experience range the job asks for.
          properties:
            text:
              type: string
              description: Experience range as shown on Naukri.
            min:
              type: integer
              description: Fewest years of experience.
            max:
              type: integer
              description: Most years of experience.
        salary:
          type: object
          description: Salary Naukri shows for the job.
          properties:
            text:
              type: string
              description: Salary as shown on Naukri.
            min:
              type: number
              description: Lower bound of the salary.
            max:
              type: number
              description: Upper bound of the salary.
            currency:
              type: string
              description: Currency of the salary.
            period:
              type: string
              description: Period the salary is given for.
              enum: ["year"]
        skills:
          type: array
          description: Skills listed for the job.
          items:
            type: string
        date:
          type: string
          format: date
          description: Date the job was posted, in India time.
        posted_at:
          type: string
          description: Posting time as shown on Naukri.
        vacancies:
          type: integer
          description: Number of openings for the job.
        link:
          type: string
          description: Link to the job posting on Naukri.
        apply_link:
          type: string
          description: Link to apply for the job.
        is_remote:
          type: boolean
          description: Whether the job is remote.
        is_hybrid:
          type: boolean
          description: Whether the job is hybrid.
        is_external_apply:
          type: boolean
          description: Whether candidates apply on the employer's own site.
        is_consultant:
          type: boolean
          description: Whether a recruitment consultant posted the job.
        is_walk_in:
          type: boolean
          description: Whether the job takes walk-in interviews.
    Filter:
      type: object
      required: [key, options]
      properties:
        key:
          type: string
          description: Parameter that takes the values of this filter's options.
          enum: ["work_arrangement", "salary_range", "city_id", "department_id", "industry_id", "company_id", "company_type"]
        options:
          type: array
          items:
            type: object
            required: [text, value]
            properties:
              text:
                type: string
                description: Option label as shown on Naukri.
              value:
                type: string
                description: Value to pass to the parameter named by `key`.
              count:
                type: integer
                description: Number of jobs Naukri reports for the option.
    Pagination:
      type: object
      required: [current]
      properties:
        current:
          type: integer
          description: Page number of the results.
        next:
          type: integer
          description: Number of the next page.
    ErrorResponse:
      type: object
      required: [error]
      properties:
        error:
          type: string
          description: Error message describing what went wrong
