Asset - Video (Now)

📘

Note: This page describes video assets that appear in the Now product.

For the videos that appear in the Create product please see Asset - Video (Create)

Definition

NameValueDescription
ProfileAssetAn individual piece of content.
TypeVideoA video.

Important Metadata

NameDescription
IdThe unique id of the content item
First CreatedThe timestamp of when the first version of this content item was published.
Version CreatedThe timestamp of when the most recent version of this content item was published.
ContentThe main content of the item.

In the case of a video item this is a fragment of HTML that contains an embed video player that will play this video.

This can be used on client applications to render the video.
TopicPA Specific metadata to define an event or story.

For more information please see Subject FAQs.
KeywordPA Specific metadata to define an event or story.

For more information please see Subject FAQs.
ServiceThe service that this content is part of inside of a product.

For more information please see Service FAQ.

Ninjs (JSON)

Request

curl \
  -H "Accept: application/json" \
  -H "apikey: <API KEY>" \
  https://content.api.pressassociation.io/v1/item/a3cd482d-6029-474e-8422-8267894c2b8c?product=paproduct:now

Response

{
    "uri": "a3cd482d-6029-474e-8422-8267894c2b8c",
    "type": "video",
    "profile": "asset",
    "version": "1",
    "firstcreated": "2019-10-10T15:09:35Z",
    "versioncreated": "2019-10-10T15:09:35Z",
    "issued": "2019-10-10T15:09:35Z",
    "urgency": 6,
    "pubstatus": "usable",
    "language": "en",
    "headline": "Royal Investiture",
    "body_text": "Video available: Bear Grylls dedicates OBE to “unsung scouting heroes”",
    "body_html": "<p>Video available: Bear Grylls dedicates OBE to &ldquo;unsung scouting heroes&rdquo;</p><!-- EMBED START StreamAMG { id: \"embedded0_mlof5ck9\", urn: \"urn:pressassociation:video:64526\" } --><figure id=\"0_mlof5ck9\" data-urn=\"urn:pressassociation:video:64526\"><div style=\"width: 100%; display: inline-block; position: relative;\"><div id=\"dummy\" style=\"margin-top: 56.25%;\"></div><div id=\"kaltura_player_6182707932\" style=\"position:absolute; top:0; left:0; left: 0; right: 0; bottom: 0;\" data-player-config='{\"partner\": \"3001090\", \"uiConf\": \"30024158\", \"entryId\": \"0_mlof5ck9\"}'></div></div><script type=\"text/javascript\" src=\"//pa.streamamg.com/player-embed/loader.js\"></script></figure><!-- EMBED END StreamAMG { id: \"embedded0_mlof5ck9\", urn: \"urn:pressassociation:video:64526\" } -->",
    "subject": [
        {
            "code": "paservice:news",
            "name": "News",
            "profile": "paservice",
            "scheme": "https://content.api.pressassociation.io/v1/subject",
            "rel": "partOf"
        },
        {
            "code": "paservice:news:uk",
            "name": "UK",
            "profile": "paservice",
            "scheme": "https://content.api.pressassociation.io/v1/subject",
            "rel": "partOf"
        },
        {
            "code": "patopic:royal",
            "name": "Royal",
            "profile": "patopic",
            "scheme": "https://content.api.pressassociation.io/v1/subject",
            "rel": "about"
        },
        {
            "code": "pakeyword:investiture",
            "name": "Investiture",
            "profile": "pakeyword",
            "scheme": "https://content.api.pressassociation.io/v1/subject",
            "rel": "about"
        },
        {
            "code": "paterritory:uk",
            "name": "UK",
            "profile": "paterritory",
            "scheme": "https://content.api.pressassociation.io/v1/subject",
            "rel": "intendedFor"
        },
        {
            "code": "paselection:curated",
            "name": "Curated",
            "profile": "paselection",
            "scheme": "https://content.api.pressassociation.io/v1/subject",
            "rel": "selectedAs"
        },
        {
            "code": "contributor:pa",
            "name": "PA",
            "profile": "contributor",
            "scheme": "https://content.api.pressassociation.io/v1/subject",
            "rel": "contributedBy"
        }
    ],
    "event": [
        {
            "code": "paevent:ed4bb5b7975a586667017623902be7b9808234fbd67ef2440261a472386bdda2",
            "name": "Royal Investiture 10/10/2019",
            "profile": "paevent",
            "scheme": "https://content.api.pressassociation.io/v1/event",
            "rel": "partOf"
        }
    ],
    "links": [
        {
            "rel": "self",
            "href": "https://content.api.pressassociation.io/v1/item/a3cd482d-6029-474e-8422-8267894c2b8c"
        }
    ]
}

