Skip to content

How to get N submission from competition? #892 #899

@Mazgagzam

Description

@Mazgagzam
from kaggle.api.kaggle_api_extended import KaggleApi

api = KaggleApi()
api.authenticate()


a = api.competition_submissions(
    "sem-eval-2026-task-13-subtask-c",
    group=None,
    page_size=1
)

print(len(a))

api.competition_submissions does't support the page_size parameter.
It is ignored by the Kaggle API, so the number of returned submissions cannot be controlled this way(always return 50).
I use ipynb on Kaggle to run code
versions:

kaggle                                             1.8.3
kaggle-environments                      1.18.0
kagglehub                                       0.3.13
kagglesdk                                        0.1.15

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions