[Request] 1. API Call: q=Cyprus
Here is the request built by langchainrb's
NewsRetriever tool:
irb> NewsRetriever.get_everything(q: 'Cyprus', page_size: 6)
I, [2024-05-24T18:31:54.143965 #2273497] INFO -- : [Langchain.rb] [NewsRetriever]: Retrieving all news
API Result ("BFJ"):
Status (from JSON): ok
Total results (from JSON): 1025
{"status":"ok","totalResults":1025,"articles":[{"source":{"id":null,"name":"BBC News"},"author":null,"title":"British man arrested in Cyprus suspected of spying and terror offences","description":"The Foreign Office says it is in contact with Cypriot authorities after the arrest.","url":"https://www.bbc.com/news/articles/c628jy5rg78o","urlToImage":"https://ichef.bbci.co.uk/news/1024/branded_news/0215/live/a8b7bcf0-4ebb-11f0-9aa0-796ec11eecac.jpg","publishedAt":"2025-06-21T17:04:49Z","content":"A British man has been arrested in Cyprus on suspicion of spying and terror-related offences.\r\nThe BBC understands he is thought to have carried out surveillance for Iran on the RAF Akrotiri base on … [+1276 chars]"},
{"source":{"id":null,"name":"BBC News"},"author":null,"title":"RAF flight evacuates British nationals from Israel","description":"Foreign Secretary David Lammy says 63 British nationals were evacuated by the RAF from Tel Aviv.","url":"https://www.bbc.com/news/articles/cy5wkld3r0xo","urlToImage":"https://ichef.bbci.co.uk/news/1024/branded_news/201f/live/cf6697c0-5048-11f0-932e-09e4445146f3.jpg","publishedAt":"2025-06-23T16:13:13Z","content":"The RAF has evacuated 63 British nationals from Israel as Tel Aviv and Tehran continue to exchange fire, the foreign secretary has said.\r\nThe flight left Tel Aviv on Monday afternoon, taking vulnerab… [+1843 chars]"},
{"source":{"id":null,"name":"BBC News"},"author":null,"title":"Is the UK about to get dragged in to this conflict?","description":"Britain is almost certain to be affected if the US gets involved - but what role could it play?","url":"https://www.bbc.com/news/articles/c36x1d071k8o","urlToImage":"https://ichef.bbci.co.uk/news/1024/branded_news/ae65/live/70f8e800-4d23-11f0-9efb-9fc6c4760a4c.jpg","publishedAt":"2025-06-19T16:23:25Z","content":"Frank GardnerBBC Security Correspondent\r\nPeople gather outside the UK parliament protesting against Israel's attacks on Iran\r\nIs this, some will be wondering, 2003 all over again? \r\nIn 2003 Britain j… [+5856 chars]"},
{"source":{"id":null,"name":"BBC News"},"author":null,"title":"Israel's smaller, sophisticated military opposes larger Iran","description":"Israel's air power may set back Iran's nuclear programme, but it won't destroy it.","url":"https://www.bbc.com/news/articles/cx2lxkpekedo","urlToImage":"https://ichef.bbci.co.uk/news/1024/branded_news/1481/live/0e4a2790-4acc-11f0-bf97-355d713cb260.jpg","publishedAt":"2025-06-16T17:15:51Z","content":"Jonathan Beale\r\nA woman looks out of her bomb-damaged flat in Tehran\r\nIsrael's conflict with Iran may look like a mismatch on paper - a nation of nine million people taking on a giant of the Middle E… [+5327 chars]"},
{"source":{"id":null,"name":"BBC News"},"author":null,"title":"Trump approves Iran attack plan but has not made final decision, US media says","description":"US president says \"nobody knows what I'm going to do\" as he weighs strike on Iran.","url":"https://www.bbc.com/news/articles/c4g8r8rj87vo","urlToImage":"https://ichef.bbci.co.uk/news/1024/branded_news/aa91/live/3c8cf040-4c8b-11f0-b0d6-1d729947ac7a.jpg","publishedAt":"2025-06-19T02:56:39Z","content":"Graeme Baker & Helen Sullivan\r\nDonald Trump has approved plans to attack Iran, but has not made a final decision on whether to strike the country, the BBC's US partner CBS reports.\r\nThe US presid… [+4347 chars]"},
{"source":{"id":null,"name":"MacRumors"},"author":"Joe Rossignol","title":"Apple Adds Energy and Battery Labels to iPhone and iPad Pages in EU","description":"To comply with a new regulation that takes effect today, Apple has added an energy efficiency label to its iPhone and iPad pages in EU countries. Apple is also required to start including a printed version of the label with the devices sold there.\n\n\n\n\n\nThe la…","url":"https://www.macrumors.com/2025/06/20/apple-adds-labels-to-iphone-ipad-pages-in-eu/","urlToImage":"https://images.macrumors.com/t/_HZk2q2cUe4adsch39t7RPiTYWk=/2500x/article-new/2025/06/Apple-Adds-Energy-and-Battery-Labels-to-iPhone-and-iPad-Pages-in-EU-Feature.jpg","publishedAt":"2025-06-20T17:08:24Z","content":"To comply with a new regulation that takes effect today, Apple has added an energy efficiency label to its iPhone and iPad pages in EU countries. Apple is also required to start including a printed v… [+2770 chars]"}]}
[Response] 2. API results: First Article
source: {"id"=>nil, "name"=>"BBC News"}
author:
title: British man arrested in Cyprus suspected of spying and terror offences
description: The Foreign Office says it is in contact with Cypriot authorities after the arrest.
url: https://www.bbc.com/news/articles/c628jy5rg78o
urlToImage: https://ichef.bbci.co.uk/news/1024/branded_news/0215/live/a8b7bcf0-4ebb-11f0-9aa0-796ec11eecac.jpg
publishedAt: 2025-06-21T17:04:49Z
content: A British man has been arrested in Cyprus on suspicion of spying and terror-related offences.
The BBC understands he is thought to have carried out surveillance for Iran on the RAF Akrotiri base on … [+1276 chars]
fine hidden
[Response] 3. API results from NewsCatcher: reassembled from JSON
2025-06-21 -
The Foreign Office says it is in contact with Cypriot authorities after the arrest.
A British man has been arrested in Cyprus on suspicion of spying and terror-related offences.
The BBC understands he is thought to have carried out surveillance for Iran on the RAF Akrotiri base on … [+1276 chars]
2025-06-23 -
Foreign Secretary David Lammy says 63 British nationals were evacuated by the RAF from Tel Aviv.
The RAF has evacuated 63 British nationals from Israel as Tel Aviv and Tehran continue to exchange fire, the foreign secretary has said.
The flight left Tel Aviv on Monday afternoon, taking vulnerab… [+1843 chars]
2025-06-19 -
Britain is almost certain to be affected if the US gets involved - but what role could it play?
Frank GardnerBBC Security Correspondent
People gather outside the UK parliament protesting against Israel's attacks on Iran
Is this, some will be wondering, 2003 all over again?
In 2003 Britain j… [+5856 chars]
2025-06-16 -
Israel's air power may set back Iran's nuclear programme, but it won't destroy it.
Jonathan Beale
A woman looks out of her bomb-damaged flat in Tehran
Israel's conflict with Iran may look like a mismatch on paper - a nation of nine million people taking on a giant of the Middle E… [+5327 chars]
2025-06-19 -
US president says "nobody knows what I'm going to do" as he weighs strike on Iran.
Graeme Baker & Helen Sullivan
Donald Trump has approved plans to attack Iran, but has not made a final decision on whether to strike the country, the BBC's US partner CBS reports.
The US presid… [+4347 chars]
2025-06-20 - Joe Rossignol
To comply with a new regulation that takes effect today, Apple has added an energy efficiency label to its iPhone and iPad pages in EU countries. Apple is also required to start including a printed version of the label with the devices sold there.
The la…
To comply with a new regulation that takes effect today, Apple has added an energy efficiency label to its iPhone and iPad pages in EU countries. Apple is also required to start including a printed v… [+2770 chars]
Note. This CSS was created by Gemini Ultra. We're taking all the ingredients from JSON artifact
and building it back into a nice tailwind card.
The fields provided by the JSON result (first article to be specific) are: ["source", "author", "title", "description", "url", "urlToImage", "publishedAt", "content"]