On this page:
make-opencage-client

3 Client Construction🔗ℹ

procedure

(make-opencage-client api-key 
  [#:defaults defaults 
  #:auto-throttle? auto-throttle? 
  #:extra-headers extra-headers]) 
  opencage-client?
  api-key : string?
  defaults : (or/c hash? list?) = (hash)
  auto-throttle? : boolean? = #t
  extra-headers : (listof any/c) = '()
Create a new client. defaults supplies query parameters merged into every request. Parameters may be a hash, alist, or property list. Extra headers (each either a pair or full header string) are appended; a proper User-Agent is supplied automatically.

If auto-throttle? is true and the remaining rate limit reaches zero, the client will sleep until the reset time (capped to 60 seconds per call).