POST
/
api
/
search_by_link

Authorizations

x-api-token
string
headerrequired

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
ids
required

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"]

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

links
required

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"]

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

from_
string
default: 1 month ago

The starting point in time to search from. The publication date of the article is used. The default time zone is UTC. Available formats:

  • YYYY/mm/dd
  • YYYY/mm/dd HH:MM:SS
  • English phrases like 1 day ago.
to_
string
default: now

The ending point in time to search up to. The publication date of the article is used. The default time zone is UTC. Available formats:

  • YYYY/mm/dd
  • YYYY/mm/dd HH:MM:SS
  • English phrases like 1 day ago.
page
integer
default: 1

The page number to scroll through the results. This parameter is used to paginate: scroll through results because one API response cannot return more than 1000 articles.

page_size
integer
default: 100

The number of articles to return per page. Range: 1 to 1000.

Response

200 - application/json

The response model for a search request.

status
string
default: ok

The status of the response.

total_hits
integer
required

The total number of articles matching the search criteria.

page
integer
required

The current page number of the results.

total_pages
integer
required

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

page_size
integer
required

The number of articles per page.

articles
object[]
required

A list of articles matching the search criteria.

user_input
object
required

The user input parameters for the search.