GET api/v1/search/products?q={q}&size={size}&page={page}
Searches drug products and returns distinct product names for the supplied search term. The default values for size and page are both 0, resulting in the complete list being returned. Should you decide to use the paging feature, pages are 0 indexed
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
q |
The search query |
string |
None. |
size |
The page size for the result set |
integer |
Default value is 0 |
page |
The page number for the result set |
integer |
Default value is 0 |
Body Parameters
None.
Response Information
Resource Description
A result set containing results for the product search
ProductSearchResponseName | Description | Type | Additional information |
---|---|---|---|
count | integer |
None. |
|
totalItems | integer |
None. |
|
page | integer |
None. |
|
pageSize | integer |
None. |
|
items | Collection of ProductSearchItem |
None. |
|
_links | Collection of Link |
None. |
|
_languages | Collection of LanguagesLink |
None. |
Response Codes
Code | Description | Additional information |
---|---|---|
200 | OK | The request returned without error |
204 | No Content | The request was successful but no results were returned |
400 | Bad Request | A parameter was missing or invalid |
404 | Not Found | The requested resource was not found |
Response Formats
application/json, text/json
Sample:
{ "_links": [ { "rel": "sample string 1", "locale": "sample string 4", "href": "sample string 2", "templated": true }, { "rel": "sample string 1", "locale": "sample string 4", "href": "sample string 2", "templated": true } ], "_languages": [ { "rel": "sample string 1", "locale": "sample string 3", "name": "sample string 4", "href": "sample string 2" }, { "rel": "sample string 1", "locale": "sample string 3", "name": "sample string 4", "href": "sample string 2" } ], "count": 1, "totalItems": 2, "page": 3, "pageSize": 4, "items": [ { "productId": 1, "cpnum": 2, "name": "sample string 3", "offMarketDate": "2024-12-28T01:32:07.3220268-05:00", "_links": [ { "rel": "sample string 1", "locale": "sample string 4", "href": "sample string 2", "templated": true }, { "rel": "sample string 1", "locale": "sample string 4", "href": "sample string 2", "templated": true } ], "_languages": [ { "rel": "sample string 1", "locale": "sample string 3", "name": "sample string 4", "href": "sample string 2" }, { "rel": "sample string 1", "locale": "sample string 3", "name": "sample string 4", "href": "sample string 2" } ] }, { "productId": 1, "cpnum": 2, "name": "sample string 3", "offMarketDate": "2024-12-28T01:32:07.3220268-05:00", "_links": [ { "rel": "sample string 1", "locale": "sample string 4", "href": "sample string 2", "templated": true }, { "rel": "sample string 1", "locale": "sample string 4", "href": "sample string 2", "templated": true } ], "_languages": [ { "rel": "sample string 1", "locale": "sample string 3", "name": "sample string 4", "href": "sample string 2" }, { "rel": "sample string 1", "locale": "sample string 3", "name": "sample string 4", "href": "sample string 2" } ] } ] }
application/xml, text/xml
Sample:
<products xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <_languages> <languageslink> <rel>sample string 1</rel> <locale>sample string 3</locale> <name>sample string 4</name> <href>sample string 2</href> </languageslink> <languageslink> <rel>sample string 1</rel> <locale>sample string 3</locale> <name>sample string 4</name> <href>sample string 2</href> </languageslink> </_languages> <_links> <link> <rel>sample string 1</rel> <locale>sample string 4</locale> <href>sample string 2</href> <templated>true</templated> </link> <link> <rel>sample string 1</rel> <locale>sample string 4</locale> <href>sample string 2</href> <templated>true</templated> </link> </_links> <count>1</count> <totalItems>2</totalItems> <page>3</page> <pageSize>4</pageSize> <items xmlns:d2p1="http://schemas.datacontract.org/2004/07/ElsevierGSContentServices.Models.Search"> <d2p1:product> <_languages> <languageslink> <rel>sample string 1</rel> <locale>sample string 3</locale> <name>sample string 4</name> <href>sample string 2</href> </languageslink> <languageslink> <rel>sample string 1</rel> <locale>sample string 3</locale> <name>sample string 4</name> <href>sample string 2</href> </languageslink> </_languages> <_links> <link> <rel>sample string 1</rel> <locale>sample string 4</locale> <href>sample string 2</href> <templated>true</templated> </link> <link> <rel>sample string 1</rel> <locale>sample string 4</locale> <href>sample string 2</href> <templated>true</templated> </link> </_links> <d2p1:cpnum>2</d2p1:cpnum> <d2p1:name>sample string 3</d2p1:name> <d2p1:offMarketDate>2024-12-28T01:32:07.3220268-05:00</d2p1:offMarketDate> <d2p1:productId>1</d2p1:productId> </d2p1:product> <d2p1:product> <_languages> <languageslink> <rel>sample string 1</rel> <locale>sample string 3</locale> <name>sample string 4</name> <href>sample string 2</href> </languageslink> <languageslink> <rel>sample string 1</rel> <locale>sample string 3</locale> <name>sample string 4</name> <href>sample string 2</href> </languageslink> </_languages> <_links> <link> <rel>sample string 1</rel> <locale>sample string 4</locale> <href>sample string 2</href> <templated>true</templated> </link> <link> <rel>sample string 1</rel> <locale>sample string 4</locale> <href>sample string 2</href> <templated>true</templated> </link> </_links> <d2p1:cpnum>2</d2p1:cpnum> <d2p1:name>sample string 3</d2p1:name> <d2p1:offMarketDate>2024-12-28T01:32:07.3220268-05:00</d2p1:offMarketDate> <d2p1:productId>1</d2p1:productId> </d2p1:product> </items> </products>