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

# Get remappersbinsearch path



## OpenAPI

````yaml /data-structure-indexer-api/openapi-data-structure-indexer-api.json get /remappers/binsearch-path
openapi: 3.0.3
info:
  title: Data Structure Indexer API
  description: API for fetching data from the Data Structure Indexer
  license:
    name: ''
  version: 0.1.0
servers:
  - url: https://rs-indexer.api.herodotus.cloud
    description: Production server
  - url: https://staging.rs-indexer.api.herodotus.cloud
    description: Staging server
security: []
tags:
  - name: accumulators
    description: Accumulators endpoints.
  - name: remappers
    description: Remappers endpoints.
paths:
  /remappers/binsearch-path:
    get:
      tags:
        - remappers
      operationId: get_binsearch_path
      parameters:
        - name: deployed_on_chain
          in: query
          required: true
          schema:
            $ref: '#/components/schemas/ChainId'
        - name: accumulates_chain
          in: query
          required: true
          schema:
            $ref: '#/components/schemas/ChainId'
        - name: timestamp
          in: query
          required: true
          schema:
            type: integer
            format: int32
        - name: onchain_remapper_id
          in: query
          required: false
          schema:
            type: string
            nullable: true
        - name: remapper_size
          in: query
          required: false
          schema:
            type: integer
            format: int32
            nullable: true
      responses:
        '200':
          description: Get binsearch path for timestamp mapping
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BinSearchResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
components:
  schemas:
    ChainId:
      type: string
      enum:
        - '1'
        - '11155111'
        - '137'
        - '280'
        - MADARA_PRAGMA
        - STARKNET
        - SN_SEPOLIA
        - '300'
        - '11155420'
        - '421614'
        - '4801'
        - '84532'
        - UNKNOWN
    BinSearchResponse:
      type: object
      required:
        - proofs
        - path
        - remapper
      properties:
        path:
          type: array
          items:
            $ref: '#/components/schemas/BinsearchPath'
        proofs:
          type: array
          items:
            $ref: '#/components/schemas/BinsearchProof'
        remapper:
          $ref: '#/components/schemas/BinsearchRemapper'
    ApiErrorResponse:
      type: object
      required:
        - message
      properties:
        message:
          type: string
    BinsearchPath:
      type: object
      required:
        - block_number
        - timestamp
        - element_index
        - post_append_remapper_size
      properties:
        block_number:
          type: integer
          format: int32
        element_index:
          type: integer
          format: int32
        post_append_remapper_size:
          type: integer
          format: int32
        timestamp:
          type: integer
          format: int32
    BinsearchProof:
      type: object
      required:
        - element_index
        - element_hash
        - siblings_hashes
        - peaks_hashes
        - elements_count
      properties:
        element_hash:
          type: string
        element_index:
          type: integer
          format: int32
        elements_count:
          type: integer
          format: int32
        peaks_hashes:
          type: array
          items:
            type: string
        siblings_hashes:
          type: array
          items:
            type: string
    BinsearchRemapper:
      type: object
      required:
        - deployed_on_chain
        - remaps_chain
        - onchain_remapper_id
        - address
      properties:
        address:
          type: string
        deployed_on_chain:
          type: string
        onchain_remapper_id:
          type: string
        remaps_chain:
          type: string

````