Skip to main content
POST
/
dependencies
/
analyze
Analyze package manifest
curl --request POST \
  --url https://apigcp.trynia.ai/v2/dependencies/analyze \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "manifest_content": "<string>",
  "manifest_type": "package.json",
  "filename": "<string>"
}
'
{
  "manifest_type": "<string>",
  "total_dependencies": 123,
  "dependencies": [
    {
      "name": "<string>",
      "version": "<string>",
      "registry": "<string>",
      "is_dev": true
    }
  ],
  "mappings": [
    {
      "name": "<string>",
      "registry": "<string>",
      "docs_url": "<string>",
      "mapping_source": "<string>",
      "confidence": 123
    }
  ],
  "unmapped_count": 123,
  "unmapped_packages": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Body

application/json
manifest_content
string
required

Raw content of the manifest file

manifest_type
enum<string>

Manifest type. Auto-detected if not provided.

Available options:
package.json,
requirements.txt,
pyproject.toml,
Cargo.toml,
go.mod,
Gemfile
filename
string

Original filename for type detection

Response

Dependencies analyzed successfully

manifest_type
string
total_dependencies
integer
dependencies
object[]
mappings
object[]
unmapped_count
integer
unmapped_packages
string[]