SourceSage Data API

SourceSage Data API

  • Docs
  • Help

›Getting Started

Getting Started

  • Overview
  • Get an API Key
  • Project Configuration

Globals

  • Trade terms
  • Packaging
  • Currencies
  • Ports
  • Quantity Units

Data Items

  • Data Items
  • Data Item Price

Products

  • Products
  • Latest Price

Project Configuration

Config your project to call our APIs to get data. Currently, we support RESTful API.

Base Url

Make sure you have API key and the base URL is:

https://api.sourcesage.co/api/v2.1

Do Not Have an API Key? Get one here!

Example configuration

With nodejs project

Setup for headers of per request with Authorization contain API key

const axios = require("axios");

const base_url = "https://api.sourcesage.co/api/v2.1";
const headers = {
  "X-SS-EXTERNAL-TOKEN": `${"your-access-token-here"}`
};

axios
  .get(`${base_url}/trade-terms`, {
    headers
  })
  .then(response => {
    console.log(response.data);
  })
  .catch(error => {
    console.error(error);
  });
← Get an API KeyTrade terms →
  • Base Url
  • Example configuration
    • With nodejs project
SourceSage Data API
Docs
Getting StartedProduct ListAPI Reference
Community
User Showcase
Copyright © 2020 SourceSage