Skip to main content

user_agents

Creates, updates, deletes, gets or lists a user_agents resource.

Overview​

Nameuser_agents
TypeResource
Idcloudflare.radar.user_agents

Fields​

The following fields are returned by SELECT queries:

Successful response.

NameDatatypeDescription
metaobjectMetadata for the results.
top_0array

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectlimit, name, userAgentCategory, date, domainCategory, directive, formatRetrieves the top user agents on robots.txt files.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
datearrayFilters results by the specified array of dates.
directivestringFilters results by robots.txt directive.
domainCategoryarrayFilters results by domain category.
formatstringFormat in which results will be returned.
limitintegerLimits the number of objects returned in the response.
namearrayArray of names used to label the series in the response.
userAgentCategorystringFilters results by user agent category.

SELECT examples​

Retrieves the top user agents on robots.txt files.

SELECT
meta,
top_0
FROM cloudflare.radar.user_agents
WHERE limit = '{{ limit }}'
AND name = '{{ name }}'
AND userAgentCategory = '{{ userAgentCategory }}'
AND date = '{{ date }}'
AND domainCategory = '{{ domainCategory }}'
AND directive = '{{ directive }}'
AND format = '{{ format }}'
;