APIFreaks

APIFreaks provides RESTful APIs that accept request parameters via HTTP GET or HTTP POST. When sending API requests as HTTP POST, we accept the following content types:

  • application/json

All our APIs require requests to adhere to HTTP/1.x or HTTP/2 protocols, ensuring seamless compatibility and functionality across integrations.

Authorization

To make authorized requests to our APIs, pass the API key either as a header or as a query parameter. To obtain your API key, log in to the API Freaks dashboard. If your API key has been compromised, you can reset it by clicking the reset button on the dashboard.

Passing API Key in the Header

HeaderDescription
X-apiKey
Add your private API key to the request headers.

Passing API Key in the Query Parameter

ParameterDescription
apiKey
You can also pass your private API key as a query parameter.

Content Format

We support content negotiation through two methods: by using the format parameter or the Accept header.

ParameterDescription
format
Response format. Possible values are: (1) json (default) (2) xml
HeaderDescription
Accept
Standard content negotiation as specified in HTTP/1.x, allowing you to receive response bodies in either JSON or XML format.

Custom Response Headers

Each API endpoint has a designated rate limit of requests per minute (rpm), which resets every minute. Each successful response will include the following headers to assist you in managing your requests according to the rpm limits.

HeaderDescription
X-RateLimit-Allowed-Requests
Allowed requests per minute for the API endpoint
X-RateLimit-Remaining-Requests
Remaining requests out of the allowed limit for the API endpoint
X-RateLimit-Remaining-Time
Remaining time until the request count resets

HTTP Errors

In case of an API request failure, 4XX or 5XX HTTP status code will be set. The following specific error fields will also be set in the response body:

FieldTypeDescription
timestampString
Timestamp of the request formatted according to ISO 8601 standard. (YYYY-MM-DDTHH:MM:SS.sssZ)
pathString
Path of the request
statusInteger
HTTP status code
errorString
Specific Error
messageString
Instructions to resolve the error

Server-side Error Codes

The Error codes specific to API endpoint are listed in the respective documentation pages. In general, API Freaks can return the following HTTP error codes.

HTTP StatusReasons
400
Please provide apikey
400
please pass correct parameters
400
Please provide data in required format in request body (In case of HTTP POST requests)
401
Provided API key is invalid. [For Technical Support: support@apifreaks.com]
401
Credits subscription is deactivated.Please buy new plan or add one-off credits for using ApiFreaks [For Technical Support: support@apifreaks.com]
401
The Request IP is blocked to access this API.
402
Credits subscription is deactivated.Please buy new plan or add one-off credits for using ApiFreaks [For Technical Support: support@apifreaks.com]
402
Subscription credits allowed limit exceeded. Please buy new plan or add one-off credits for using APIFreaks
402
One-off Credits limit reached. Please buy subscription credits or add one-off credits to use APIFreaks.
402
Subscription surcharge credits limit exceeded. Please buy new plan or add one-off credits for using APIFreaks.
403
Your account is not active.[For Technical Support: support@apifreaks.com]
403
One-off Credits are not active Contact support: support@apifreaks.com
403
Credits subscription is not active. Contact Support: support@apifreaks.com
403
Subscription surcharge credits is inactive. Contact support: support@apifreaks.com
403
You need to be organization admin to access this endpoint.
403
Organization admin restricted you to use this API endpoint
413
Maximum request body size limit exceeded. (In case of HTTP POST request)
429
Please slow down. Requests per minute limit reached for this API endpoint.
500
Internal Server Error occurred [For Technical Support: support@apifreaks.com]
503
Service is unavailable. Please try after some time or contact support@apifreaks.com
504
Request is timed-out. Please contact at support@apifreaks.com