GET
/api/v1/products/search
Deprecated
v1
No authentication required.
Removed in v2, where the list endpoint takes a q parameter instead. Kept here for integrations that have not moved yet.
Full URL: https://api.acme.example/api/v1/products/search
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
| term | string | yes | The search term. |
Responses
200 Matching products.
Example request
curl -X GET 'https://api.acme.example/api/v1/products/search?term=term' \
-H 'Accept: application/json'
const response = await fetch('https://api.acme.example/api/v1/products/search?term=term', {
method: 'GET',
headers: {
'Accept': 'application/json'
}
});
const data = await response.json();
use Illuminate\Support\Facades\Http;
$response = Http::withHeaders([
'Accept' => 'application/json',
])->get('https://api.acme.example/api/v1/products/search?term=term');
$data = $response->json();
use GuzzleHttp\Client;
$client = new Client();
$response = $client->request('GET', 'https://api.acme.example/api/v1/products/search?term=term', [
'headers' => [
'Accept' => 'application/json',
],
]);
$data = json_decode((string) $response->getBody(), true);