FinanceFlowAPI Financial Data API Documentation

Welcome to the FinanceFlow API, your ultimate financial data API for accessing real-time and historical market data. Explore commodities, government bonds, economic events, stock indices, currency pairs, and over 511,000+ stock tickers like AAPL, TSLA, and GOOGL. Our open-source documentation is now available on GitHub, making it easier to integrate and contribute.

Sign up for a free API key (200 requests/month) or upgrade to Standard ($15/month) or Premium ($30/month) plans. Star our GitHub repo to stay updated!

Basic Principles

  • API Key: Get yours from your account dashboard.
  • Base URL: https://financeflowapi.com/api/v1/
  • Endpoints: Examples include ticker-spot, commodity-spot, currency-spot.
  • Authentication: api_key is required for all requests.

Code Examples

Python Example (Stock Ticker):

import requests

API_KEY = 'your_api_key'
url = f'https://financeflowapi.com/api/v1/ticker-spot?api_key={API_KEY}&ticker=AAPL'

response = requests.get(url)
data = response.json()

print(data)
                    

JavaScript Example (Stock Ticker):

const API_KEY = 'your_api_key';
const url = `https://financeflowapi.com/api/v1/ticker-spot?api_key=${API_KEY}&ticker=AAPL`;

fetch(url)
  .then(response => response.json())
  .then(data => console.log(data))
  .catch(error => console.error('Error:', error));
                    

PHP Example (Stock Ticker):

<?php
$api_key = 'your_api_key';
$url = "https://financeflowapi.com/api/v1/ticker-spot?api_key=$api_key&ticker=AAPL";

$response = file_get_contents($url);
$data = json_decode($response, true);

print_r($data);
?>
                    

Important: Requests require a valid API key. Get yours now and start building!

Commodity API - Real-Time and Historical Market Data

The Commodity API delivers real-time and historical data for commodities like gold, oil, and coal. Ideal for financial analysts and traders, it provides reliable pricing and trends. Explore the full documentation on GitHub.

Base URL

https://financeflowapi.com/api/v1/

All endpoints follow this base URL.

1. Supported Commodities List

Endpoint: /commodity-catalog

Lists all supported commodities (e.g., aluminum, barley).

Request Parameters:

  • api_key (string, required) - Your unique API key.

Request Example:

GET https://financeflowapi.com/api/v1/commodity-catalog?api_key=YOUR_API_KEY

Response Example:

{
    "success": true,
    "code": 200,
    "message": "OK",
    "meta": {
        "timestamp": 1740778358,
        "request_id": "67c22b7644819"
    },
    "data": [
        {"name": "aluminum"},
        {"name": "barley"},
        ...
    ]
}
                        

2. Real-Time Commodity Price

Endpoint: /commodity-spot

Retrieves the latest price for a specific commodity.

Request Parameters:

  • name (string, required) - The commodity name (e.g., "coal").
  • api_key (string, required) - Your unique API key.

Request Example:

GET https://financeflowapi.com/api/v1/commodity-spot?api_key=YOUR_API_KEY&name=Coal

Response Example:

{
    "success": true,
    "code": 200,
    "message": "OK",
    "meta": {
        "timestamp": 1740775729,
        "request_id": "67c221313880a"
    },
    "data": {
        "commodity_name": "coal",
        "current_price": 100.1,
        "daily_change": "2.30",
        "daily_change_percent": "-2.25%",
        "weekly_change_percent": "-3.29%",
        "monthly_change_percent": "-12.99%",
        "ytd_change_percent": "-20.08%",
        "yearly_change_percent": "-23.59%",
        "last_updated": "2024-09-20"
    }
}
                        

3. Historical Commodity Data

Endpoint: /commodity-history

Provides historical price data for a commodity over a period (max 100 days).

Request Parameters:

  • name (string, required) - The commodity name (e.g., "gold").
  • interval (string, required) - Data interval: day or month.
  • date_from (string, optional) - Start date (YYYY-MM-DD).
  • date_to (string, optional) - End date (YYYY-MM-DD).
  • api_key (string, required) - Your unique API key.

