Media API Version 2.2 Build 2.2.16 Release Notes

 

 

 

 

  Important

 

The Media API version 2.2 build 2.2.16 is the default API version.

 

 

 

Video Rendition DUIDs in NewsML-G2

DUIDs are now available for video renditions not only in JSON, but also in NewsML-G2. A DUID is a descriptive tag that ties together the important rendition characteristics and allows you to differentiate between the renditions of the same type (for example, multiple Main, Preview or Thumbnail renditions).

Example: Video rendition DUID in NewsML-G2

<remoteContent residref="660c98e0794b4fc29b3030e844ce45bb" href="https://api.ap.org/download_link" rendition="rnd:highRes" size="75675947" contenttype="video/mpeg" format="frmt:MPEG" width="640" height="360" duration="59000" durationunit="timeunit:milliseconds" videoframerate="25" videoaspectratio="16:9" videoavgbitrate="1500000" videocodec="codec:h.264" videoscaling="sov:unscaled">

  <altId type="ap:originalFileName">US CA PALISADES FIRE AFTERMATH DRONE 20250116cr_x040n.mp4</altId>

  <altId type="ap:duid">vid-360p-main-60</altId>

  <signal type="ap:priceTag" literal="Unlimited"/>

</remoteContent>

Fields removed from NewsML-G2 Item Metadata

Item metadata in the NewsML-G2 format no longer contains the //contentMeta/contentCreated and //contentMeta/contentModified datetime fields that had the same values as the //itemMeta/firstCreated and //itemMeta/versionCreated fields, respectively.

Make sure to use the following datetime fields:

  • The versionCreated field for the date and time in UTC when this version of the content item was published.

  • The firstCreated field for the date and time in UTC when the first version of the content item was created.

Example: The versionCreated and firstCreated fields in NewsML-G2

<itemMeta>

            ...

    <versionCreated>2025-01-16T22:17:26Z</versionCreated>
    <firstCreated>2025-01-16T14:46:02Z</firstCreated>

            ...

</itemMeta>

 

 

 

 

 

If you still require additional assistance, please contact AP Customer Support.

For current system status or system maintenance information, please visit the AP Customer Zone website.

 

 

 

 

 

 

 

THE ASSOCIATED PRESS

© copyright 2025  Associated Press. All rights reserved.