SDKs & Libraries

Official SDKs

Use our official SDKs to integrate ForecastAPI into your applications quickly and easily. All SDKs are generated from our OpenAPI specification and provide full type safety.

Our SDKs are designed to make integration with ForecastAPI seamless. They provide type safety, automatic request signing, and handle response parsing for you. All SDKs are generated from our OpenAPI specification to ensure they're always up-to-date with the latest API features.

Available SDKs

PHP

Composer Package

Official PHP SDK with full support for Laravel integration.

PHP 8.1+
Composer

Python

PyPI Package

Official Python SDK with support for asyncio and data science workflows.

Python 3.8+
pip

JavaScript / TypeScript

NPM Package

Official TypeScript SDK with full type definitions and browser support.

TypeScript
npm/yarn

Go

Go Module

Official Go SDK with high performance and minimal dependencies.

Go 1.19+
go get

Ruby

RubyGem

Official Ruby SDK with Rails integration and idiomatic Ruby code.

Ruby 2.7+
gem

Java

Maven Package

Official Java SDK with Spring Boot integration and async support.

Java 11+
Maven

Quick Start

All SDKs follow a similar pattern. Here are examples to get you started:

Installation

composer require forecastapi/php-sdk

Usage

use ForecastAPI\Client;

$client = new Client('your-api-key');
$forecast = $client->forecast([
    'data' => [
        ['date' => '2024-01', 'value' => 100],
        ['date' => '2024-02', 'value' => 120],
        ['date' => '2024-03', 'value' => 110],
    ],
    'periods' => 6,
    'frequency' => 'M',
    'data_type' => 'sales'
]);

echo $forecast['result']['forecast_value'];

OpenAPI Specification

Our OpenAPI specification allows you to generate SDKs for any language or framework that supports OpenAPI 3.0.3. This is perfect if you need:

Custom Integrations

Generate SDKs for specific frameworks or languages not covered by our official SDKs.

Type Safety

Generate typed clients that match our API schema exactly.

Documentation

Use the spec to generate interactive API documentation.

Download OpenAPI Spec

Download openapi.yaml

Download our complete OpenAPI 3.0.3 specification and use it with tools like:

OpenAPI Generator Swagger Codegen Postman Insomnia

Need Help?

If you need help with any SDK or have questions about integration, our support team is here to help.