Request Example:

GET https://financeflowapi.com/api/v1/commodity-history?api_key=YOUR_API_KEY&name=Gold&interval=day&date_from=2025-01-01&date_to=2025-01-31

Response Example:

{
    "success": true,
    "code": 200,
    "message": "OK",
    "meta": {
        "timestamp": 1740776956,
        "request_id": "67c225fc0cf7a"
    },
    "data": [
        {"date": "2025-01-31", "price": 2797.16},
        {"date": "2025-01-30", "price": 2796.18},
        ...
    ]
}
                        

Conclusion: The Commodity API is your go-to for real-time and historical commodity data. Integrate it today and explore detailed docs on GitHub. Start now!

Government Bonds API - Real-Time and Historical Bond Yields

The Government Bonds API provides real-time and historical yield data for bonds from countries like the US and Germany. Essential for investors and analysts, it’s now fully documented on GitHub.

Base URL

https://financeflowapi.com/api/v1/

All endpoints follow this base URL.

1. Supported Countries List

Endpoint: /bonds-catalog

Lists countries with available bond data (e.g., Australia, Austria).

Request Parameters:

  • api_key (string, required) - Your unique API key.

Request Example:

GET https://financeflowapi.com/api/v1/bonds-catalog?api_key=YOUR_API_KEY

Response Example:

{
    "success": true,
    "code": 200,
    "message": "OK",
    "meta": {
        "timestamp": 1740777157,
        "request_id": "67c226c5a42f6"
    },
    "data": [
        {"bond_country": "australia"},
        {"bond_country": "austria"},
        ...
    ]
}
                        

2. Real-Time Government Bond Yields

Endpoint: /bonds-spot

Retrieves real-time yield data for bonds by country and maturity type.

Request Parameters:

  • country (string, required) - Country name (e.g., "united_states").
  • region (string, optional) - Region filter (e.g., "europe").
  • type (string, optional) - Bond maturity type (e.g., "10y", "6m").
  • api_key (string, required) - Your unique API key.

Request Example:

GET https://financeflowapi.com/api/v1/bonds-spot?api_key=YOUR_API_KEY&country=united_states&type=10y

Response Example:

{
    "success": true,
    "code": 200,
    "message": "OK",
    "meta": {
        "timestamp": 1740777735,
        "request_id": "67c2290775514"
    },
    "data": [
        {
            "bond_country": "united_states",
            "bond_yield": 4.215,
            "bond_type": "10Y",
            "daily_bond_change": "0.0500",
            "weekly_bond_change_percent": "-0.22%",
            "monthly_bond_change_percent": "-0.33%",
            "ytd_bond_value_change": "-0.36%",
            "yearly_bond_change_percent": "-0.04%",
            "last_updated": "2024-09-11 21:22:12"
        }
    ]
}
                        

3. Historical Government Bond Yields

Endpoint: /bonds-history

Provides historical yield data for bonds over a period (max 100 days).

Request Parameters:

  • frequency (string, optional) - Data interval: day or month.
  • country (string, required) - Country name (e.g., "germany").
  • type (string, optional) - Bond maturity type (e.g., "10y").
  • date_from (string, optional) - Start date (YYYY-MM-DD).
  • date_to (string, optional) - End date (YYYY-MM-DD).
  • api_key (string, required) - Your unique API key.

Request Example:

GET https://financeflowapi.com/api/v1/bonds-history?api_key=YOUR_API_KEY&country=united_states&type=10y&frequency=day&date_from=2025-01-01&date_to=2025-01-31

Response Example:

{
    "success": true,
    "code": 200,
    "message": "OK",
    "meta": {
        "timestamp": 1740777901,
        "request_id": "67c229ad838c9"
    },
    "data": [
        {"date": "2025-01-31", "bond_type": "10y", "price": 4.541},
        {"date": "2025-01-30", "bond_type": "10y", "price": 4.519},
        ...
    ]
}
                        

