Installation
Quick Start
Client
NewClient(apiKey string) *Client
Creates a new API client. Connects to https://web-acq.wraithbytes.com automatically.
Methods
Fetch(ctx, req) (*FetchResponse, error)
Fetch and parse a URL. Returns a typed FetchResponse.
FetchRaw(ctx, req) ([]byte, error)
Same as Fetch but returns raw JSON bytes instead of unmarshaling. Useful when you need to handle the JSON yourself.
GetResults(ctx) (*ResultsResponse, error)
Retrieve past fetch results.
GetResultsRaw(ctx) ([]byte, error)
Same as GetResults but returns raw JSON bytes.