Searching for Updated Article's Metadata GET
The Dynamic Health API GET /v1/content/articles endpoint returns metadata for articles published within a specified date range. The updatedAt timestamp is not necessarily related to editors updating the article with new information. The timestamp may represent the last time the article was reprocessed for delivery.
Basic Search for Article Metadata
To Get Article Metadata for Updated Articles (example):
Gather the following information for the request:
- An access token. Please see Using the Client Credentials Grant for further information.
- The dates to retrieve (optional).
- The page number to retrieve (optional).
Request
GET https://apis.ebsco.com/medsapi-dynamic-health/v1/content/articles?updatedSince=2022-09-14The request above is for articles that have been republished since September 14, 2022.
Response
{
"_metadata": {
"totalItems": 711,
"totalPages": 8,
"page": 1,
"links": [
{
"rel": "self",
"href": "https://apis.ebsco.com/medsapi-dynamic-health/v2/content/articles?updatedSince=2022-09-14T18:21:54.345Z&page=1"
},
{
"rel": "next",
"href": "https://apis.ebsco.com/medsapi-dynamic-health/v2/content/articles?updatedSince=2022-09-14T18:21:54.345Z&page=2"
},
{
"rel": "last",
"href": "https://apis.ebsco.com/medsapi-dynamic-health/v2/content/articles?updatedSince=2022-09-14T18:21:54.345Z&page=8"
}
]
},
"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"
}
},
...
]
} Query Parameters
- page - The next page of items to return. Does not need to be specified on the first request.
- updatedSince - An ISO 8601 date. An example date is 2021-12-17T22:50:42.511Z or 2021-12-17. Time does not need to be specified and will be assumed as midnight on the day requests. Articles starting at that date will be returned.
- updatedBefore - An ISO 8601 date. Time does not need to be specified and will be assumed as midnight on the day requests. Articles ending on that date will be returned.
The updatedAt parameter indicates the last time the page was published. If neither updatedSince nor updatedBefore are provided, all updates are returned. If no updatedBefore is supplied, then all dates from the updateSince until today's date are returned. If no updatedSince is provided, then all dates up to the updatedBefore are returned.
Paging
Up to 100 items may be returned in a request. If more than 100 are returned, the totalItems indicates how many items there are to retrieve. The page parameter in the response indicates the page returned. To get the next page of items, add one to the page. Each page has 100 items.
Error Response Codes
The DynaMed article metadata endpoint can return one of the error response codes.
Updated 1 day ago