Important Metadata Mappings

NameJSON Path
Iduri
First Createdfirstcreated
Version Createdversioncreated
Contentbody_html
Topicsubject[?(@.profile == 'patopic')]
Keywordsubject[?(@.profile == 'pakeyword')]
Servicesubject[?(@.profile == 'paservice')]

ATOM

Request

curl \
  -H "Accept: application/atom+xml" \
  -H "apikey: <API KEY>" \
  https://content.api.pressassociation.io/v1/item/a3cd482d-6029-474e-8422-8267894c2b8c?product=paproduct:create

Response

<?xml version="1.0" encoding="utf-8" ?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:pa="http://api.pressassociation.io/mrss/" xmlns:snf="http://www.smartnews.be/snf/">
    <id>https://content.api.pressassociation.io/v1/item/a3cd482d-6029-474e-8422-8267894c2b8c</id>
    <title>Press Association: Content API</title>
    <updated>2019-10-11T15:15:57.582Z</updated>
    <link href="https://content.api.pressassociation.io/v1/item/a3cd482d-6029-474e-8422-8267894c2b8c" rel="self"/>
    <opensearch:itemsPerPage>1</opensearch:itemsPerPage>
    <opensearch:totalResults>1</opensearch:totalResults>
    <opensearch:startIndex>0</opensearch:startIndex>
    <snf:logo>
        <url>http://logo.static.press.net/pa-logo-smartnews.png</url>
    </snf:logo>
    <entry>
        <id>https://content.api.pressassociation.io/v1/item/a3cd482d-6029-474e-8422-8267894c2b8c</id>
        <author>
            <name></name>
        </author>
        <title>
            <![CDATA[Royal Investiture]]>
        </title>
        <link rel="self" href="https://content.api.pressassociation.io/v1/item/a3cd482d-6029-474e-8422-8267894c2b8c"/>
        <link rel="alternate" href="https://content.api.pressassociation.io/v1/item/a3cd482d-6029-474e-8422-8267894c2b8c"/>
        <link rel="related" href="https://content.api.pressassociation.io/v1/item/a3cd482d-6029-474e-8422-8267894c2b8c/more-like-this"/>
        <published>2019-10-10T15:09:35.000Z</published>
        <updated>2019-10-10T15:09:35.000Z</updated>
        <content type="html">
            <![CDATA[<p>Video available: Bear Grylls dedicates OBE to &ldquo;unsung scouting heroes&rdquo;</p>
            <!-- EMBED START StreamAMG { id: "embedded0_mlof5ck9", urn: "urn:pressassociation:video:64526" } -->
            <figure id="0_mlof5ck9" data-urn="urn:pressassociation:video:64526">
                <div style="width: 100%; display: inline-block; position: relative;">
                    <div id="dummy" style="margin-top: 56.25%;"></div>
                    <div id="kaltura_player_6182707932" style="position:absolute; top:0; left:0; left: 0; right: 0; bottom: 0;" data-player-config='{"partner": "3001090", "uiConf": "30024158", "entryId": "0_mlof5ck9"}'></div>
                </div>
                <script type="text/javascript" src="//pa.streamamg.com/player-embed/loader.js"></script>
            </figure>
            <!-- EMBED END StreamAMG { id: "embedded0_mlof5ck9", urn: "urn:pressassociation:video:64526" } -->]]>
        </content>
        <category term="paservice:news" scheme="urn:pa:subject:paservice" label="News"/>
        <category term="paservice:news:uk" scheme="urn:pa:subject:paservice" label="UK"/>
        <category term="patopic:royal" scheme="urn:pa:subject:patopic" label="Royal"/>
        <category term="pakeyword:investiture" scheme="urn:pa:subject:pakeyword" label="Investiture"/>
        <category term="paterritory:uk" scheme="urn:pa:subject:paterritory" label="UK"/>
        <category term="paselection:curated" scheme="urn:pa:subject:paselection" label="Curated"/>
        <category term="contributor:pa" scheme="urn:pa:subject:contributor" label="PA"/>
        <category term="profile:asset" scheme="urn:pa:content:profile" label="asset"/>
        <category term="type:video" scheme="urn:pa:content:type" label="video"/>
    </entry>
</feed>

Important Metadata Mappings

