Grep Inside Text Files
curl --request POST \
--url https://api.zerodrive.dev/v1/grep \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "<string>",
"path": "<string>",
"max_results": 30
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({query: '<string>', path: '<string>', max_results: 30})
};
fetch('https://api.zerodrive.dev/v1/grep', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/grep"
payload = {
"query": "<string>",
"path": "<string>",
"max_results": 30
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Grep Inside Text Files
Search text contents across markdown, code, and text files, returning line numbers and snippets.
POST
https://api.zerodrive.dev
/
v1
/
grep
Grep Inside Text Files
curl --request POST \
--url https://api.zerodrive.dev/v1/grep \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "<string>",
"path": "<string>",
"max_results": 30
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({query: '<string>', path: '<string>', max_results: 30})
};
fetch('https://api.zerodrive.dev/v1/grep', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/grep"
payload = {
"query": "<string>",
"path": "<string>",
"max_results": 30
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
