---
updatedAt: 2026-04-16T09:29:31.000Z
agentTools:
  siteIndex: https://docs.jfrog.com/llms.txt
  projectIndex: https://docs.jfrog.com/artifactory/llms.txt
---

# Artifacts Not Downloaded Since

Returns all artifacts not downloaded since the specified Java epoch in milliseconds.
Optionally include only artifacts created before the specified `createdBefore` date, otherwise only artifacts created before `notUsedSince` are returned.
Can limit search to specific repositories (local or caches).

**Since:** 2.2.4

**Security:** Requires a privileged non-anonymous user


# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "JFrog Artifactory Searches API",
    "description": "REST API for searching artifacts, builds, and other items in JFrog Artifactory using various search methods including AQL, GAVC, property search, checksum search, and more.\n\n> **Important Note on Search Result Limits**\n>\n> All searches return limited results for internal and anonymous users (same limits as in the user interface).\n> To modify the default limit results, edit the `artifactory.system.properties` file with:\n> - `artifactory.search.limitAnonymousUsersOnly=false` (default is `true`)\n> - `artifactory.search.userQueryLimit` (default is `1000`)\n>\n> This applies to the following search APIs: Artifact Search, Archive Entries Search, GAVC Search, Property Search, Checksum Search (limited by UI max results),\n> Artifacts Not Downloaded Since, Artifacts With Date in Date Range, Artifacts Created in Date Range\n",
    "version": "1.0.0",
    "contact": {
      "name": "JFrog Support"
    }
  },
  "servers": [
    {
      "url": "https://{jfrog_url}/artifactory/api",
      "description": "JFrog Platform",
      "variables": {
        "jfrog_url": {
          "default": "myserver.jfrog.io",
          "description": "Your JFrog Platform hostname (e.g., mycompany.jfrog.io)"
        }
      }
    }
  ],
  "tags": [
    {
      "name": "Searches",
      "description": "Search operations for artifacts and builds"
    }
  ],
  "paths": {
    "/search/usage": {
      "get": {
        "tags": [
          "Searches"
        ],
        "summary": "Artifacts Not Downloaded Since",
        "operationId": "searchUsage",
        "description": "Returns all artifacts not downloaded since the specified Java epoch in milliseconds.\nOptionally include only artifacts created before the specified `createdBefore` date, otherwise only artifacts created before `notUsedSince` are returned.\nCan limit search to specific repositories (local or caches).\n\n**Since:** 2.2.4\n\n**Security:** Requires a privileged non-anonymous user\n",
        "parameters": [
          {
            "name": "notUsedSince",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Java epoch in milliseconds"
          },
          {
            "name": "createdBefore",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Java epoch in milliseconds"
          },
          {
            "$ref": "#/components/parameters/Repos"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns artifacts not downloaded since the specified date, with their last download timestamp.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsageSearchResult"
                },
                "examples": {
                  "usageSearchResult": {
                    "summary": "Artifacts not downloaded since results",
                    "value": {
                      "results": [
                        {
                          "uri": "http://localhost:8081/artifactory/api/storage/libs-release-local/org/acme/lib/ver/lib-ver.jar",
                          "lastDownloaded": "2024-01-15T10:30:00Z"
                        },
                        {
                          "uri": "http://localhost:8081/artifactory/api/storage/libs-release-local/org/acme/lib/ver2/lib-ver2.jar",
                          "lastDownloaded": "2024-02-01T08:00:00Z"
                        }
                      ]
                    }
                  }
                }
              },
              "application/vnd.org.jfrog.artifactory.search.ArtifactUsageResult+json": {
                "schema": {
                  "$ref": "#/components/schemas/UsageSearchResult"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        }
      }
    }
  },
  "security": [
    {
      "BasicAuth": []
    },
    {
      "ApiKeyAuth": []
    },
    {
      "BearerAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "BasicAuth": {
        "type": "http",
        "scheme": "basic",
        "description": "Username and password or username and API key."
      },
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-JFrog-Art-Api",
        "description": "JFrog API key passed in the `X-JFrog-Art-Api` header."
      },
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Access token obtained from JFrog Platform."
      }
    },
    "parameters": {
      "Repos": {
        "name": "repos",
        "in": "query",
        "schema": {
          "type": "string"
        },
        "description": "Comma-separated list of repository keys to limit search to"
      }
    },
    "responses": {
      "BadRequest": {
        "description": "The request is invalid. Check the error message for details.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            },
            "example": {
              "errors": [
                {
                  "status": 400,
                  "message": "Missing required parameters or invalid query."
                }
              ]
            }
          }
        }
      },
      "Unauthorized": {
        "description": "Authentication credentials are missing or invalid.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            },
            "example": {
              "errors": [
                {
                  "status": 401,
                  "message": "Bad credentials"
                }
              ]
            }
          }
        }
      },
      "Forbidden": {
        "description": "The authenticated user does not have the required permissions.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            },
            "example": {
              "errors": [
                {
                  "status": 403,
                  "message": "User is not an admin"
                }
              ]
            }
          }
        }
      },
      "InternalServerError": {
        "description": "An unexpected server error occurred. If this persists, contact [JFrog Support](https://jfrog.com/help).",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            },
            "example": {
              "errors": [
                {
                  "status": 500,
                  "message": "An unexpected error occurred"
                }
              ]
            }
          }
        }
      }
    },
    "schemas": {
      "ErrorResponse": {
        "type": "object",
        "description": "Standard JFrog Platform error response envelope.",
        "required": [
          "errors"
        ],
        "properties": {
          "errors": {
            "type": "array",
            "description": "One or more error details.",
            "items": {
              "$ref": "#/components/schemas/ErrorDetail"
            }
          }
        },
        "example": {
          "errors": [
            {
              "status": 400,
              "message": "Invalid request"
            }
          ]
        }
      },
      "ErrorDetail": {
        "type": "object",
        "required": [
          "message"
        ],
        "properties": {
          "status": {
            "type": "integer",
            "description": "HTTP status code.",
            "example": 400
          },
          "message": {
            "type": "string",
            "description": "Human-readable error description.",
            "minLength": 1,
            "example": "Invalid request"
          }
        }
      },
      "UsageSearchResult": {
        "type": "object",
        "description": "Search result for artifacts not downloaded since a given date.",
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "uri": {
                  "type": "string",
                  "description": "URI of the artifact"
                },
                "lastDownloaded": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp of last download"
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": false
  }
}
```