Skip to main content
POST
/
dependencies
/
analyze
Analyze package manifest
curl --request POST \
  --url https://apigcp.trynia.ai/v2/dependencies/analyze \
  --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>"
  ]
}

Body

application/json
manifest_content
string
required

Raw content of the manifest file

manifest_type
enum<string> | null

Manifest type. Auto-detected if not provided.

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

Original filename for type detection

Response

Successful Response

manifest_type
string
required
total_dependencies
integer
required
dependencies
DependencyItem · object[]
required
mappings
MappingItem · object[]
required
unmapped_count
integer
required
unmapped_packages
string[]
required