📚Archives

API Methods at /archives route

Get available archives

GET https://sort-me.org/api//archives/getPublic

🈂️ Localization applies.

Query Parameters

Name
Type
Description

query

string

Text to search through archive descriptions

offset

int

Pagination parameter. Use id field.

{
    "archives": [
        {
            "id": 19,
            "names": {
                "ru": "Полуфинал ICPC в Северной Евразии",
                "en": "Northern Eurasia ICPC Semi-Finals"
            },
            "org": {
                "ru": "Университет ИТМО и Комитет ICPC",
                "en": "ITMO University and ICPC Committee"
            },

            "seasons": 3,
            "seasons_info": {
                "ru": "с 2011 г.",
                "en": "2011 - Present"
            },

            "stats": { // can be not presented if you are not logged in
                "solved_problems": 4,
                "total_problems": 21
            }
        }
    ]
}

Get archive by ID

GET https://api.sort-me.org/api/archives/getByID

🈂️ Localization applies.

Get single archive by its id.

{
    "id": 1,
    "names": {
        "en": "Northern Eurasia ICPC Semi-Finals",
        "ru": "Полуфинал ICPC в Северной Евразии"
    },
    "org": {
        "en": "ITMO University and ICPC Committee",
        "ru": "Университет ИТМО и Комитет ICPC"
    },
    "seasons_info": {
        "en": "2011 - Present",
        "ru": "с 2011 г."
    },
    "seasons": [
        {
            "codename": "2011-2012",
            "problems": [
                {
                    "id": 1,
                    "names": {
                        "en": "A+B",
                        "ru": "A+B"
                    },
                    "difficulty": 2,
                    "solved_by": 0,
                    "tags": [
                        1
                    ]
                }
            ]
        }
    ]
}

Last updated