Public API

Use our Python client, or API, to add intelligence to your applications

The prediction network is open to all. You can use it in all manner of business applications.  

Click Around

Notice that you can directly retrieve some data or plots. Try clicking on the following examples:

and more. See the API notes below. 

Python Client

The Python microprediction package (see repo) can be pip installed from PyPI. It has straightforward syntax. For example to push a new value to a stream or create one: 

writer.set(name='my_own_stream.json',value=3.14157)

See the instructions in the Python learning modules. For example stream creation is covered in.  

Python Module 4

To submit predictions of streams and compete for prizes, start at 

Python Module 1

As a remark, no key is required to read data from the site.

reader.get_lagged_values('die.json')

 This is covered in the third Python video introduction.

Python Module 3

Direct API Use

Microprediction provides a simple API to make its resources available programmatically in any language. Our public API supports calls over HTTPS, and returns data in JSON format.

Base URL: http://api.microprediction.org/

Swagger: https://www.microprediction.org/swagger.json

You’re free to use this API to integrate our data in any application or website as you see fit, as long as each page or application that uses it includes the text Powered by Microprediction and links to our home page.

Private Keys

Looking for registration? It isn't required. 

Instead, the Microprediction API allows you to use any private key you create yourself. 

This protects your anonymity on our platform, but the CPU time taken to burn a key signals to the community that you're a serious contributor. Creating a private key is straightforward, but can take hours for higher cryptographic difficulty. 

Learn How to Get One

What Will You Use it For?

Let your imagination run wild. You can use the Microprediction API to get predictions, make predictions or build your own applications. Two resources to help you become familiar with the Microprediction are our project page and visual reference page.

Python modules

Video tutorials covering the basics. Start with Python Module 1.

Ideas for business applications

See the video introduction to application categories

If you have any questions regarding the API, please feel free to reach out to us anytime. If something doesn't work as expected, don't forget to include any relevant code. Our team will be happy to assist you.

Follow the Movement

Connect with an innovative community that’s changing the world of prediction.