Logo

API

Control and query your Helium account from any application in any language.

Last updated on: 2026-05-30

Overview

The Helium API allows you to manage your account, campaigns, ads, or generate reports. This documentation provides you the required information to successfully make use of the API. The Helium API is organized around REST. Our API is designed to have predictable, resource-oriented URLs and to use HTTP response codes to indicate API errors. We use built-in HTTP features, such as HTTP authentication and HTTP terminology, which are understood by off-the-shelf HTTP clients. JSON is returned in all responses from the API, including errors.

Authentication

You authenticate to the Helium API by providing your API key in the request. Keep your credentials secret. Authentication to the API occurs via HTTP Basic Auth. All API requests must be made over HTTPS. Calls made over plain HTTP will fail. You must authenticate for all requests. curl uses the -u flag to pass basic auth credentials. Adding a colon : after your API key will prevent it from asking you for a password. To receive data or make changes to your account, replace the example API key with your actual API key.

Errors

Helium uses conventional HTTP response codes to indicate success or failure of an API request. In general, codes in the 2xx range indicate success, codes in the 4xx range indicate an error that resulted from the provided information (e.g. a required parameter was missing or invalid), and codes in the 5xx range indicate an error with Helium's servers.

Get Advertiser

Returns the details of the advertiser account of the accessing user.

GET https://api.heliumads.com/v1/advertiser

Request Parameters

None, other than authentication.

Response Parameters

status Should return "success".
advertiser Contains the advertiser object.

Example

$ curl https://api.heliumads.com/v1/advertiser \
    -u helium_sk_8b3a7ac2963YCy1pnG0x0dPGBBPKTnoMNn1IZceL:

Create Ad

Creates an ad from the URL of an image or video in the advertiser account of the accessing user. Accepted formats are jpg, png, mp4. Your media file will be copied to Helium's servers for processing and storage.

POST https://api.heliumads.com/v1/ads

Request Parameters

url The URL of the image or video of the new ad.

Response Parameters

status Should return "success".
adId The id of the newly created ad.

Example

$ curl https://api.heliumads.com/v1/ads \
    -u helium_sk_8b3a7ac2963YCy1pnG0x0dPGBBPKTnoMNn1IZceL: \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"url":"https://www.example.com/media/my-video-12.mp4"}'
~ More coming soon! ~