Seventh Sense Search API

The endpoints below allow you to search for previously registered persons using a face image obtained at a later time. The search is performed using a deep learning model trained on millions of face images. The search results are ranked by the similarity score, which is a number between 0 and 1, where 1 is a perfect match and 0 is a perfect mismatch. The search results are returned in order of decreasing similarity score, but above the specified `min_score` threshold (default is 0.81). The `max_results` parameter is optional and allows you to control the maximum number of returned results. By default, it is set to 10, but you can customize this number for your specific use case. The maximum value you can set is 100.**Note:** The `/search` endpoint does not store any information on our servers. It is a one-time search of a set of images against registered persons. If you want to store the images and search for them later, use the `/person` endpoint to register persons for a later search using the endpoints below.

Operations 6

POST /search-live-face Search And Check Liveness From One Image Of Same Person #
POST /search Search From One Or More Images Of Same Person #
POST /search/crops Search From One Or More Crops Of Same Person #
POST /detect Detect Faces And Optionally Search For Persons #
POST /verify Verify Match From One Or More Images Of Same Person #
POST /head-count Count Heads #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/seventh-sense-search-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

seventh-sense-search-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OpenCV Face Recognition Search API
  description: OpenCV Face Recognition allows you to either **manually** (through our Developer Portal UI) or **programmatically** (through our SDKs or REST API) detect, recognize, and verify faces in images.
  version: 2026.07.15.0759
tags:
- name: Search
  description: The endpoints below allow you to search for previously registered persons using a face image obtained at a later time.
paths:
  /search-live-face:
    post:
      tags:
      - Search
      summary: Search And Check Liveness From One Image Of Same Person
      operationId: search_and_check_liveness_from_one_image_of_same_person_search_live_face_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchLiveFaceScheme'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchLivePersonResultSchema'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - APIKeyHeader: []
  /search:
    post:
      tags:
      - Search
      summary: Search From One Or More Images Of Same Person
      operationId: search_from_one_or_more_images_of_same_person_search_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchPersonSchema'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/SearchPersonResultSchema'
                type: array
                title: Response Search From One Or More Images Of Same Person Search Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - APIKeyHeader: []
  /search/crops:
    post:
      tags:
      - Search
      summary: Search From One Or More Crops Of Same Person
      operationId: search_from_one_or_more_crops_of_same_person_search_crops_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchPersonSchema'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/SearchPersonResultSchema'
                type: array
                title: Response Search From One Or More Crops Of Same Person Search Crops Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - APIKeyHeader: []
  /detect:
    post:
      tags:
      - Search
      summary: Detect Faces And Optionally Search For Persons
      operationId: detect_faces_and_optionally_search_for_persons_detect_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DetectionRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/DetectionSchema'
                type: array
                title: Response Detect Faces And Optionally Search For Persons Detect Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - APIKeyHeader: []
  /verify:
    post:
      tags:
      - Search
      summary: Verify Match From One Or More Images Of Same Person
      operationId: verify_match_from_one_or_more_images_of_same_person_verify_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VerifyPersonSchema'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VerifyPersonResultSchema'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - APIKeyHeader: []
  /head-count:
    post:
      tags:
      - Search
      summary: Count Heads
      operationId: count_heads_head_count_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/HeadCountRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HeadCountSchema'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - APIKeyHeader: []
