curl --request GET \
--url https://api.pav.bio/v1/programs/autocomplete \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.pav.bio/v1/programs/autocomplete"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.pav.bio/v1/programs/autocomplete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.pav.bio/v1/programs/autocomplete",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.pav.bio/v1/programs/autocomplete"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.pav.bio/v1/programs/autocomplete")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pav.bio/v1/programs/autocomplete")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{
"id": 6606,
"company": "Pacira BioSciences",
"drug": "PCRX-2002",
"short_name": "pacira_biosciences",
"company_id": 816,
"indication": "Post-Surgical Pain",
"target": "NaV1.8",
"phase_norm": "Phase 2",
"modality_norm": "small_molecule"
}
]{
"error": {
"code": "not_found",
"message": "program 999999 not found",
"request_id": "3f2b9c1d8a7e4f6b9c0d1e2f3a4b5c6d"
}
}{
"error": {
"code": "not_found",
"message": "program 999999 not found",
"request_id": "3f2b9c1d8a7e4f6b9c0d1e2f3a4b5c6d"
}
}{
"error": {
"code": "not_found",
"message": "program 999999 not found",
"request_id": "3f2b9c1d8a7e4f6b9c0d1e2f3a4b5c6d"
}
}{
"error": {
"code": "not_found",
"message": "program 999999 not found",
"request_id": "3f2b9c1d8a7e4f6b9c0d1e2f3a4b5c6d"
}
}Search-as-you-type program suggestions
Type-ahead suggestions for a program search box. Given a partial q= and optional active filters, runs the same search as GET /v1/programs and returns the top matching programs (company, drug, indication) — not facet values. Select one and filter by its company_id, or submit q= to GET /v1/programs for the full page.
curl --request GET \
--url https://api.pav.bio/v1/programs/autocomplete \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.pav.bio/v1/programs/autocomplete"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.pav.bio/v1/programs/autocomplete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.pav.bio/v1/programs/autocomplete",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.pav.bio/v1/programs/autocomplete"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.pav.bio/v1/programs/autocomplete")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pav.bio/v1/programs/autocomplete")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{
"id": 6606,
"company": "Pacira BioSciences",
"drug": "PCRX-2002",
"short_name": "pacira_biosciences",
"company_id": 816,
"indication": "Post-Surgical Pain",
"target": "NaV1.8",
"phase_norm": "Phase 2",
"modality_norm": "small_molecule"
}
]{
"error": {
"code": "not_found",
"message": "program 999999 not found",
"request_id": "3f2b9c1d8a7e4f6b9c0d1e2f3a4b5c6d"
}
}{
"error": {
"code": "not_found",
"message": "program 999999 not found",
"request_id": "3f2b9c1d8a7e4f6b9c0d1e2f3a4b5c6d"
}
}{
"error": {
"code": "not_found",
"message": "program 999999 not found",
"request_id": "3f2b9c1d8a7e4f6b9c0d1e2f3a4b5c6d"
}
}{
"error": {
"code": "not_found",
"message": "program 999999 not found",
"request_id": "3f2b9c1d8a7e4f6b9c0d1e2f3a4b5c6d"
}
}Authorizations
Use a personal or organization Pav API key from Pav developer settings. Send it as Authorization: Bearer <api_key>.
Query Parameters
Partial text to search programs by.
"oral GLP-1 obesity"
Restrict suggestions to programs in these phases. Repeatable.
"Phase 2"
Restrict to these modalities (modality token or display label). Repeatable.
"small_molecule"
Restrict to these company slugs. Repeatable.
"pfizer"
Restrict to these drug names. Repeatable.
"danuglipron"
Restrict to these indications. Repeatable.
"type 2 diabetes"
Restrict to these molecular targets. Repeatable. Target coverage is partial; filtering excludes programs with no published target.
"GLP-1R"
Maximum suggestions to return.
1 <= x <= 258
Response
Successful Response
Durable Program id.
6606
Company name.
"Pacira BioSciences"
Program / asset name.
"PCRX-2002"
Company slug.
"pacira_biosciences"
Stable company id — send back as a company_id filter.
816
Indication.
"Post-Surgical Pain"
Molecular target.
"NaV1.8"
Normalized development phase.
"Phase 2"
Normalized modality.
"small_molecule"