# REST

Our API can be accessed by any client that support HTTPS. The examples shown will be in Javascript using the Axios library, but can easily be converted to the language of your choice.

# Examples

In order to keep examples simple, only the Axios request object will be shown for each method. That request object is then used by the following block of code in order to create the full request:

import axios from "axios";

const options = {...};

axios.request(options).then(function (response) {
  console.log(response.data);
}).catch(function (error) {
  console.error(error);
});

# Base URL

https://api.coinfactory.io

# Authentication

Add the Authorization header using the Bearer schema to each request requiring Authentication. Example: Authorization: Bearer <key>

# Limits

Your selected plan defines the maximum number of requests per minute before the API starts sending a 429 - Too many requests error.

# Cost

Unless specified otherwise, each endpoint costs 1 CPR

# Errors

We use status codes to let you know if a request has resulted in an error or has been successfull. In case of an error, the body of the response might provide some more info about the error and what can you do to solve it.