Management APIs
Error Logs API
List
6 min
list error logs you can list all of the error logs currently set up on your account by making making a http get request to the /errorlogs endpoint error logs api rate limit there is no charge for requests to the error logs api however the it is subject to a rate limit of 60 requests per minute this limit includes requests made when accessing error logs via the https //app bigboxapi com/errorlogs in the event of the rate limit being hit an http 429 https //docs trajectdata com/bigboxapi/response codes will be returned parameters the following querystring (http get) parameters allow you to refine the results returned by the error logs list api true left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type example get get /errorlogs in the example below we list error logs on your account http https //api bigboxapi com/errorlogs?api key=demo$ curl "https //api bigboxapi com/errorlogs?api key=demo"const axios = require('axios'); const params = { api key 'demo' } axios get('https //api bigboxapi com/errorlogs?api key=demo') then(response => { const apiresponse = response data; console log("total error logs ", apiresponse results count total); apiresponse logs map((log, number) => console log((number + 1) + ' ' + log id); }) catch(error => { console error(error); });import requests import json params = { 'api key' 'demo' } api result = requests get('https //api bigboxapi com/errorlogs', { params }) api response = api result json()\<?php $querystring = http build query(\[ 'api key' => 'demo', ]); $ch = curl init(sprintf('%s?%s', 'https //api bigboxapi com/errorlogs', $querystring)); curl setopt($ch, curlopt returntransfer, true); curl setopt($ch, curlopt followlocation, true); \# the following options are required if you're using an outdated openssl version \# more details https //www openssl org/blog/blog/2021/09/13/letsencryptrootcertexpire/ curl setopt($ch, curlopt ssl verifyhost, false); curl setopt($ch, curlopt ssl verifypeer, false); curl setopt($ch, curlopt timeout, 180); $json = curl exec($ch); curl close($ch); $api result = json decode($json, true); print r($api result); echo "total error logs ", $api result\['results count total'], php eol; ?> bigbox api responds with the following json showing error logs from your account { "request info" { "success" true }, "logs" \[ { "id" "a566b6c63aa5a6b0a932827d45c4ecf195c491bc", "engine url" "url opened by api", "api url" "api request url", "date" "2020 01 01t00 00 00 000z", "count" 15, "parameters" { "param name" "param value" }, "result" { "request info" { "success" false, "message" "unable to fulfil your request at this time, please retry you have not been charged for this request " } } } ], "page" 1, "page count total" 1, "results count" 1, "results count total" 1 } bigbox api returns the following properties in the list error logs response true left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type next steps https //docs trajectdata com/bigboxapi/account api