Please take a look at the getting started guide if you are unfamiliar with the Netcopy API.

GET /articles

Search for articles based on issue, content, locations, topics, and more with optional result faceting.

Parameters

Name Required? Default Example Description
term No n/a "prime minister 1934" Free text search term matched against article body.
from No n/a "2012-12-02" Only include articles whose date is greater than or equal to {from}. See supported date formats
to No n/a "2012-12-02" Only include articles whose date is less than or equal to {to}. See supported date formats
facet No n/a "people,year" Generate facets for the fields specified.
filter No n/a "people:'Queen Elizabeth'" Return only articles that mention Queen Elizabeth.
sort No "relevance" "date" Metric to sort the articles by.
descending No "false" "true" If set to "true" then articles will be sorted in descending order. See supported boolean formats
items-per-page No 20 13 Limit the number of issues returned per request.
page No 1 3 Specify which page of issues to return.

Filtering

As well as searching based on a user entered query or free-text term it is possible to filter based on specific fields.

Filters are specified as a key-value pair separated by a colon. Multiple filters can be specified by separating with a comma, for example:

people:'Queen Elizabeth',topic:'Human Interest'

You can filter on the following fields:

Sorting

By default results are returned in order of relevance based on the term provided. You may optionally sort results on the following fields:

Faceting


A list of facets based on sector

Faceted searches enable users to drill-down through collections of articles based on their attributes. Facets can be shown alongside search results with the number of articles within the facet.

Date facets

Faceting by date lets you break down your archived content into periods. As well as producing counts for the number of articles per month, year, or decade a suitable title for the period is also generated (i.e. "August 2012", "1965", or "1980s").

Location facets

Location facets are returned with latitude and longitude values.

Other facets

Examples

Click an example link to see the results below.

Result

The method returns a list of articles that matched the search terms specified.







Netcopy Ltd (Company No. 07308350) — Registered Office: 2 East Common, Harpenden, Herts, AL5 1BJ