curl --request GET \
--url https://api.projectdiscovery.io/v2/template/search \
--header 'X-API-Key: <api-key>'
{
"results": [
{
"uri": "<string>",
"id": "<string>",
"name": "<string>",
"author": [
"<string>"
],
"tags": [
"<string>"
],
"severity": "<string>",
"type": "<string>",
"dir": "<string>",
"ref": "<string>",
"vendor": "<string>",
"product": "<string>",
"classification": {
"cve-id": [
"<string>"
],
"cwe-id": [
"<string>"
],
"cvss-metrics": "<string>",
"cvss-score": 123,
"epss-score": 123,
"epss-percentile": 123,
"cpe": "<string>"
},
"metadata": {},
"digest": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"release_tag": "<string>",
"is_early": true,
"raw": "<string>",
"template_id": "<string>",
"description": "<string>",
"filename": "<string>",
"impact": "<string>",
"ai_meta": {
"model_used": "<string>",
"is_prompt_by_human": true,
"is_template_by_human": true,
"prompt": "<string>"
},
"references": [
"<string>"
],
"template_type": "public",
"is_draft": true,
"is_github": true,
"is_new": true,
"is_pdresearch": true,
"is_pdteam": true,
"is_pdtemplate": true,
"remediation": "<string>"
}
],
"total": 123,
"count": 123,
"facets": {
"is_new": {
"buckets": {},
"missing": 123,
"other": 123,
"total": 123
},
"creation_stats": {
"buckets": {},
"missing": 123,
"other": 123,
"total": 123
},
"author": {
"buckets": {},
"missing": 123,
"other": 123,
"total": 123
},
"is_early": {
"buckets": {},
"missing": 123,
"other": 123,
"total": 123
},
"dir": {
"buckets": {},
"missing": 123,
"other": 123,
"total": 123
},
"product": {
"buckets": {},
"missing": 123,
"other": 123,
"total": 123
},
"severity": {
"buckets": {},
"missing": 123,
"other": 123,
"total": 123
},
"tags": {
"buckets": {},
"missing": 123,
"other": 123,
"total": 123
},
"type": {
"buckets": {},
"missing": 123,
"other": 123,
"total": 123
},
"vendor": {
"buckets": {},
"missing": 123,
"other": 123,
"total": 123
}
},
"message": "<string>"
}
Search templates with filtering, sorting, and faceting capabilities
curl --request GET \
--url https://api.projectdiscovery.io/v2/template/search \
--header 'X-API-Key: <api-key>'
{
"results": [
{
"uri": "<string>",
"id": "<string>",
"name": "<string>",
"author": [
"<string>"
],
"tags": [
"<string>"
],
"severity": "<string>",
"type": "<string>",
"dir": "<string>",
"ref": "<string>",
"vendor": "<string>",
"product": "<string>",
"classification": {
"cve-id": [
"<string>"
],
"cwe-id": [
"<string>"
],
"cvss-metrics": "<string>",
"cvss-score": 123,
"epss-score": 123,
"epss-percentile": 123,
"cpe": "<string>"
},
"metadata": {},
"digest": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"release_tag": "<string>",
"is_early": true,
"raw": "<string>",
"template_id": "<string>",
"description": "<string>",
"filename": "<string>",
"impact": "<string>",
"ai_meta": {
"model_used": "<string>",
"is_prompt_by_human": true,
"is_template_by_human": true,
"prompt": "<string>"
},
"references": [
"<string>"
],
"template_type": "public",
"is_draft": true,
"is_github": true,
"is_new": true,
"is_pdresearch": true,
"is_pdteam": true,
"is_pdtemplate": true,
"remediation": "<string>"
}
],
"total": 123,
"count": 123,
"facets": {
"is_new": {
"buckets": {},
"missing": 123,
"other": 123,
"total": 123
},
"creation_stats": {
"buckets": {},
"missing": 123,
"other": 123,
"total": 123
},
"author": {
"buckets": {},
"missing": 123,
"other": 123,
"total": 123
},
"is_early": {
"buckets": {},
"missing": 123,
"other": 123,
"total": 123
},
"dir": {
"buckets": {},
"missing": 123,
"other": 123,
"total": 123
},
"product": {
"buckets": {},
"missing": 123,
"other": 123,
"total": 123
},
"severity": {
"buckets": {},
"missing": 123,
"other": 123,
"total": 123
},
"tags": {
"buckets": {},
"missing": 123,
"other": 123,
"total": 123
},
"type": {
"buckets": {},
"missing": 123,
"other": 123,
"total": 123
},
"vendor": {
"buckets": {},
"missing": 123,
"other": 123,
"total": 123
}
},
"message": "<string>"
}
Scope of templates to search (public or private)
public
, private
, public_private
Maximum number of results to return
Number of results to skip for pagination
Specific fields to return in the response
Field to sort results in ascending order
Field to sort results in descending order
Search query string
Whether to highlight search matches in results
Number of facets to return in the response
Successful search response
The response is of type object
.
Was this page helpful?