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

# Batch protein lookup

> Look up multiple proteins by hash. Small batches return a zip file with per-data-type files (200). Large batches return a job handle for async polling (202).



## OpenAPI

````yaml openapi/metagenomic-atlas-openapi.json POST /esm/protein/api/v1alpha1/proteins/batch
openapi: 3.1.0
info:
  title: ESM Atlas API Reference
  description: Interfaces may change without notice.
  version: 0.1.0
servers:
  - url: https://biohub.ai
security: []
paths:
  /esm/protein/api/v1alpha1/proteins/batch:
    post:
      tags:
        - Proteins
      summary: Batch protein lookup
      description: >-
        Look up multiple proteins by hash. Small batches return a zip file with
        per-data-type files (200). Large batches return a job handle for async
        polling (202).
      operationId: batch_lookup_proteins_esm_protein_api_v1alpha1_proteins_batch_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BatchProteinRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    BatchProteinRequest:
      properties:
        protein_hashes:
          items:
            type: string
          type: array
          title: Protein Hashes
          description: >-
            MD5 hashes of proteins to look up. Max 500 unique entries;
            duplicates are deduplicated.
        topk_features:
          type: integer
          title: Topk Features
          description: Number of top SAE features to include per protein (1–100).
          default: 10
        include_structure:
          type: boolean
          title: Include Structure
          description: If true, include PDB structure, pTM, and per-residue pLDDT.
          default: true
        include_cluster_info:
          type: boolean
          title: Include Cluster Info
          description: If true, include cluster representative metadata for each protein.
          default: true
        include_sequence:
          type: boolean
          title: Include Sequence
          description: If true, include the amino acid sequence.
          default: true
        include_features:
          $ref: '#/components/schemas/FeatureOptions'
          description: >-
            Control SAE feature data. Pass `false` to omit entirely, `true` for
            both protein-level and per-residue, or an object with
            `protein_level` / `per_residue` sub-flags.
      type: object
      required:
        - protein_hashes
      title: BatchProteinRequest
      description: |-
        Request body for batch protein lookup.

        Data type flags control which output files are generated.
        By default all data types are included.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    FeatureOptions:
      properties:
        protein_level:
          type: boolean
          title: Protein Level
          description: Include protein-level SAE feature activations.
          default: true
        per_residue:
          type: boolean
          title: Per Residue
          description: Include per-residue SAE feature activations.
          default: true
      type: object
      title: FeatureOptions
      description: Sub-options for feature data in batch downloads.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````