components:
  schemas:
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    VerifyPersonSchema:
      properties:
        id:
          type: string
          maxLength: 100
          minLength: 1
          title: Id
        images:
          items:
            type: string
          type: array
          minItems: 1
          title: Images
        min_score:
          anyOf:
          - type: number
            maximum: 1.0
            minimum: 0.0
          - type: string
          - type: 'null'
          title: Min Score
          default: 0.81
        verification_mode:
          anyOf:
          - $ref: '#/components/schemas/SearchModeEnum'
          - type: 'null'
          default: ACCURATE
      type: object
      required:
      - id
      - images
      title: VerifyPersonSchema
      example:
        id: ID_OF_PERSON_BEING_VERIFIED
        images:
        - base64_encoded_string
        min_score: 0.81
        verification_mode: FAST/ACCURATE choose one
    SearchPersonSchema:
      properties:
        collection_id:
          anyOf:
          - type: string
            maxLength: 36
            minLength: 36
          - type: 'null'
          title: Collection Id
        images:
          items:
            type: string
          type: array
          maxItems: 3
          minItems: 1
          title: Images
        max_results:
          anyOf:
          - type: integer
            maximum: 500.0
            minimum: 1.0
          - type: 'null'
          title: Max Results
          default: 10
        min_score:
          anyOf:
          - type: number
            maximum: 1.0
            minimum: 0.0
          - type: string
          - type: 'null'
          title: Min Score
          default: 0.81
        search_mode:
          anyOf:
          - $ref: '#/components/schemas/SearchModeEnum'
          - type: 'null'
          default: FAST
      type: object
      required:
      - images
      title: SearchPersonSchema
      example:
        collection_id: OPTIONAL_COLLECTION_ID_TO_RESTRICT_SEARCH
        images:
        - base64_encoded_string
        max_results: 10
        min_score: 0.81
        search_mode: FAST/ACCURATE choose one
    HeadCountSchema:
      properties:
        count:
          type: integer
          title: Count
      type: object
      required:
      - count
      title: HeadCountSchema
    DetectionSchema:
      properties:
        box:
          $ref: '#/components/schemas/DetectionBoxSchema'
        landmarks:
          $ref: '#/components/schemas/DetectionLandmarksSchema'
        detection_score:
          type: number
          title: Detection Score
        thumbnail:
          type: string
          title: Thumbnail
        persons:
          anyOf:
          - items:
              $ref: '#/components/schemas/SearchPersonResultSchema'
            type: array
          - type: 'null'
          title: Persons
      type: object
      required:
      - box
      - landmarks
      - detection_score
      - thumbnail
      title: DetectionSchema
    SearchPersonResultSchema:
      properties:
        id:
          type: string
          maxLength: 100
          minLength: 1
          title: Id
        name:
          anyOf:
          - type: string
            maxLength: 100
            minLength: 1
          - type: 'null'
          title: Name
        thumbnails:
          items:
            $ref: '#/components/schemas/ThumbnailSchema'
          type: array
          title: Thumbnails
        gender:
          anyOf:
          - $ref: '#/components/schemas/GenderEnum'
          - type: 'null'
        date_of_birth:
          anyOf:
          - type: string
            format: date
          - type: 'null'
          title: Date Of Birth
        nationality:
          anyOf:
          - type: string
          - type: 'null'
          title: Nationality
        notes:
          anyOf:
          - type: string
            maxLength: 500
            minLength: 0
          - type: 'null'
          title: Notes
        create_date:
          type: string
          format: date-time
          title: Create Date
        modified_date:
          type: string
          format: date-time
          title: Modified Date
        score:
          type: number
          title: Score
        collections:
          items:
            $ref: '#/components/schemas/CollectionSchema'
          type: array
          title: Collections
      type: object
      required:
      - id
      - create_date
      - modified_date
      - score
      - collections
      title: SearchPersonResultSchema
    SearchModeEnum:
      type: string
      enum:
      - ACCURATE
      - FAST
      title: SearchModeEnum
    ThumbnailSchema:
      properties:
        id:
          type: string
          title: Id
        thumbnail:
          type: string
          title: Thumbnail
      type: object
      required:
      - id
      title: ThumbnailSchema
    DetectionBoxSchema:
      properties:
        left:
          type: integer
          title: Left
        top:
          type: integer
          title: Top
        right:
          type: integer
          title: Right
        bottom:
          type: integer
          title: Bottom
      type: object
      required:
      - left
      - top
      - right
      - bottom
      title: DetectionBoxSchema
    OSEnum:
      type: string
      enum:
      - DESKTOP
      - ANDROID
      - IOS
      title: OSEnum
    GenderEnum:
      type: string
      enum:
      - M
      - F
      title: GenderEnum
    VerifyPersonResultSchema:
      properties:
        match:
          anyOf:
          - $ref: '#/components/schemas/SearchPersonResultSchema'
          - type: 'null'
      type: object
      title: VerifyPersonResultSchema
    DetectionLandmarksSchema:
      properties:
        left_eye:
          items:
            type: integer
          type: array
          maxItems: 2
          minItems: 2
          title: Left Eye
        right_eye:
          items:
            type: integer
          type: array
          maxItems: 2
          minItems: 2
          title: Right Eye
        nose:
          items:
            type: integer
          type: array
          maxItems: 2
          minItems: 2
          title: Nose
        left_mouth:
          items:
            type: integer
          type: array
          maxItems: 2
          minItems: 2
          title: Left Mouth
        right_mouth:
          items:
            type: integer
          type: array
          maxItems: 2
          minItems: 2
          title: Right Mouth
      type: object
      required:
      - left_eye
      - right_eye
      - nose
      - left_mouth
      - right_mouth
      title: DetectionLandmarksSchema
    DetectionRequest:
      properties:
        image:
          type: string
          title: Image
        search:
          anyOf:
          - $ref: '#/components/schemas/DetectionSearchSchema'
          - type: 'null'
      type: object
      required:
      - image
      title: DetectionRequest
      example:
        image: base64_encoded_string
        search:
          collection_id: OPTIONAL_COLLECTION_ID_TO_RESTRICT_SEARCH
          max_results: 10
          min_score: 0.81
          search_mode: FAST/ACCURATE choose one
    CollectionSchema:
      properties:
        id:
          type: string
          maxLength: 36
          minLength: 36
          title: Id
        name:
          type: string
          maxLength: 50
          minLength: 1
          title: Name
        description:
          anyOf:
          - type: string
            maxLength: 100
            minLength: 0
          - type: 'null'
          title: Description
        count:
          type: integer
          title: Count
        create_date:
          type: string
          format: date-time
          title: Create Date
        modified_date:
          type: string
          format: date-time
          title: Modified Date
      type: object
      required:
      - id
      - name
      - count
      - create_date
      - modified_date
      title: CollectionSchema
    HeadCountRequest:
      properties:
        image:
          type: string
          title: Image
        confidence:
          anyOf:
          - type: integer
            maximum: 99.0
            minimum: 1.0
          - type: 'null'
          title: Confidence
          default: 75
      type: object
      required:
      - image
      title: HeadCountRequest
      example:
        confidence: 75
        image: base64_encoded_string
    SearchLiveFaceScheme:
      properties:
        os:
          anyOf:
          - $ref: '#/components/schemas/OSEnum'
          - type: 'null'
          default: DESKTOP
        image:
          type: string
          title: Image
        collection_id:
          anyOf:
          - type: string
            maxLength: 36
            minLength: 36
          - type: 'null'
          title: Collection Id
        min_score:
          anyOf:
          - type: number
            maximum: 1.0
            minimum: 0.81
          - type: string
          - type: 'null'
          title: Min Score
          default: 0.81
        max_results:
          anyOf:
          - type: integer
            maximum: 100.0
            minimum: 1.0
          - type: 'null'
          title: Max Results
          default: 10
        search_mode:
          anyOf:
          - $ref: '#/components/schemas/SearchModeEnum'
          - type: 'null'
          default: FAST
      type: object
      required:
      - image
      title: SearchLiveFaceScheme
      example:
        collection_id: OPTIONAL_COLLECTION_ID_TO_RESTRICT_SEARCH
        image: base64_encoded_string
        max_results: 10
        min_score: 0.81
        os: DESKTOP
        search_mode: FAST/ACCURATE choose one
    SearchLivePersonResultSchema:
      properties:
        liveness_score:
          type: number
          title: Liveness Score
        persons:
          items:
            $ref: '#/components/schemas/SearchPersonResultSchema'
          type: array
          title: Persons
      type: object
      required:
      - liveness_score
      - persons
      title: SearchLivePersonResultSchema
    DetectionSearchSchema:
      properties:
        collection_id:
          anyOf:
          - type: string
            maxLength: 36
            minLength: 36
          - type: 'null'
          title: Collection Id
        max_results:
          anyOf:
          - type: integer
            maximum: 100.0
            minimum: 1.0
          - type: 'null'
          title: Max Results
          default: 10
        min_score:
          anyOf:
          - type: number
            maximum: 1.0
            minimum: 0.0
          - type: string
          - type: 'null'
          title: Min Score
          default: 0.81
        search_mode:
          anyOf:
          - $ref: '#/components/schemas/SearchModeEnum'
          - type: 'null'
          default: FAST
      type: object
      title: DetectionSearchSchema
      example:
        collection_id: OPTIONAL_COLLECTION_ID_TO_RESTRICT_SEARCH
        max_results: 10
        min_score: 0.81
        search_mode: FAST/ACCURATE choose one
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: x-api-key