Making Your First Request
Our interactive API Reference allows you to try the Product Content endpoints. It is available to help you to make your first request and test the various parameters. For each endpoint, the interactive documentation provides you with the following:
- URL
- Description
- Parameter list
- Ability to try each endpoint with different parameters
- Ability to see the response to a specified request
- Code Samples in several languages. The code samples provided reflect the parameters entered into the reference parameter fields.
Interact with our endpoints and see the responses that you can expect back from Product Content. For each endpoint in our API Reference, the description, recent requests, parameters and response variations are displayed under the URL. The code samples and actual response are displayed in the right hand column. Explore the endpoints by following the sequence of steps below. Navigate to the Product Content API Reference to begin.
Authentication
- Click the Token section in the left-hand menu. The details for the /medsapi-auth/v1/token endpoint are displayed in the middle column.
- Click the Base URL drop-down menu in the right-hand column.
- Select the /apis.ebsco.com/medsapi-auth/v1 base url.
Two choices are provided for the Base URL. Please verify that your Base URL in the right hand column is set to /apis.ebsco.com/medsapi-auth/v1.
- Enter client_credentials, product-content, the EBSCO provided client id and the EBSCO provided client secret for the grant_type, product, client_id, and client_secret fields in the center column.
- Click the Try It! button. The API reference makes a request to the API with your desired parameters. The response is displayed in the RESPONSE section to the right.
The access_token field in the /medsapi-auth/v1/token response contains the Bearer token that is needed to access the Consumer Health endpoints.
Retrieving an Article by ID
- Click the Articles section in the left-hand menu.
- Click the Base URL drop-down menu in the right-hand menu.
- Select the /apis.ebsco.com/medsapi-product-content base url. The details for the /medsapi-product-content/v1/content/articles/{articleId} endpoint are displayed in the middle column.
Please ensure that the Base URL in the right-hand column is set to /apis.ebsco.com/medsapi-product-content.
- Enter an article ID in the articleId field.
Please note that the Bearer field in the righthand column is automatically populated with the Bearer token if you called the /medsapi-auth/v1/token endpoint first.
- Click the Try It! button. The API reference makes a request to the API with your desired parameters. The endpoint searches Product Content articles for the article entered. The response is displayed in the RESPONSE section to the right.
Updated 25 days ago
