Get Media Resource
The DynaMed API GET /v2/content/media endpoint returns metadata for media published within a specified date range. The updatedAt timestamp is not necessarily related to editors updating the media with new information. It may represent the last time the media was reprocessed for delivery.
To Get Media Metadata (example):
Gather the following information for the request:
- An access token. Please see Use the Client Credentials Grant for further information.
- The publication type - image, video or algorithm.
- The dates to retrieve (optional).
- The size and link type of the media.
Request
GET https://apis.ebsco.com/medsapi-dynamed/v2/content/media?pubType=image&updatedSince=2022-09-14&updatedBefore=2023-05-09&imageSize=small
The request above is for media that have been republished between September 14, 2022 and May 9, 2023.
Response
{ "_metadata": { "totalItems": 1, "links": [ { "rel": "self", "href": "https://apis.ebsco.com/medsapi-dynamed/v2/content/media?pubType=image&updatedSince=2022-09-14T18:21:54.345Z&updatedBefore=2023-05-09&imageSize=small" } ] }, "items": [ { "id": "t232776", "slug": "/drug-monograph/linezolid", "createdAt": "2021-12-17T22:50:42.511Z", "updatedAt": "2023-05-09T23:59:27.147Z", "title": "Linezolid", "description": "this topic provides overviews of mechanisms of action, spectrum of activity..." "pubType": { "id": "drug" } }, ... ] }
Dates
The updatedAt parameter indicates the last time the page was published.
Dates must conform to ISO 8601. An example date is 2021-12-17T22:50:42.511Z or 2021-12-17. If neither updatedSince or updatedBefore are provided, then all updates will be returned. If no updatedBefore is supplied, then all dates from the updateSince until today's date will be returned. If no updatedSince is provided, then all dates up to the updatedBefore will be returned.
Paging
Up to 100 items may be returned in a request. To get the next page of items, include the pageToken. Each page has 100 items.
Error Response Codes
The DynaMed articles endpoint can return one of the error response codes.