Services

This page will contain the Service taxonomy and cover any frequently asked questions regarding the Services

What services are available in the Content API?

Services are the main channels of content available from PA, with each broken down further by two or more sub-services.

The top level services are:

NameCodeCreateReadyNow
Newspaservice:news
Sportpaservice:sport
Entertainmentpaservice:entertainment
Financepaservice:finance
Sci-Techpaservice:sci-techX
Lifestylepaservice:lifestyleX
Upliftingpaservice:viralX
Real Lifepaservice:real-lifeX
Motoringpaservice:motoringX

News sub-services

NameCodeCreateReadyNow
News: UKpaservice:news:uk
News: Scotlandpaservice:news:scotland
News: Walespaservice:news:wales
News: Northern Irelandpaservice:news:northern-ireland
News: Republic of Irelandpaservice:news:ireland
News: Worldpaservice:news:world

Sport sub-services

NameCodeCreateReadyNow
Sport: UKpaservice:sport:uk
Sport: Footballpaservice:sport:football
Sport: Racingpaservice:sport:racing
Sport: Match Reportspaservice:sport:match-reports
Sport: Club Newspaservice:sport:club-news
Sport: Worldpaservice:sport:world

Entertainment sub-services

NameCodeCreateReadyNow
Entertainment: UKpaservice:entertainment:uk
Entertainment: TVpaservice:entertainment:tv
Entertainment: Soapspaservice:entertainment:soaps
Entertainment: Moviespaservice:entertainment:movies
Entertainment: Musicpaservice:entertainment:music
Entertainment: Worldpaservice:entertainment:world

Finance sub-services

NameCodeCreateReadyNow
Finance: Citypaservice:finance:city
Finance: Personal Financepaservice:finance:personal-finance
Finance: Worldpaservice:finance:world

Sci-Tech subservices

NameCodeCreateReadyNow
Sci-Tech: Sciencepaservice:sci-tech:scienceX
Sci-Tech: Technologypaservice:sci-tech:technologyX

Lifestyle subservices

NameCodeCreateReadyNow
Lifestyle: Fashion & Beautypaservice:lifestyle:fashion-beautyX
Lifestyle: Food & Drinkpaservice:lifestyle:food-drinkX
Lifestyle: Health & Wellbeingpaservice:lifestyle:health-wellbeingX
Lifestyle: Lifepaservice:lifestyle:lifeX
Lifestyle: Travelpaservice:lifestyle:travelX
Lifestyle: TVpaservice:lifestyle:tvXX
Lifestyle: Filmpaservice:lifestyle:filmXX
Lifestyle: Musicpaservice:lifestyle:musicXX

Uplifting subservices

NameCodeCreateReadyNow
Uplifting: Newspaservice:viral:newsX
Uplifting: Sportpaservice:viral:sportX
Uplifting: Animalspaservice:viral:animalsX

Note: This used to be called viral and the code is a hangover.


Real Life subservices

NameCodeCreateReadyNow
Real Life: Body Imagepaservice:real-life:body-imageX
Real Life: Crimepaservice:real-life:crimeX
Real Life: Familypaservice:real-life:familyX
Real Life: Healthpaservice:real-life:healthX
Real Life: Love & Relationshipspaservice:real-life:love-relationshipsX
Real Life: Parentingpaservice:real-life:parentingX
Real Life: Quirkypaservice:real-life:quirkyX
Real Life: Seasonalpaservice:real-life:seasonalX
Real Life: Sexpaservice:real-life:sexX
Real Life: Shockspaservice:real-life:shocksX

Motoring subservices

NameCodeCreateReadyNow
Motoring: Featurespaservice:motoring:featuresX
Motoring: Newspaservice:motoring:newsX
Motoring: Road Testspaservice:motoring:road-testsX

Extra services

These services are in addition to other services (usually news) and add extra filtering or categorisation.

