Search providers
curl --request GET \
--url https://api.lava.so/v1/services/providersimport requests
url = "https://api.lava.so/v1/services/providers"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.lava.so/v1/services/providers', 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.lava.so/v1/services/providers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.lava.so/v1/services/providers"
req, _ := http.NewRequest("GET", url, nil)
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.lava.so/v1/services/providers")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lava.so/v1/services/providers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"results": [
{
"id": "<string>",
"label": "<string>",
"api_reference": "<string>",
"service_type": "model",
"managed": true,
"entry_count": 123
}
]
}Services
Search providers
Searches the gateway provider catalog by keyword and returns ranked provider summaries, most relevant first. This endpoint is public and does not require authentication.
GET
/
services
/
providers
Search providers
curl --request GET \
--url https://api.lava.so/v1/services/providersimport requests
url = "https://api.lava.so/v1/services/providers"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.lava.so/v1/services/providers', 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.lava.so/v1/services/providers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.lava.so/v1/services/providers"
req, _ := http.NewRequest("GET", url, nil)
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.lava.so/v1/services/providers")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lava.so/v1/services/providers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"results": [
{
"id": "<string>",
"label": "<string>",
"api_reference": "<string>",
"service_type": "model",
"managed": true,
"entry_count": 123
}
]
}Query Parameters
Keyword to rank providers by, for example "web search", "email", or a provider name. An empty or missing query returns no results.
Optional category slug to restrict the search, for example "search" or "productivity".
Response
200 - application/json
Ranked provider matches
Ranked provider summaries matching the query, most relevant first
Show child attributes
Show child attributes