Skip to main content

Official Software SDKs

Generator Labs provides official SDKs for five popular programming languages. Each SDK is a full-featured client for the Generator Labs API v4.0 and covers all three API namespaces — RBL Monitoring, Contact Management, and Certificate Monitoring.

All SDKs share a consistent design and feature set:

  • Automatic retry with exponential backoff
  • Retry-After header support on HTTP 429 responses
  • Automatic pagination to fetch all results in a single call
  • Webhook signature verification (HMAC-SHA256)
  • Per-response rate limit information (IETF draft headers)
  • Configurable timeouts, retries, and backoff multiplier
  • Connection pooling
  • MIT license

Authentication

Every SDK authenticates using your Account SID and Auth Token, which you can find in the portal under Account ➡️ API Credentials.

Available SDKs

LanguagePackageMinimum VersionGitHub
Gogithub.com/generator-labs/go-sdkGo 1.21+generator-labs/go-sdk
Node.jsgeneratorlabs (npm)Node.js 18+generator-labs/node-sdk
PHPgeneratorlabs/sdk (Packagist)PHP 8.1+generator-labs/php-sdk
Pythongeneratorlabs (PyPI)Python 3.8+generator-labs/python-sdk
Rubygeneratorlabs (RubyGems)Ruby 3.0+generator-labs/ruby-sdk

Rate Limit Information

Every API response includes rate limit details. Access them using the appropriate accessor for your language:

LanguageRemainingReset
Goresponse.RateLimit.Remainingresponse.RateLimit.Reset
Node.jsresponse.rateLimitInfo.remainingresponse.rateLimitInfo.reset
PHP$response->rate_limit->remaining$response->rate_limit->reset
Pythonresponse.rate_limit_info.remainingresponse.rate_limit_info.reset
Rubyresponse.rate_limit_info.remainingresponse.rate_limit_info.reset

Error Handling

Each SDK raises language-idiomatic errors that you can catch and handle:

LanguageError TypePattern
Goerrorresult, err := ...
Node.jsExceptiontry / catch
PHPGeneratorLabs\Exceptiontry / catch
Pythongeneratorlabs.Exceptiontry / except
RubyGeneratorLabs::Errorbegin / rescue