Conclusion: The Government Bonds API empowers you with precise bond yield data. Check the full docs on GitHub and start integrating!

Financial Calendar API - Key Economic Events

The Financial Calendar API delivers schedules of economic events like PMI and GDP reports for countries worldwide. Crucial for traders and analysts, it’s fully documented on GitHub.

Base URL

https://financeflowapi.com/api/v1/

All endpoints follow this base URL.

1. Supported Countries List

Endpoint: /calendar-catalog

Lists countries with available financial calendar data.

Request Parameters:

  • api_key (string, required) - Your unique API key.

Request Example:

GET https://financeflowapi.com/api/v1/calendar-catalog?api_key=YOUR_API_KEY

Response Example:

{
    "success": true,
    "code": 200,
    "message": "OK",
    "meta": {
        "timestamp": 1740778132,
        "request_id": "67c22a948bc91"
    },
    "data": [
        {"country": "Afghanistan"},
        {"country": "Albania"},
        ...
    ]
}
                        

2. Financial Calendar

Endpoint: /financial-calendar

Retrieves upcoming economic events for a country or globally (max 60 days).

Request Parameters:

  • country (string, required) - Country name (e.g., "United States").
  • date_from (string, optional) - Start date (YYYY-MM-DD).
  • date_to (string, optional) - End date (YYYY-MM-DD).
  • api_key (string, required) - Your unique API key.

Request Example:

GET https://financeflowapi.com/api/v1/financial-calendar?api_key=YOUR_API_KEY&country=United States&date_from=2025-03-01&date_to=2025-03-07

Response Example:

{
    "success": true,
    "code": 200,
    "message": "OK",
    "meta": {
        "timestamp": 1740778240,
        "request_id": "67c22b003df2b"
    },
    "data": [
        {
            "country": "United States",
            "report_name": "S&P Global Manufacturing PMI Final",
            "actual": "",
            "previous": "51.2",
            "consensus": "51.6",
            "economicImpact": "Moderate",
            "report_date": "02",
            "datetime": "2025-03-03 14:45:00"
        },
        ...
    ]
}
                        

Conclusion: Stay ahead with the Financial Calendar API. View detailed docs on GitHub and get started!

World Economic Indicators API - Real-Time Economic Data

The World Economic Indicators API provides real-time and historical data on indicators like consumer credit and PMI. Perfect for economists and investors, it’s documented on GitHub.

Base URL

https://financeflowapi.com/api/v1/

All endpoints follow this base URL.

Endpoint

Endpoint: /world-indicators

Retrieves economic indicator data for a specific country.

Request Parameters:

  • api_key (string, required) - Your unique API key.
  • country (string, required) - Country name (e.g., "germany").
  • indicator_name (string, optional) - Indicator name (e.g., "Consumer Credit").

Request Example:

GET https://financeflowapi.com/api/v1/world-indicators?api_key=YOUR_API_KEY&country=germany&indicator_name=Consumer%20Credit

Response Example:

{
    "success": true,
    "code": 200,
    "message": "OK",
    "meta": {
        "timestamp": 1741363821,
        "request_id": "67cb1a6d8f942"
    },
    "data": [
        {
            "country": "Germany",
            "indicator_name": "Consumer Credit",
            "last": "235944000000.0",
            "previous": "235183000000.0",
            "units": "EUR",
            "report_date": "2024-12"
        }
    ]
}
                        

Conclusion: Track global trends with the World Economic Indicators API. See full docs on GitHub and start now!

Stock Index Spot API - Real-Time Index Data

The Stock Index Spot API delivers real-time data for global indices like DE40 and S&P 500. Essential for market monitoring, it’s detailed on GitHub.

Base URL

https://financeflowapi.com/api/v1/

All endpoints follow this base URL.

1. Supported Benchmark List

Endpoint: /index-catalog

Lists available stock indices (e.g., ASX200, DE40).

Request Parameters:

  • api_key (string, required) - Your unique API key.

