You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+43Lines changed: 43 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -284,6 +284,49 @@ The Feed API standard access pattern is to periodically request the most recent
284
284
- Either an `after=-60` query parameter, where (in this example) -60 indicates the previous 60 seconds.
285
285
- Or `after`and`before` query parameters for a time range, with each parameter accepting an ISO-8601UTC formatted timestamp (a UTC date and time of the formatYYYY-MM-DDThh:mm:ssZ)
286
286
287
+
### Feed parameters
288
+
289
+
The feed methods accept the following parameters, grouped by purpose. Availability depends on the feed (see the notes below the table).
290
+
291
+
#### Session Management Parameters
292
+
293
+
-`sessionID`: A custom string used to distinguish between different sessions. Required when using `fromBeginning`.
294
+
-`after`: Start of the query window. Either an integer offset relative to now in seconds (e.g. `-60`), or an absolute ISO8601UTC datetime (`YYYY-MM-DDTHH:MM:SSZ`).
295
+
-`before`: End of the query window (inclusive). Either an integer from`-1` to `-432000` (seconds before now), or an absolute ISO8601UTC datetime. The query window covers at most the most recent 5 days; a value older than 5 days returns no records.
296
+
-`fromBeginning`: Boolean (`true`/`false`/`1`/`0`, default `false`). Requires a valid `sessionID`. When `true` on the first request of a new session, returns the first hour of data in the time window instead of the last. Using it with an existing `sessionID` returns an HTTP406; using it without a `sessionID`orwith a non-boolean value returns an HTTP422.
-`domain`: Filter for an exact domain or a substring contained within a domain by prefixing or suffixing your substring with`*`.
306
+
-`overall_min`, `malware_min`, `phishing_min`, `spam_min`, `proximity_min`: Integer risk score thresholds (range`1` to `99`, optional). Available on the `realtime_domain_risk`and`domainhotlist` feeds only. When multiple are supplied they act as a logical AND — a domain must meet ALL specified thresholds to be returned.
-IP feed filters (available on the `iprisk`and`iphotlist` feeds only). All are optional integers/strings and combine as a logical AND:
314
+
- Domain activity & volume: `pdns_resolutions_min`, `bad_pdns_resolutions_min` (positive integers, distinct/bad domains resolving to the IPin the last 24 hours) and`total_domains_max` (positive integer; caps total hosted domains to filter out superhosters like CDNs).
315
+
- Threat intelligence & combined risk percentages: `third_party_threats_min` (positive integer), plus `all_threats_combined_percent_min`, `combined_phishing_percent_min`, `combined_malware_percent_min`, `combined_spam_percent_min` (percentages `0` to `100` of hosted domains confirmed or predicted malicious).
316
+
- Confirmed threat percentages: `all_threats_percent_min`, `percent_phishing_min`, `percent_malware_min`, `percent_spam_min` (percentages `0` to `100` of hosted domains actively confirmed).
317
+
- Infrastructure & geolocation: `asn` (integer, digits only — no `AS` prefix or wildcards), `organization` (exact name, no wildcards) and`country_code` (case-sensitive two-letter code, e.g. `CN`, `US`, `NL`).
-`output_format`: `csv`or`jsonl` (default `jsonl`). Not available on the `domainrdap` feed. `csv`isnot available for`download` endpoints.
327
+
-`headers`: When `csv` output is used, adds a header row to the first line of the response.
328
+
-`top`: Positive integer from`1` to `1,000,000,000` limiting the number of results in the response payload.
329
+
287
330
## Handling iterative response from RTUF endpoints:
288
331
289
332
Since we may dealing with large feeds datasets, the python wrapper uses `generator`for efficient memory handling. Therefore, we need to iterate through the `generator`if we're accessing the partial results of the feeds data.
0 commit comments