Authorizations
API key must be provided in the Authorization header
Body
application/json
Package registry to search
Available options:
crates_io
, golang_proxy
, npm
, py_pi
Example:
"npm"
Name of the package to search
Example:
"react"
1-5 semantic queries about the codebase
Required array length:
1 - 5
elementsExample:
[
"How does React handle state updates?",
"What are the main hooks available?"
]
Specific version to search (optional, defaults to latest)
Example:
"18.2.0"
SHA256 hash of specific file to search in
Optional regex pattern for pre-filtering results
Language filter for search results
Example:
"TypeScript"
Response
Package search completed successfully