Request Example:

GET https://financeflowapi.com/api/v1/index-catalog?api_key=YOUR_API_KEY

Response Example:

{
    "success": true,
    "code": 200,
    "message": "OK",
    "meta": {
        "timestamp": 1743339544,
        "request_id": "67e9401854175"
    },
    "data": [
        {"benchmark": "adx general"},
        {"benchmark": "ase"},
        {"benchmark": "aspi"},
        {"benchmark": "ASX200"}
    ]
}
                        

2. Stock Index Spot Data

Endpoint: /index-spot

Retrieves real-time data for a specific index by country or benchmark.

Request Parameters:

  • api_key (string, required) - Your unique API key.
  • country (string, optional) - Country name (e.g., "germany").
  • benchmark (string, optional) - Benchmark name (e.g., "de40"). Use either country or benchmark.

Request Examples:

By Country:

GET https://financeflowapi.com/api/v1/index-spot?api_key=YOUR_API_KEY&country=germany

By Benchmark:

GET https://financeflowapi.com/api/v1/index-spot?api_key=YOUR_API_KEY&benchmark=de40

Response Example:

{
    "success": true,
    "code": 200,
    "message": "OK",
    "meta": {
        "timestamp": 1743340626,
        "request_id": "67e94452c1b30"
    },
    "data": {
        "benchmark": "de40",
        "country": "germany",
        "region": "europe",
        "price": 22462,
        "daily_change": "217",
        "daily_change_percent": "-0.96%",
        "monthly_change_percent": "-2.96%",
        "yearly_change_percent": "22.85%",
        "last_updated": "2025-03-28"
    }
}
                        

Conclusion: Monitor global indices with the Stock Index Spot API. Full docs on GitHub. Get started!

Stock Tickers API - Real-Time and Historical Data for 511,000+ Tickers

The Stock Tickers API delivers real-time and historical financial data for over 511,000+ stock tickers, including popular stocks like AAPL, TSLA, GOOGL, MSFT, and AMZN. Whether you’re building trading platforms, portfolio trackers, or financial analytics tools, this financial data API provides comprehensive market insights. Access ticker metadata, real-time prices, and historical candlestick data with flexible filtering. Full documentation is available on GitHub.

Base URL

https://financeflowapi.com/api/v1/

All endpoints follow this base URL.

1. Tickers Catalog

Endpoint: /tickers-catalog

Lists up to 300 tickers per page, with filters for exchange or ticker. Ideal for discovering available stocks and their metadata.

Request Parameters:

  • api_key (string, required) - Your unique API key.
  • exchange (string, optional) - Exchange filter (e.g., "NYSE").
  • ticker (string, optional) - Specific ticker (e.g., "GOOGL").
  • page (integer, optional) - Page number (default: 1).

Request Examples:

All tickers (first page):

GET https://financeflowapi.com/api/v1/tickers-catalog?api_key=YOUR_API_KEY

Filter by exchange (NYSE):

GET https://financeflowapi.com/api/v1/tickers-catalog?api_key=YOUR_API_KEY&exchange=NYSE

Filter by ticker (GOOGL):

GET https://financeflowapi.com/api/v1/tickers-catalog?api_key=YOUR_API_KEY&ticker=GOOGL

Second page:

GET https://financeflowapi.com/api/v1/tickers-catalog?api_key=YOUR_API_KEY&page=2

Response Example:

{
    "success": true,
    "code": 200,
    "message": "OK",
    "meta": {
        "page": 1,
        "total_pages": 2,
        "total_items": 425,
        "tickers_per_page": 300,
        "timestamp": 1745423861,
        "request_id": "68090df504b96"
    },
    "data": [
        {
            "ticker": "TOPS",
            "company_name": "Top Ships Inc.",
            "exchange": "ASE",
            "full_exchange_name": "NYSE American",
            "currency": "USD",
            "market": "us_market",
            "first_trade_date": "2004-08-02 13:30:00",
            "timezone": "America/New_York"
        },
        ...
    ]
}
                        

