If you have Dockerfiles scanned via SCM integrations in your Snyk Org, you may see a different number of dependencies shown in the Dependencies report tab versus the results from the API for depencencies.
The reason for this difference is that in the dependencies report tab, project type Dockerfile is unselected or filtered out by default. This is done to avoid double count vulnerabilities - from Dockerfiles, and again from the image which was produced by the Dockerfile. When using the API for dependencies, there is no default filter - only what you provide in the body filters.
For now, we recommend that you either add the Dockerfile in the Dependencies report, or filter it out in your API calls.