POST
/
api
/
search_by_link

Authorizations

x-api-token
string
header
required

API Key to authenticate requests.

To access the API, include your API key in the x-api-token header. To obtain your API key, complete the form or contact us directly.

Body

application/json
from_
default:
1 month ago

The starting point in time to search from. Accepts date-time strings in ISO 8601 format and plain text strings. The default time zone is UTC.

Formats with examples:

  • YYYY-mm-ddTHH:MM:SS: 2024-07-01T00:00:00
  • YYYY-MM-dd: 2024-07-01
  • YYYY/mm/dd HH:MM:SS: 2024/07/01 00:00:00
  • YYYY/mm/dd: 2024/07/01
  • English phrases: 1 day ago, today
ids

The Newscatcher article ID (corresponds to the _id field in API response) or a list of article IDs to search for. To specify multiple IDs, use a comma-separated string or an array of strings.

Examples:

  • "5f8d0d55b6e45e00179c6e7e,5f8d0d55b6e45e00179c6e7f"
  • ["5f8d0d55b6e45e00179c6e7e","5f8d0d55b6e45e00179c6e7f"]

Caution: You can use either the links or the ids parameter, but not both at the same time.

The article link or list of article links to search for. To specify multiple links, use a comma-separated string or an array of strings.

Examples:

  • "https://nytimes.com/article1, https://bbc.com/article2"
  • ["https://nytimes.com/article1", "https://bbc.com/article2"]

Caution: You can use either the links or the ids parameter, but not both at the same time.

page
integer
default:
1

The page number to scroll through the results. Use for pagination, as a single API response can return up to 1,000 articles.

For details, see How to paginate large datasets.

Required range: x > 1
page_size
integer
default:
100

The number of articles to return per page.

Required range: 1 < x < 1000
to_
default:
now

The ending point in time to search up to. Accepts date-time strings in ISO 8601 format and plain text strings. The default time zone is UTC.

Formats with examples:

  • YYYY-mm-ddTHH:MM:SS: 2024-07-01T00:00:00
  • YYYY-MM-dd: 2024-07-01
  • YYYY/mm/dd HH:MM:SS: 2024/07/01 00:00:00
  • YYYY/mm/dd: 2024/07/01
  • English phrases: 1 day ago, today

Response

200 - application/json

The response model for the search requests applies to the Search, Latest Headlines, Search by link, and Authors endpoints. Response field behavior:

  • Required fields are guaranteed to be present and non-null.
  • Optional fields may be null/undefined if the data couldn't be extracted during processing.
  • To access article properties in the articles response array, use array index notation. For example, articles[n].title, where n is the zero-based index of the article object (0, 1, 2, etc.).
  • The nlp property within the article object articles[n].nlp is only available with NLP-enabled subscription plans.
page
integer
required

The current page number of the results.

page_size
integer
required

The number of articles per page.

status
string
required

The status of the response.

total_hits
integer
required

The total number of articles matching the search criteria.

total_pages
integer
required

The total number of pages available for the given search criteria.

articles
object[]

A list of articles matching the search criteria.

user_input
object

The user input parameters for the request.