2. Real-Time Stock Ticker Data

Endpoint: /ticker-spot

Provides real-time price data for a specific ticker, perfect for live market monitoring.

Request Parameters:

  • api_key (string, required) - Your unique API key.
  • ticker (string, required) - Stock ticker symbol (e.g., "AAPL").

Request Example:

GET https://financeflowapi.com/api/v1/ticker-spot?api_key=YOUR_API_KEY&ticker=AAPL

Response Example:

{
    "success": true,
    "code": 200,
    "message": "OK",
    "meta": {
        "timestamp": 1745427151,
        "request_id": "68091acfb967b"
    },
    "data": {
        "ticker": "AAPL",
        "price": "203.890000",
        "change": "4.149994",
        "changePercent": "2.077698",
        "dayHigh": "208.000000",
        "dayLow": "202.799000",
        "volume": 29540691,
        "prevClose": "199.740000",
        "marketState": "REGULAR",
        "lastUpdated": "2025-04-23T16:51:33"
    }
}
                        

3. Historical Stock Ticker Candles

Endpoint: /ticker-candles

Retrieve historical candlestick data for a specific ticker, including open, low, close, adjusted close, and volume. Supports up to 366 days of daily data by default, with deeper historical access based on your subscription plan (Free, Standard, or Premium). Ideal for technical analysis, backtesting trading strategies, or building charting applications.

Request Parameters:

  • api_key (string, required) - Your unique API key.
  • ticker (string, required) - Stock ticker symbol (e.g., "AAPL").
  • date_from (string, optional) - Start date (YYYY-MM-DD). Must be within 366 days of date_to.
  • date_to (string, optional) - End date (YYYY-MM-DD). Defaults to current date if omitted.

Note: The period between date_from and date_to cannot exceed 366 days. Historical data depth depends on your subscription plan. Upgrade your plan for extended access.

Request Examples:

Latest 366 days of AAPL data:

GET https://financeflowapi.com/api/v1/ticker-candles?api_key=YOUR_API_KEY&ticker=AAPL

Filtered by date range (2000-01-01 to 2001-01-01):

GET https://financeflowapi.com/api/v1/ticker-candles?api_key=YOUR_API_KEY&ticker=AAPL&date_from=2000-01-01&date_to=2001-01-01

Response Examples:

Latest 366 days:

{
    "success": true,
    "code": 200,
    "message": "OK",
    "meta": {
        "timestamp": 1750770562,
        "request_id": "685aa38278651"
    },
    "data": [
        {
            "ticker": "AAPL",
            "open": "201.630005",
            "low": "198.960007",
            "close": "201.500000",
            "adj_close": "201.500000",
            "volume": 55595500,
            "date": "2025-06-23"
        },
        {
            "ticker": "AAPL",
            "open": "198.240005",
            "low": "196.860001",
            "close": "201.000000",
            "adj_close": "201.000000",
            "volume": 96813500,
            "date": "2025-06-20"
        },
        ...
    ]
}
                        

Filtered by date range (2000-01-01 to 2001-01-01):

{
    "success": true,
    "code": 200,
    "message": "OK",
    "meta": {
        "timestamp": 1750770700,
        "request_id": "685aa40c66995"
    },
    "data": [
        {
            "ticker": "AAPL",
            "open": "0.262277",
            "low": "0.258929",
            "close": "0.265625",
            "adj_close": "0.223528",
            "volume": 630336000,
            "date": "2000-12-29"
        },
        {
            "ticker": "AAPL",
            "open": "0.256696",
            "low": "0.255580",
            "close": "0.264509",
            "adj_close": "0.222589",
            "volume": 305177600,
            "date": "2000-12-28"
        },
        ...
    ]
}
                        

Conclusion: Empower your financial applications with the Stock Tickers API, offering real-time data and historical candlestick data for over 511,000+ tickers. Explore detailed documentation on GitHub and start building today!

Currency API - Real-Time Currency Pair Data

