Module: Api::Datadive

Defined in:
app/services/api/datadive.rb,
app/services/api/datadive/error.rb,
app/services/api/datadive/client.rb

Overview

Namespace + factory for the DataDive Amazon product-research API client.

DataDive (https://datadive.tools) is an Amazon seller / market-research
platform. This wraps its public v1 REST API
(https://developer.datadive.tools/docs#/v1) so any part of the app —
workers, services, controllers, or the Sunny assistant
(Assistant::DatadiveToolBuilder) — can pull Niche research, keyword
lists, competitor stats, Rank Radar rankings, and per-fulfillment-center
seller inventory without re-implementing auth/transport.

Only the read-only (GET) surface is implemented. The token-consuming and
destructive write endpoints (Niche Dive / Rank Radar creation,
AI-copywriter, DELETEs) are intentionally omitted — add them deliberately
when a concrete need exists, since they spend DataDive credits or destroy
research data.

See Also:

Defined Under Namespace

Classes: Client, Error

Class Method Summary collapse

Class Method Details

.clientApi::Datadive::Client

Build a DataDive client from the encrypted credentials
(datadive => api_key). A fresh instance per call avoids sharing a
Faraday connection across threads.



27
28
29
# File 'app/services/api/datadive.rb', line 27

def self.client
  Client.new(api_key: Heatwave::Configuration.fetch(:datadive, :api_key))
end