SDK

Call FuryStream from your own code in one line.

Availability

Official packages for Python, PHP and JavaScript are in development and not published yet.

The snippets below use plain HTTP with an API key. They work today and will keep working when the packages arrive.

One-line snippets

Run the setup lines once, then each snippet is a single call. Put your key in the FURY_KEY environment variable.

List your files

Python

import os, requests
BASE = "https://furystream.com/api/v1"
KEY = os.environ["FURY_KEY"]
requests.get(BASE + "/files", headers={"Authorization": "Bearer " + KEY}).json()["data"]

PHP

$base = "https://furystream.com/api/v1";
$key = getenv("FURY_KEY");
json_decode(file_get_contents($base . "/files", false, stream_context_create(["http" => ["header" => "Authorization: Bearer $key"]])), true)["data"];

JavaScript

const BASE = "https://furystream.com/api/v1";
const KEY = process.env.FURY_KEY;
(await (await fetch(BASE + "/files", { headers: { Authorization: `Bearer ${KEY}` } })).json()).data;

Total views for the last 30 days

Python

requests.get(BASE + "/stats/summary", headers={"X-API-Key": KEY}).json()["totals"]["views"]

PHP

json_decode(file_get_contents($base . "/stats/summary", false, stream_context_create(["http" => ["header" => "X-API-Key: $key"]])), true)["totals"]["views"];

JavaScript

(await (await fetch(BASE + "/stats/summary", { headers: { "X-API-Key": KEY } })).json()).totals.views;

Integrations

  • Developer API

    Available

    Read files, statistics, uploads and earnings. Available now.

  • Embed code

    Available

    iframe and script tags for any website. Available now.

  • Platform plugins

    In development

    WordPress, XenForo and more. In development, see the list.

  • Language packages

    In development

    Python, PHP and JavaScript packages. In development.