Skip to main content
This guide demonstrates how to retrieve questions from the Metaculus API using various filters and pagination.

Basic Query

Retrieve a feed of posts (which contain questions):

Filtering by Question Type

Filter posts by the type of question they contain:

Available Question Types

  • binary - Yes/no questions
  • multiple_choice - Questions with multiple options
  • numeric - Continuous numeric predictions
  • date - Date predictions
  • conditional - Conditional question pairs
  • group_of_questions - Multiple related sub-questions

Filtering by Status

Get questions based on their lifecycle status:

Available Statuses

  • upcoming - Not yet open for forecasting
  • open - Currently accepting forecasts
  • closed - No longer accepting forecasts
  • resolved - Question has been resolved

Filtering by Tournament

Get questions from specific tournaments or projects:

Filtering by Category

Filter questions by topic categories:

Filtering by Date Range

Get questions that opened, close, or resolve within specific date ranges:

Available Date Filters

Each filter supports these operators:
  • __gt - Greater than
  • __gte - Greater than or equal to
  • __lt - Less than
  • __lte - Less than or equal to
Date filter fields:
  • open_time - When the question opened for forecasting
  • published_at - When the post was published
  • scheduled_resolve_time - When the question is scheduled to resolve

Pagination

Handle large result sets with pagination:

Sorting Results

Order results by different criteria:

Available Sort Options

  • published_at - Publication date
  • open_time - When question opened
  • vote_score - Community votes
  • comment_count - Number of comments
  • forecasts_count - Number of forecasts
  • scheduled_close_time - Close date
  • scheduled_resolve_time - Resolution date
  • hotness - Composite popularity score
  • weekly_movement - Recent forecast changes
  • divergence - Disagreement among forecasters
Prefix with - for descending order (e.g., -published_at).

Getting a Single Post

Retrieve detailed information about a specific post:

Next Steps