Skip to main content
POST
Grep package source

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Body

application/json

Request model for package grep search

registry
string
required

Registry: crates_io, golang_proxy, npm, py_pi, or ruby_gems

package_name
string
required

Package name

pattern
string
required

Regex pattern to search

version
string | null

Package version

language
string | null

Language filter

filename_sha256
string | null

File SHA256 filter

a
integer | null

Lines after match

b
integer | null

Lines before match

c
integer | null

Lines before and after match

head_limit
integer | null

Limit results

output_mode
string
default:content

Output mode: content, files_with_matches, or count

Response

Successful Response