swagger: "2.0"
info:
  title: Language Detector - Detect 73+ Languages with Confidence Scores
  version: V1
  contact: {}
  description: Quickly and accurately detect languages with confidence values,
    boosting translation and communication efficiency.
paths:
  /v1/detect:
    post:
      description: Detects the language of a given text. To specifiy languages,
        separate them with a comma and NO SPACE. If no languages are specified,
        or are unknown, all languages will be specified.
      consumes:
        - application/json
      produces:
        - application/json
      tags:
        - ""
      summary: Detect a language
      parameters:
        - type: string
          default: All
          description: Specified languages to detect for
          name: languages
          in: query
        - type: boolean
          default: false
          description: Use low accuracy mode
          name: low_accuracy
          in: query
        - description: Text to detect
          name: text
          in: body
          required: true
          schema:
            $ref: "#/definitions/controller.SpecifiedLanguageDetectionRequest"
      responses:
        "200":
          description: OK
          schema:
            $ref: "#/definitions/controller.SpecifiedLanguageDetectionResponse"
        "400":
          description: Bad Request
          schema: {}
        "422":
          description: Unprocessable Entity
          schema: {}
        "429":
          description: Too Many Requests
          schema: {}
        "500":
          description: Internal Server Error
          schema: {}
    parameters:
      - description: API.market API Key
        in: header
        name: x-api-market-key
        value: Please Login/Signup to get an API Key
        required: true
        schema:
          type: string
definitions:
  controller.SpecifiedLanguageDetectionRequest:
    type: object
    properties:
      text:
        type: string
  controller.SpecifiedLanguageDetectionResponse:
    type: object
    properties:
      confidence:
        type: string
      confidence_value:
        type: number
      is_low_accuracy:
        type: boolean
      language:
        type: string
      languages_searched_for:
        type: array
        items:
          type: string
      languages_specified:
        type: array
        items:
          type: string
schemes:
  - https
host: prod.api.market
basePath: /api/v1/flintapis/language-probability-detector
security: {}
tags:
  - name: communication
    description: Operations related to communication
  - name: translation
    description: Operations related to translation
  - name: text-analysis
    description: Operations related to text-analysis