NameCodeCreateReadyNow
Energy & Environmentpaservice:energy-environmentXX
Energy & Environment: Climatepaservice:energy-environment:climateXX
Energy & Environment: Conservationpaservice:energy-environment:conservationXX
Energy & Environment: Energypaservice:energy-environment:energyXX
Energy & Environment: Farmingpaservice:energy-environment:farmingXX
Energy & Environment: Green Livingpaservice:energy-environment:green-livingXX
Energy & Environment: Heritagepaservice:energy-environment:heritageXX
Energy & Environment: Renewablespaservice:energy-environment:renewablesXX
Energy & Environment: Sustainabilitypaservice:energy-environment:sustainabilityXX
Healthpaservice:healthXX
Health: Pharmapaservice:health:pharmaXX
Health: NHSpaservice:health:nhsXX
Health: Social Carepaservice:health:social-careXX
Health: Researchpaservice:health:researchXX
Health: Wellbeingpaservice:health:wellbeingXX
Health: Mental Healthpaservice:health:mental-healthXX
Lawpaservice:lawXX
Politicspaservice:politicsXX
Politics: Business & Economypaservice:politics:business-economyXX
Politics: Culturepaservice:politics:cultureXX
Politics: Defencepaservice:politics:defenceXX
Politics: Educationpaservice:politics:educationXX
Politics: Environmentpaservice:politics:environmentXX
Politics: Tradepaservice:politics:tradeXX
Politics: Foreign Affairspaservice:politics:foreign-affairsXX
Politics: Healthpaservice:politics:healthXX
Politics: Home Affairspaservice:politics:home-affairsXX
Politics: Housingpaservice:politics:housingXX
Politics: Transportpaservice:politics:transportXX
Royalpaservice:royalXX
ESGpaservice:esgXX
ESG: Environmentalpaservice:esg:environmentalXX
ESG: Socialpaservice:esg:socialXX
ESG: Governancepaservice:esg:governanceX

To see these extra services in action please see the mega menu in Explore Create:



Why can I only see a small number of services?

Content API is built around an entitlement model which basically means when we provision your API key we activate certain services against it (e.g. the News or Sport services). When you make a request to the Service Collection endpoint you will only ever see the services or sub-services you're entitled to access.

If you'd like to expand these services please contact the PA Commercial team on 020 7963 7624.

How do I see just the parent services (e.g. News, Sport, Motoring, Real Life)?

To return just the parent or top-level services you can utilise the query functionality. You can request that all services are returned that do not have subject properties with a profile of paservice.

Making the following request will list all available (and entitled) parent services:

curl \
  -H "Accept: application/json" \
  -H "apikey: <API KEY>" \
  https://content.api.pressassociation.io/v1/service?query=!subject.profile:"paservice"

How do I see what sub-services exist for a service?

A service can have several sub-services, for example the service "Sport" has several sub-services including: Football, Tennis and F1.

Making the following request will list all available (and entitled) sub-services for a service:

curl \
  -H "Accept: application/json" \
  -H "apikey: <API KEY>" \
  https://content.api.pressassociation.io/v1/service?parentSubject=paservice:sport

How I paginate through services?

Please refer to the Pagination section of this documentation.

How do I get return Atom or RSS?

Please refer to the Content Negotiation section of this documentation.

How do I get items for a service?

There are two methods of retrieving items for a service.

The first (and more verbose) way is to query the /item endpoint by providing a subject parameter, for example:

curl \
  -H "Accept: application/json" \
  -H "apikey: <API KEY>" \
  https://content.api.pressassociation.io/v1/item?subject=paservice:sport

The alternative, shortcut version is to simply call the item endpoint of the service resource, for example:

curl \
  -H "Accept: application/json" \
  -H "apikey: <API KEY>" \
  https://content.api.pressassociation.io/v1/service/paservice:sport/item

How do I use partial response to customise the JSON fields that are returned?

Please refer to the Partial Response section of this documentation.

Article metadata

Articles in each service carry a range of metadata to identify the subject matter and, where appropriate, type of story, geographical territory, plus additional categories for sport content.