Press Trust of India scraper API: search results and articles as JSON
Send any Press Trust of India page URL with recipe=ptinews and get headline, summary, url and 5 more fields as JSON. No selectors to write, no proxies to pick.
- 2 page types
- 8 fields
- 5 credits a page · $0.50 per 1,000
- Working · 100% in 7 days
5,000 free credits for 7 days, no card.
curl -G 'https://api.ujeebu.com/scrape' \
-H "ApiKey: $UJEEBU_API_KEY" \
--data-urlencode 'url=https://www.ptinews.com/international-news' \
--data-urlencode 'recipe=ptinews/listing'
{
"result": {
"headline": "Pak defence expert stresses need to resolve d...",
"summary": "A senior Pakistani defence expert on Wednesda..."
},
"success": true
}
What you get from Press Trust of India
The fields of each page type and a real sample from our last validation, shortened.
Search and listing pages recipe=ptinews/listing 5 credits a page
| Field | Type | Example |
|---|---|---|
articles | list of 3+ items | |
articles[].headline | text | Pak defence expert stresses need to resolve disputes with India |
articles[].summary | text | A senior Pakistani defence expert on Wednesday stressed the need to... |
articles[].url | URL | https://www.ptinews.com/story/international/pak-defence-expert-stre... |
Sample answer, validated 2026-10-29
{
"articles": [
{
"headline": "Pak defence expert stresses need to resolve disputes with India",
"summary": "A senior Pakistani defence expert on Wednesday stressed the need to resolve the disputes with India, warning that ending a crisis without addressing its root...",
"url": "https://www.ptinews.com/story/international/pak-defence-expert-stresses-need-to-resolve-disputes-with-india/4187644"
},
{
"headline": "Goyal to visit Germany, Netherlands from Oct 22-27; to discuss ways for boosting trade, investment",
"summary": "Accompanied by about 100 business leaders, Commerce and Industry Minister Piyush Goyal will visit two European countries - Germany and the Netherlands - from...",
"url": "https://www.ptinews.com/story/international/goyal-to-visit-germany-netherlands-from-oct-22-27;-to-discuss-ways-for-boosting-trade-investment/4187279"
}
]
}
Articles recipe=ptinews/detail 5 credits a page
| Field | Type | Example |
|---|---|---|
article.description | text | Dushanbe, Oct 20 (PTI) Defence Minister Rajnath Singh on Tuesday an... |
article.headline | text | India to host inaugural SCO Civilisation Dialogue Forum by year-end... |
article.image | image URL | https://pti-xml.multitvsolution.com/ptiimage/gall_content/2022/PTI1... |
article.modified | text | Tuesday, Oct 20, 2026 13:56:22 |
article.published | text | Tuesday, Oct 20, 2026 13:56:22 |
article.publisher | text | PTI News |
url | URL | https://www.ptinews.com/story/sports/india-to-host-inaugural-sco-ci... |
Sample answer, validated 2026-10-29
{
"article": {
"description": "Dushanbe, Oct 20 (PTI) Defence Minister Rajnath Singh on Tuesday announced that India will host the first Shanghai Cooperation Organisation (SCO) Civilisatio...",
"headline": "India to host inaugural SCO Civilisation Dialogue Forum by year-end: Rajnath Singh",
"image": "https://pti-xml.multitvsolution.com/ptiimage/gall_content/2022/PTI10_20_2026_000036B.jpg",
"modified": "Tuesday, Oct 20, 2026 13:56:22",
"published": "Tuesday, Oct 20, 2026 13:56:22",
"publisher": "PTI News"
},
"url": "https://www.ptinews.com/story/sports/india-to-host-inaugural-sco-civilisation-dialogue-forum-by-year-end-rajnath-singh/4182834"
}
One call
Send the page URL and the recipe name to the Scrape API. The recipe brings the extract rules and the settings that work on Press Trust of India (JavaScript rendering and a wait for the content).
curl -G 'https://api.ujeebu.com/scrape' \
-H "ApiKey: $UJEEBU_API_KEY" \
--data-urlencode 'url=https://www.ptinews.com/international-news' \
--data-urlencode 'recipe=ptinews/listing'
import os, requests
r = requests.get(
"https://api.ujeebu.com/scrape",
params={"url": "https://www.ptinews.com/international-news", "recipe": "ptinews/listing"},
headers={"ApiKey": os.environ["UJEEBU_API_KEY"]},
timeout=120,
)
print(r.json()["result"])
const params = new URLSearchParams({
url: "https://www.ptinews.com/international-news",
recipe: "ptinews/listing",
});
const res = await fetch(`https://api.ujeebu.com/scrape?${params}`, {
headers: { ApiKey: process.env.UJEEBU_API_KEY },
});
console.log((await res.json()).result);
The answer is {"result": {...}} with the headers Ujb-Recipe and Ujb-Credits. Other page types: recipe=ptinews/detail, or recipe=ptinews and the API picks the page type from the URL. Your own parameters always win over the recipe.
What people build with Press Trust of India data
Media monitoring
Track the articles published on the topics and companies you follow.
Learn moreContent for AI and RAG
Collect headlines, dates and summaries as structured input for search and LLM pipelines.
Learn morePublishing timeline
Measure when and how often a site publishes, by section.
Price
Same price as the page call, no fee for the recipe. Only successful responses are billed; blocked, timed-out and failed requests are free.
| Page type | Credits a page | Per 1,000, Starter | Per 1,000, Pro |
|---|---|---|---|
| Search results, Article | 5 | $0.82 | $0.50 |
FAQ
What does the Press Trust of India recipe return?
JSON with 8 fields from search results (recipe=ptinews/listing) and article (recipe=ptinews/detail), for example headline, summary, url. The answer is {"result": {...}} with the fields shown on this page.
How much does it cost to scrape Press Trust of India?
5 credits a page ($0.50 per 1,000 on Pro, $0.82 on Starter). Same price as the page call, no fee for the recipe. Only successful responses are billed; blocked, timed-out and failed requests are free.
Do I need proxies or a headless browser?
No. The recipe brings the settings that work on Press Trust of India: JavaScript rendering and a wait for the content. Send only the URL and recipe=ptinews/listing.
What happens when Press Trust of India changes its pages?
We check Press Trust of India every day and re-validate the recipe on real pages every week, then fix it when the site changes. Until a fix is live, the API answers 404 "the recipe has no working version" instead of empty data, and that call is free.
Can I change the fields?
Yes. Send your own extract_rules or any setting (js, proxy_type, wait_for) and it wins over the recipe. The developer guide shows the recipe rules to start from.
Related recipes
- SubstackArticle · 5 credits
Yahoo FinancePage · 5 credits
Yahoo NewsSearch results, Article · 5 credits
AFP Fact CheckArticle · 5 credits
Al JazeeraArticle · 5 credits
Ars TechnicaSearch results, Article · 5 credits
Logos and names belong to their owners. Ujeebu is not affiliated with Press Trust of India.
Get Press Trust of India data as JSON today.
5,000 free credits for 7 days. No card.