The apt package manager works on a local cache of package metadata. The metadata usually consists information like package name, version, description, dependencies, its repository and developers. With the apt-cache command, you can query this local APT cache and get relevant information.
With apt-cache command, you can search for package details in the local APT cache. Learn to use apt-cache command in this tutorial.