The predict API Introduction
Welcome to The predict API, your go-to solution for forecasting your data with simplicity and accuracy. Whether you are dealing with financial, cryptocurrency, sensor, or any other type of time-series data, our revolutionary method has got you covered.
The predict API Features
Any Type of Data
The predict API is designed to work with any type of time-series data. No matter the industry or the specific use case, our API can help you forecast your data with ease.
A Cutting-Edge Method
Our projection method leverages the latest advancements in stochastic modeling and machine learning to provide you with the most accurate forecasts possible.
Computing Power
Our projection method requires significant computational resources, which is why we handle all the heavy lifting on our servers. This means you can focus on interpreting the results without worrying about the underlying infrastructure.
Simplicity and Accuracy
At The predict API, we believe in keeping things simple. Our user-friendly interface and straightforward pricing plans ensure that you can get started with minimal hassle and maximum accuracy.
The predict API Pricing
Basic
- Free
- 10 projections
Pro
- $5/mo
- 500 projections
- +$0.01 beyond
Ultra
- $50/mo
- 10,000 projections
- +$0.005 beyond
Mega
- $500/mo
- 500,000 projections
- +$0.005 beyond
The predict API Integration
Integrating The predict API into your application is a breeze. Below are examples of how to make a prediction using different programming languages and tools.
Using Python with the requests
library
import requests
url = "https://predict7.p.rapidapi.com/"
headers = {
"content-type": "application/json",
"X-RapidAPI-Host": "predict7.p.rapidapi.com",
"X-RapidAPI-Key": "your_api_key"
}
payload = {
"data": [518.4, 559.9, 553.1, 524.5, 567.6, 531.7, 576.4, 514.4],
"horizon": 5,
"cls": [0.2, 0.5, 0.8]
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
Using cURL
curl \
--request POST \
--url https://predict7.p.rapidapi.com/ \
--header 'content-type: application/json' \
--header 'X-RapidAPI-Host: predict7.p.rapidapi.com' \
--header 'X-RapidAPI-Key: your_api_key' \
--data '{"data": [518.4, 559.9, 553.1, 524.5, 567.6, 531.7, 576.4, 514.4],
"horizon": 5,
"cls": [0.2, 0.5, 0.8]
}'
Using the predictapi
Python package
from predictapi import Predictor
p = Predictor(api_key="your_api_key")
data = [518.4, 559.9, 553.1, 524.5, 567.6, 531.7, 576.4, 514.4]
horizon = 5
cls = [0.2, 0.5, 0.8]
quantiles = p.predict(data=data, horizon=horizon, cls=cls)
print(quantiles)
The predict API FAQs
Q: What is the minimum data required for a forecast?
A: The predict API requires at least one data point to make a forecast. However, for more accurate results, we recommend providing a sufficient amount of historical data.
Q: Can I use The predict API for real-time forecasting?
A: Yes, The predict API can be used for real-time forecasting. Simply integrate the API into your application and make calls as needed.
Q: How do I choose the right pricing plan for my needs?
A: Our pricing plans are designed to cater to a wide range of needs. Start with the Basic plan for small-scale projects and upgrade as your requirements grow.
Q: Is there a limit to the number of requests I can make?
A: Yes, each pricing plan comes with a limit on the number of projections you can make. Please refer to the pricing section for details on each plan.
Q: Can I try The predict API before purchasing a plan?
A: Absolutely! The Basic plan is free and comes with 10 projections, allowing you to test the API and its capabilities before committing to a paid plan.