Skip to main content
GET
/
api
/
taxii2
/
api
/
collections
/
{collectionId}
/
objects
/
Pull recent indicators
curl -H "Authorization: Bearer sk_live_..." \
  -H "Accept: application/taxii+json;version=2.1" \
  "https://socdefenders.ai/api/taxii2/api/collections/soc-defenders-network/objects/?added_after=2026-05-16T00:00:00Z&limit=500"
import requests
import time

KEY = "sk_live_..."
COLLECTION = "soc-defenders-all"
checkpoint = "2026-05-16T00:00:00Z"

while True:
r = requests.get(
f"https://socdefenders.ai/api/taxii2/api/collections/{COLLECTION}/objects/",
headers={"Authorization": f"Bearer {KEY}", "Accept": "application/taxii+json;version=2.1"},
params={"added_after": checkpoint, "limit": 1000},
)
r.raise_for_status()
bundle = r.json()
for obj in bundle.get("objects", []):
ingest_stix(obj)
checkpoint = r.headers.get("X-TAXII-Date-Added-Last", checkpoint)
if len(bundle.get("objects", [])) < 1000:
time.sleep(300) # No more data — back off
const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};

fetch('https://socdefenders.ai/api/taxii2/api/collections/{collectionId}/objects/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://socdefenders.ai/api/taxii2/api/collections/{collectionId}/objects/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://socdefenders.ai/api/taxii2/api/collections/{collectionId}/objects/"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("X-API-Key", "<api-key>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://socdefenders.ai/api/taxii2/api/collections/{collectionId}/objects/")
.header("X-API-Key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://socdefenders.ai/api/taxii2/api/collections/{collectionId}/objects/")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "type": "bundle",
  "id": "bundle--12345678-1234-1234-1234-123456789abc",
  "objects": [
    {
      "type": "identity",
      "spec_version": "2.1",
      "id": "identity--f8e75d96-8e4c-4b1a-9e3d-4f8a7b6c5d3e",
      "created": "2024-01-01T00:00:00.000Z",
      "modified": "2026-05-17T10:30:00.000Z",
      "name": "SOC Defenders",
      "identity_class": "organization"
    },
    {
      "type": "indicator",
      "spec_version": "2.1",
      "id": "indicator--00000000-0000-4000-8000-000000000001",
      "created": "2026-05-16T08:21:30Z",
      "modified": "2026-05-16T08:21:30Z",
      "created_by_ref": "identity--f8e75d96-8e4c-4b1a-9e3d-4f8a7b6c5d3e",
      "object_marking_refs": [
        "marking-definition--bab4a63c-aed9-4cf5-a766-dfca5abac2bb"
      ],
      "name": "Malicious Domain - c2.example.com",
      "indicator_types": [
        "malicious-activity"
      ],
      "pattern": "[domain-name:value = 'c2.example.com']",
      "pattern_type": "stix",
      "valid_from": "2026-05-16T08:21:30Z",
      "confidence": 85,
      "labels": [
        "c2",
        "botnet"
      ]
    }
  ]
}
{
"error": {
"code": "missing_api_key",
"message": "API key is required. Include it in the Authorization header as \"Bearer sk_live_...\"",
"request_id": "req_abc123"
}
}
{
"error": {
"code": "insufficient_scope",
"message": "This endpoint requires the \"read:stix\" scope",
"details": {
"required_scope": "read:stix",
"your_scopes": [
"read:iocs"
],
"upgrade_url": "https://socdefenders.ai/export#pricing"
},
"request_id": "req_abc123"
}
}
{
"error": {
"code": "not_found",
"message": "The requested resource was not found",
"request_id": "req_abc123"
}
}

Authorizations

X-API-Key
string
header
required

API key in X-API-Key header

Path Parameters

collectionId
string
required

Collection ID from the list endpoint (e.g. soc-defenders-all, soc-defenders-network, soc-defenders-hashes).

Example:

"soc-defenders-network"

Query Parameters

added_after
string<date-time>

Return only objects added to the collection after this timestamp. Canonical delta-poll mechanism — save the response's X-TAXII-Date-Added-Last header value and pass it back here on the next request.

Example:

"2026-05-16T00:00:00Z"

limit
integer
default:100

Max objects per response (max 1000). For deep pulls, walk forward via added_after rather than skipping.

Required range: x <= 1000
Example:

500

type
string

Filter by STIX object type. indicator is the most common — narrows the bundle to just IOC indicators (no identity/marking-definition objects).

Example:

"indicator"

Response

STIX 2.1 bundle of objects in the collection. Use X-TAXII-Date-Added-Last for delta-poll continuation.

type
enum<string>
Available options:
bundle
id
string
Pattern: ^bundle--[0-9a-f-]+$
objects
object[]