Skip to content
Start here

Get indicator feed data

client.Intel.IndicatorFeeds.Data(ctx, feedID, query) (*string, error)
GET/accounts/{account_id}/intel/indicator-feeds/{feed_id}/data

Retrieves the raw data entries in a custom threat indicator feed.

Security

API Email + API Key

The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

Example:X-Auth-Email: user@example.com

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

Example:X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194
Accepted Permissions (at least one required)
Intel WriteIntel Read
ParametersExpand Collapse
feedID int64

Indicator feed ID

query IndicatorFeedDataParams
AccountID param.Field[string]

Identifier

maxLength32
ReturnsExpand Collapse
type IndicatorFeedDataResponse string

Get indicator feed data

package main

import (
  "context"
  "fmt"

  "github.com/cloudflare/cloudflare-go"
  "github.com/cloudflare/cloudflare-go/intel"
  "github.com/cloudflare/cloudflare-go/option"
)

func main() {
  client := cloudflare.NewClient(
    option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"),
    option.WithAPIEmail("user@example.com"),
  )
  response, err := client.Intel.IndicatorFeeds.Data(
    context.TODO(),
    int64(12),
    intel.IndicatorFeedDataParams{
      AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
    },
  )
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", response)
}
Returns Examples