---
title: "Get latest algorithm data (code, binarys and advances)"
method: GET
path: "/get-algorithms"
tags: ["GET"]
---

# Get latest algorithm data (code, binarys and advances)

`GET /get-algorithms`

# Notes

* Query parameter `<block_id>` must be the latest block. Use `/get-block` endpoint
  
* `player_details` is a map of `<player_id>` to `PlayerDetails`

## Query parameters

- `block_id` string, required

## Response `200`

Success

- GetAlgorithmsResponse
  - `codes` Code[]
    - `id` string
    - `details` CodeDetails
      - `name` string
      - `player_id` string
      - `challenge_id` string
      - `algorithm_id` string
      - `fee_paid` string
    - `state` CodeState
      - `block_confirmed` integer
      - `round_submitted` integer
      - `round_pushed` integer
      - `round_merged` integer
      - `round_active` integer
      - `banned` boolean
    - `block_data` CodeBlockData
      - `num_qualifiers_by_track_by_player` object
      - `adoption` string
      - `merge_points` integer
      - `reward` string
  - `advances` Advance[]
    - `id` string
    - `details` AdvanceDetails
      - `name` string
      - `player_id` string
      - `challenge_id` string
    - `state` AdvanceState
      - `block_confirmed` integer
      - `round_submitted` integer
      - `round_pushed` integer
      - `round_voting_starts` integer
      - `round_votes_tallied` integer
      - `round_active` integer
      - `round_merged` integer
      - `vote_tally` object
        - `true` string
        - `false` string
    - `block_data` AdvanceBlockData
      - `adoption` string
      - `merge_points` integer
      - `reward` string
  - `binarys` Binary[]
    - `algorithm_id` string
    - `details` BinaryDetails
      - `compile_success` boolean
      - `download_url` string
    - `state` BinaryState
      - `block_confirmed` integer
  - `player_details` object — Map of player_id to PlayerDetails

---

[API](https://skmtc.net/tig-foundation/apis/the-innovation-game-api.md) · [All operations](https://skmtc.net/tig-foundation/apis/the-innovation-game-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tig-foundation/the-innovation-game-api/versions/2af9c398c1d4/schema)
