INITIAL SETUP
Learn how to get started with CreditRiskMonitor API.
Prerequisites
Before you begin, you’ll need:
- An active account on api.creditriskmonitor.com
- API credentials (username and password)
To get started, request developer access here. This allows you to test the APIs and evaluate if they meet your specific needs before committing to a full account.
Authentication Process
Generate Session Key
Your first API call should be to the login endpoint to obtain a :
A successful login returns a response containing a :
There is a rate limit based on the type of user account you have:
User Type | Requests per hour |
---|---|
Ordinary | 10 |
API Developer | 200 |
API User | no limit |
Each request will return three headers that describe the rate limit values.
Header Name | Description |
---|---|
X-RateLimit-Limit | The maximum number of request the user is allowed per hour. |
X-RateLimit-Remaining | The number of requests remaining for the current hour. |
X-RateLimit-Reset | The number of seconds until a new quota of requests is allocated to the user. |
Use Session Key
Include the in the header of all subsequent API requests. For example, a subsequent request to the News endpoint would be:
Important notes:
- All API endpoints require a valid
- Requests without a valid session key will return an error
- Session keys expire after a period of inactivity
- If your session key expires, simply generate a new one by logging in again
The API can respond in either XML or JSON, defined by setting the parameter.
Querying Business Info
In this example, we will write Python code to get basic business info using CreditRiskMonitor API.
Let’s define our CRMZApi
class function.
Finally, let’s create a function to get information from a business:
By running this code, you will get the output for Tesla Inc as follows:
Add more API endpoints to the CRMZ API Class to easily access other data points in your code.
This fast configuration demonstrates how to create a basic code to extract data from CreditRiskMonitor. You can go ahead and expand on this workflow to suit your particular requirements.
Next Steps
Having engaged swiftly with our APIs, it’s now the moment to delve into additional possibilities:
Was this page helpful?