code: func (s *ScraperService) ListTargets(ctx context.Context) ([]platform.ScraperTarget, error) {
  	url, err := newURL(s.Addr, targetPath)
  	if err != nil {
  		return nil, err
  	}
  
  	query := url.Query()
  
  	req, err := http.NewRequest("GET", url.String(), nil)
  	if err != nil {
  		return nil, err
  	}
  
  	req.URL.RawQuery = query.Encode()
  	SetToken(s.Token, req)
  
  	hc := newClient(url.Scheme, s.InsecureSkipVerify)
  	resp, err := hc.Do(req)
  	if err != nil {
  		return nil, err
  	}
  	if err := CheckError(resp, true); err != nil {
  		return nil, err
  	}
  
  	var targetsResp getTargetsResponse
  	if err := json.NewDecoder(resp.Body).Decode(&targetsResp); err != nil {
  		return nil, err
  	}
  
  	targets := make([]platform.ScraperTarget, len(targetsResp.Targets))
  	for k, v := range targetsResp.Targets {
  		targets[k] = v.ScraperTarget
  	}
  
  	return targets, nil
  }
docs: // ListTargets returns a list of all scraper targets.