Advisory - Text

Definition

NameValueDescription
ProfileAdvisoryAn advisory notice to customers about our content.

This usually comprises of schedules about future content or important corrections to previous content.
TypeTextAn item comprised of textual content.

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 text asset this will be several paragraphs of text.
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/b51cedfd-23fd-4ab2-aadd-a2aa70de84ea?product=paproduct:now

Response

{
    "uri": "b51cedfd-23fd-4ab2-aadd-a2aa70de84ea",
    "type": "text",
    "profile": "advisory",
    "version": "1",
    "firstcreated": "2019-10-16T08:35:30Z",
    "versioncreated": "2019-10-16T08:35:30Z",
    "issued": "2019-10-16T08:35:30Z",
    "urgency": 6,
    "pubstatus": "usable",
    "language": "en",
    "headline": "Schedule Irish",
    "body_text": "Good morning from PA Ireland. Here is our schedule for today Wednesday October 16.\n\nDublin:\n\n0900: Committee on online harassment and harmful communications. Cate McCurry reports. \n\n1000: Leo Varadkar will deliver an address on Ireland’s Agri-Food Strategy to 2030. President’s Suite, Aviva Stadium. Aoife Moore and photographer Brian Lawless staffing.\n\n1200: Leaders’ questions in the Dail. Cate McCurry reports.\n\nBelfast:\n\n1000: Ivor Bell trial of the facts continues (reporting restrictions apply) Belfast Crown Court. Rebecca Black staffing.\n\nLondon:\n\n0930: Northern Ireland Affairs Committee will be open its inquiry into organised crime gangs in Northern Ireland by questioning PSNI chief constable Simon Byrne. David Young reports.",
    "body_html": "<p>Good morning from PA Ireland. Here is our schedule for today Wednesday October 16.</p><p>Dublin:</p><p>0900: Committee on online harassment and harmful communications. Cate McCurry reports. </p><p>1000: Leo Varadkar will deliver an address on Ireland&rsquo;s Agri-Food Strategy to 2030. President&rsquo;s Suite, Aviva Stadium. Aoife Moore and photographer Brian Lawless staffing.</p><p>1200: Leaders&rsquo; questions in the Dail. Cate McCurry reports.</p><p>Belfast:</p><p>1000: Ivor Bell trial of the facts continues (reporting restrictions apply) Belfast Crown Court. Rebecca Black staffing.</p><p>London:</p><p>0930: Northern Ireland Affairs Committee will be open its inquiry into organised crime gangs in Northern Ireland by questioning PSNI chief constable Simon Byrne. David Young reports.</p>",
    "subject": [
        {
            "code": "paservice:news",
            "name": "News",
            "profile": "paservice",
            "scheme": "https://content.api.pressassociation.io/v1/subject",
            "rel": "partOf"
        },
        {
            "code": "paservice:news:ireland",
            "name": "Ireland",
            "profile": "paservice",
            "scheme": "https://content.api.pressassociation.io/v1/subject",
            "rel": "partOf"
        },
        {
            "code": "paservice:news:northern-ireland",
            "name": "Northern Ireland",
            "profile": "paservice",
            "scheme": "https://content.api.pressassociation.io/v1/subject",
            "rel": "partOf"
        },
        {
            "code": "patopic:schedule",
            "name": "Schedule",
            "profile": "patopic",
            "scheme": "https://content.api.pressassociation.io/v1/subject",
            "rel": "about"
        },
        {
            "code": "pakeyword:irish",
            "name": "Irish",
            "profile": "pakeyword",
            "scheme": "https://content.api.pressassociation.io/v1/subject",
            "rel": "about"
        },
        {
            "code": "pakeyword:advisory",
            "name": "Advisory",
            "profile": "pakeyword",
            "scheme": "https://content.api.pressassociation.io/v1/subject",
            "rel": "about"
        },
        {
            "code": "paterritory:europe:republic-of-ireland",
            "name": "Republic of Ireland",
            "profile": "paterritory",
            "scheme": "https://content.api.pressassociation.io/v1/subject",
            "rel": "intendedFor"
        },
        {
            "code": "paterritory:uk:northern-ireland",
            "name": "Northern Ireland",
            "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:659c8c81d5d37237ffe32699393a810a5160ca6a449371c8bc5754828a6a9d7d",
            "name": "Schedule Irish Advisory 16/10/2019",
            "profile": "paevent",
            "scheme": "https://content.api.pressassociation.io/v1/event",
            "rel": "partOf"
        },
        {
            "code": "paevent:847318d41206d783f201b40e1f2771089419134835b60a970657d1ca05409b56",
            "name": "Schedule Irish 16/10/2019",
            "profile": "paevent",
            "scheme": "https://content.api.pressassociation.io/v1/event",
            "rel": "relatedTo"
        }
    ],
    "links": [
        {
            "rel": "self",
            "href": "https://content.api.pressassociation.io/v1/item/b51cedfd-23fd-4ab2-aadd-a2aa70de84ea"
        }
    ]
}

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/b51cedfd-23fd-4ab2-aadd-a2aa70de84ea?product=paproduct:now

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/b51cedfd-23fd-4ab2-aadd-a2aa70de84ea</id>
    <title>Press Association: Content API</title>
    <updated>2019-10-16T13:12:59.630Z</updated>
    <link href="https://content.api.pressassociation.io/v1/item/b51cedfd-23fd-4ab2-aadd-a2aa70de84ea" 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/b51cedfd-23fd-4ab2-aadd-a2aa70de84ea</id>
        <author>
            <name></name>
        </author>
        <title>
            <![CDATA[Schedule Irish]]>
        </title>
        <link rel="self" href="https://content.api.pressassociation.io/v1/item/b51cedfd-23fd-4ab2-aadd-a2aa70de84ea"/>
        <link rel="alternate" href="https://content.api.pressassociation.io/v1/item/b51cedfd-23fd-4ab2-aadd-a2aa70de84ea"/>
        <link rel="related" href="https://content.api.pressassociation.io/v1/item/b51cedfd-23fd-4ab2-aadd-a2aa70de84ea/more-like-this"/>
        <published>2019-10-16T08:35:30.000Z</published>
        <updated>2019-10-16T08:35:30.000Z</updated>
        <content type="html">
            <![CDATA[<p>Good morning from PA Ireland. Here is our schedule for today Wednesday October 16.</p><p>Dublin:</p><p>0900: Committee on online harassment and harmful communications. Cate McCurry reports. </p><p>1000: Leo Varadkar will deliver an address on Ireland&rsquo;s Agri-Food Strategy to 2030. President&rsquo;s Suite, Aviva Stadium. Aoife Moore and photographer Brian Lawless staffing.</p><p>1200: Leaders&rsquo; questions in the Dail. Cate McCurry reports.</p><p>Belfast:</p><p>1000: Ivor Bell trial of the facts continues (reporting restrictions apply) Belfast Crown Court. Rebecca Black staffing.</p><p>London:</p><p>0930: Northern Ireland Affairs Committee will be open its inquiry into organised crime gangs in Northern Ireland by questioning PSNI chief constable Simon Byrne. David Young reports.</p>]]>
        </content>
        <category term="paservice:news" scheme="urn:pa:subject:paservice" label="News"/>
        <category term="paservice:news:ireland" scheme="urn:pa:subject:paservice" label="Ireland"/>
        <category term="paservice:news:northern-ireland" scheme="urn:pa:subject:paservice" label="Northern Ireland"/>
        <category term="patopic:schedule" scheme="urn:pa:subject:patopic" label="Schedule"/>
        <category term="pakeyword:irish" scheme="urn:pa:subject:pakeyword" label="Irish"/>
        <category term="pakeyword:advisory" scheme="urn:pa:subject:pakeyword" label="Advisory"/>
        <category term="paterritory:europe:republic-of-ireland" scheme="urn:pa:subject:paterritory" label="Republic of Ireland"/>
        <category term="paterritory:uk:northern-ireland" scheme="urn:pa:subject:paterritory" label="Northern Ireland"/>
        <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:advisory" scheme="urn:pa:content:profile" label="advisory"/>
        <category term="type:text" scheme="urn:pa:content:type" label="text"/>
    </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/b51cedfd-23fd-4ab2-aadd-a2aa70de84ea?product=paproduct:now

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/b51cedfd-23fd-4ab2-aadd-a2aa70de84ea</link>
        <atom:link href="https://content.api.pressassociation.io/v1/item/b51cedfd-23fd-4ab2-aadd-a2aa70de84ea" 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>Wed, 16 Oct 2019 13:13:06 GMT</lastBuildDate>
        <item>
            <title>Schedule Irish</title>
            <link>https://content.api.pressassociation.io/v1/item/b51cedfd-23fd-4ab2-aadd-a2aa70de84ea</link>
            <pubDate>Wed, 16 Oct 2019 08:35:30 GMT</pubDate>
            <dc:publisher>PA</dc:publisher>
            <dcterms:created>2019-10-16T08:35:30.000Z</dcterms:created>
            <dcterms:modified>2019-10-16T08:35:30.000Z</dcterms:modified>
            <guid isPermaLink="true">https://content.api.pressassociation.io/v1/item/b51cedfd-23fd-4ab2-aadd-a2aa70de84ea</guid>
            <content:encoded>
                <![CDATA[<p>Good morning from PA Ireland. Here is our schedule for today Wednesday October 16.</p><p>Dublin:</p><p>0900: Committee on online harassment and harmful communications. Cate McCurry reports. </p><p>1000: Leo Varadkar will deliver an address on Ireland&rsquo;s Agri-Food Strategy to 2030. President&rsquo;s Suite, Aviva Stadium. Aoife Moore and photographer Brian Lawless staffing.</p><p>1200: Leaders&rsquo; questions in the Dail. Cate McCurry reports.</p><p>Belfast:</p><p>1000: Ivor Bell trial of the facts continues (reporting restrictions apply) Belfast Crown Court. Rebecca Black staffing.</p><p>London:</p><p>0930: Northern Ireland Affairs Committee will be open its inquiry into organised crime gangs in Northern Ireland by questioning PSNI chief constable Simon Byrne. David Young reports.</p>]]>
            </content:encoded>
            <category domain="urn:pa:subject:paservice">News</category>
            <category domain="urn:pa:subject:paservice">Ireland</category>
            <category domain="urn:pa:subject:paservice">Northern Ireland</category>
            <category domain="urn:pa:subject:patopic">Schedule</category>
            <category domain="urn:pa:subject:pakeyword">Irish</category>
            <category domain="urn:pa:subject:pakeyword">Advisory</category>
            <category domain="urn:pa:subject:paterritory">Republic of Ireland</category>
            <category domain="urn:pa:subject:paterritory">Northern Ireland</category>
            <category domain="urn:pa:subject:paselection">Curated</category>
            <category domain="urn:pa:subject:contributor">PA</category>
            <category domain="urn:pa:content:profile">advisory</category>
            <category domain="urn:pa:content:type">text</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"]