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);
});