NameJSON Path
Id//feed/entry/id
First Created//feed/entry/published
Version Created//feed/entry/updated
Content//feed/entry/content[@scheme="urn:pa:subject:patopic"]
Topic//feed/entry/content[@type="html"]
Keyword//feed/entry/category[@scheme="urn:pa:subject:pakeyword"]
Service//feed/entry/category[@scheme="urn:pa:subject:paservice"]

RSS

Request

curl \
  -H "Accept: application/rss+xml" \
  -H "apikey: <API KEY>" \
  https://content.api.pressassociation.io/v1/item/a3cd482d-6029-474e-8422-8267894c2b8c?product=paproduct:create

Response

<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:pa="http://api.pressassociation.io/mrss/" xmlns:snf="http://www.smartnews.be/snf/">
    <channel>
        <title>Press Association: Content API</title>
        <description>A collection of content items</description>
        <language>en</language>
        <link>https://content.api.pressassociation.io/v1/item/a3cd482d-6029-474e-8422-8267894c2b8c</link>
        <atom:link href="https://content.api.pressassociation.io/v1/item/a3cd482d-6029-474e-8422-8267894c2b8c" rel="self"/>
        <opensearch:itemsPerPage>1</opensearch:itemsPerPage>
        <opensearch:totalResults>1</opensearch:totalResults>
        <opensearch:startIndex>0</opensearch:startIndex>
        <snf:logo>
            <snf:url>http://logo.static.press.net/pa-logo-smartnews.png</snf:url>
        </snf:logo>
        <lastBuildDate>Fri, 11 Oct 2019 15:16:10 GMT</lastBuildDate>
        <item>
            <title>Royal Investiture</title>
            <link>https://content.api.pressassociation.io/v1/item/a3cd482d-6029-474e-8422-8267894c2b8c</link>
            <pubDate>Thu, 10 Oct 2019 15:09:35 GMT</pubDate>
            <dc:publisher>PA</dc:publisher>
            <dcterms:created>2019-10-10T15:09:35.000Z</dcterms:created>
            <dcterms:modified>2019-10-10T15:09:35.000Z</dcterms:modified>
            <guid isPermaLink="true">https://content.api.pressassociation.io/v1/item/a3cd482d-6029-474e-8422-8267894c2b8c</guid>
            <content:encoded>
                <![CDATA[<p>Video available: Bear Grylls dedicates OBE to &ldquo;unsung scouting heroes&rdquo;</p>
                <!-- EMBED START StreamAMG { id: "embedded0_mlof5ck9", urn: "urn:pressassociation:video:64526" } -->
                <figure id="0_mlof5ck9" data-urn="urn:pressassociation:video:64526">
                    <div style="width: 100%; display: inline-block; position: relative;">
                        <div id="dummy" style="margin-top: 56.25%;"></div>
                        <div id="kaltura_player_6182707932" style="position:absolute; top:0; left:0; left: 0; right: 0; bottom: 0;" data-player-config='{"partner": "3001090", "uiConf": "30024158", "entryId": "0_mlof5ck9"}'></div>
                    </div>
                    <script type="text/javascript" src="//pa.streamamg.com/player-embed/loader.js"></script>
                </figure>
                <!-- EMBED END StreamAMG { id: "embedded0_mlof5ck9", urn: "urn:pressassociation:video:64526" } -->]]>
            </content:encoded>
            <category domain="urn:pa:subject:paservice">News</category>
            <category domain="urn:pa:subject:paservice">UK</category>
            <category domain="urn:pa:subject:patopic">Royal</category>
            <category domain="urn:pa:subject:pakeyword">Investiture</category>
            <category domain="urn:pa:subject:paterritory">UK</category>
            <category domain="urn:pa:subject:paselection">Curated</category>
            <category domain="urn:pa:subject:contributor">PA</category>
            <category domain="urn:pa:content:profile">asset</category>
            <category domain="urn:pa:content:type">video</category>
        </item>
    </channel>
</rss>

Important Metadata Mappings

NameJSON Path
Id//rss/channel/item/guid
First Created//rss/channel/item/dcterms:created
Version Created//rss/channel/item/dcterms:modified
Content//rss/channel/item/content:encoded
Topic//rss/channel/item/category[@domain="urn:pa:subject:patopic"]
Keyword//rss/channel/item/category[@domain="urn:pa:subject:pakeyword"]
Service//rss/channel/item/category[@domain="urn:pa:subject:paservice"]