News article or news story with headline, content, source attribution, geographic and language information. Used for news websites, RSS feeds, and news aggregation platforms.
https://api.mockly.codes/newses?page=1&limit=10&count=10Configure your request and click Send Request to see the response here.
/newsesGet a collection of news
/content/newses/newses/:idGet a single news by ID
/content/newses/:id/newses/metaGet resource metadata and schema
/content/newses/metaThe search feature allows you to filter results by searching for text across all or specific fields. Choose between ?q= or ?search= parameter names.
Search across all text fields:
GET https://api.mockly.codes/newses?q=laptopGET https://api.mockly.codes/newses?q=laptop&search_fields=name,descriptionsearch_fields, all text fields are searched// Get 10 news
fetch('https://api.mockly.codes/newses?count=10')
.then(res => res.json())
.then(data => console.log(data));import requests
response = requests.get(
'https://api.mockly.codes/newses?count=10'
)
data = response.json()curl "https://api.mockly.codes/newses?count=10"fetch('https://api.mockly.codes/newses?nocache=true')idintegerUnique identifier for the news article
random_intheadlinestringMain headline or title of the news story
sentencesummarystringBrief summary or lead paragraph of the news article
paragraphcontentstringFull news article content and body text
paragraphauthorstringFull name of the journalist or reporter who wrote the article
namesourcestringNews organization or publication that published the article (e.g., BBC, CNN, Reuters)
companycategorystringNews category (e.g., Politics, Business, Technology, Sports, World)
news_categorycountrystringCountry where the news story originates or is most relevant
countrylanguagestringLanguage code of the article content (e.g., en, es, fr)
languagetagsarrayArray of topic tags for categorization and search
tagsimagestringURL to the featured image or photo accompanying the news article
image_urluriurlstringOriginal URL where the news article was published
urluripublished_atstringTimestamp when the news article was published
past_datedate-timecountintegerNumber of items to return (default: 10, max: 100)
seedintegerSeed for reproducible data generation
nocachebooleanBypass cache and generate fresh data on every request