The Currency API provides real-time data for currency pairs like CHF/EUR and USD/JPY. Perfect for forex traders and financial applications, it updates every 1-3 minutes. Full details on GitHub.

Base URL

https://financeflowapi.com/api/v1/

All endpoints follow this base URL.

1. Currency Pairs Catalog

Endpoint: /currency-catalog

Lists all available currency pairs or filters pairs by a specific currency.

Request Parameters:

  • api_key (string, required) - Your unique API key.
  • currency (string, optional) - Currency code to filter pairs (e.g., "USD").

Request Examples:

All currency pairs:

GET https://financeflowapi.com/api/v1/currency-catalog?api_key=YOUR_API_KEY

Filter by currency (USD):

GET https://financeflowapi.com/api/v1/currency-catalog?api_key=YOUR_API_KEY&currency=USD

Response Example:

{
    "success": true,
    "code": 200,
    "message": "OK",
    "meta": {
        "timestamp": 1750598697,
        "request_id": "685804293fa96"
    },
    "data": [
        {"pair": "AED/CHF"},
        {"pair": "AUD/CHF"},
        {"pair": "BRL/CHF"},
        {"pair": "CAD/CHF"},
        ...
    ]
}
                        

2. Real-Time Currency Pair Data

Endpoint: /currency-spot

Provides real-time price data for a specific currency pair or all pairs for a given currency, updated every 1-3 minutes.

Request Parameters:

  • api_key (string, required) - Your unique API key.
  • pair (string, optional) - Currency pair (e.g., "CHF/EUR"). Use either pair or currency.
  • currency (string, optional) - Currency code to retrieve all related pairs (e.g., "USD").

Request Examples:

By currency pair (CHF/EUR):

GET https://financeflowapi.com/api/v1/currency-spot?api_key=YOUR_API_KEY&pair=CHF/EUR

By currency (USD):

GET https://financeflowapi.com/api/v1/currency-spot?api_key=YOUR_API_KEY&currency=USD

Response Examples:

By currency pair (CHF/EUR):

{
    "success": true,
    "code": 200,
    "message": "OK",
    "meta": {
        "timestamp": 1750596763,
        "request_id": "6857fc9b44fe0"
    },
    "data": [
        {
            "pair": "CHF/EUR",
            "price": "1.0636",
            "open": "1.0673",
            "bid": "1.0635",
            "ask": "1.0636",
            "high": "1.0679",
            "low": "1.0624",
            "chg": "0.0028",
            "chg_percent": "0.27%",
            "last_update": "2025-06-21 23:59:51"
        }
    ]
}
                        

By currency (USD):

{
    "success": true,
    "code": 200,
    "message": "OK",
    "meta": {
        "timestamp": 1750704788,
        "request_id": "6859a294d7897"
    },
    "data": [
        {
            "pair": "ADA/USD",
            "price": "0.5536",
            "open": "0.5421",
            "bid": "0.5535",
            "ask": "0.5536",
            "high": "0.5566",
            "low": "0.5292",
            "chg": "0.0113",
            "chg_percent": "2.08%",
            "last_update": "2025-06-22 00:00:30"
        },
        {
            "pair": "AED/USD",
            "price": "0.2723",
            "open": "0.2722",
            "bid": "0.2723",
            "ask": "0.2723",
            "high": "0.2723",
            "low": "0.2722",
            "chg": "0.0000",
            "chg_percent": "-0.01%",
            "last_update": "2025-06-22 00:00:30"
        },
        {
            "pair": "ALG/USD",
            "price": "0.1682",
            "open": "0.1609",
            "bid": "0.1679",
            "ask": "0.1683",
            "high": "0.1682",
            "low": "0.1584",
            "chg": "0.0079",
            "chg_percent": "4.93%",
            "last_update": "2025-06-22 00:00:30"
        },
        ...
    ]
}
                        

Conclusion: Enhance your forex applications with the Currency API, providing real-time currency pair data. Explore detailed docs on GitHub and start building!