{"id":1518,"date":"2023-08-28T07:03:27","date_gmt":"2023-08-28T01:33:27","guid":{"rendered":"https:\/\/newsdata.io\/blog\/?p=1518"},"modified":"2024-07-02T10:42:17","modified_gmt":"2024-07-02T05:12:17","slug":"all-about-news-archive-endpoint","status":"publish","type":"post","link":"https:\/\/newsdata.io\/blog\/all-about-news-archive-endpoint\/","title":{"rendered":"All about News \u201cArchive\u201d Endpoint"},"content":{"rendered":"[vc_row type=&#8221;in_container&#8221; full_screen_row_position=&#8221;middle&#8221; column_margin=&#8221;default&#8221; column_direction=&#8221;default&#8221; column_direction_tablet=&#8221;default&#8221; column_direction_phone=&#8221;default&#8221; scene_position=&#8221;center&#8221; text_color=&#8221;dark&#8221; text_align=&#8221;left&#8221; row_border_radius=&#8221;none&#8221; row_border_radius_applies=&#8221;bg&#8221; overflow=&#8221;visible&#8221; overlay_strength=&#8221;0.3&#8243; gradient_direction=&#8221;left_to_right&#8221; shape_divider_position=&#8221;bottom&#8221; bg_image_animation=&#8221;none&#8221;][vc_column column_padding=&#8221;no-extra-padding&#8221; column_padding_tablet=&#8221;inherit&#8221; column_padding_phone=&#8221;inherit&#8221; column_padding_position=&#8221;all&#8221; bottom_margin=&#8221;220&#8243; column_element_direction_desktop=&#8221;default&#8221; column_element_spacing=&#8221;default&#8221; desktop_text_alignment=&#8221;default&#8221; tablet_text_alignment=&#8221;default&#8221; phone_text_alignment=&#8221;default&#8221; sticky_content=&#8221;true&#8221; sticky_content_functionality=&#8221;js&#8221; background_color_opacity=&#8221;1&#8243; background_hover_color_opacity=&#8221;1&#8243; column_backdrop_filter=&#8221;none&#8221; column_shadow=&#8221;none&#8221; column_border_radius=&#8221;none&#8221; column_link_target=&#8221;_self&#8221; column_position=&#8221;default&#8221; gradient_direction=&#8221;left_to_right&#8221; overlay_strength=&#8221;0.3&#8243; width=&#8221;1\/4&#8243; tablet_width_inherit=&#8221;default&#8221; animation_type=&#8221;default&#8221; bg_image_animation=&#8221;none&#8221; border_type=&#8221;simple&#8221; column_border_width=&#8221;none&#8221; column_border_style=&#8221;solid&#8221; column_padding_type=&#8221;default&#8221; gradient_type=&#8221;default&#8221; offset=&#8221;vc_hidden-sm vc_hidden-xs&#8221;][\/vc_column][vc_column right_padding_desktop=&#8221;40&#8243; right_padding_tablet=&#8221;0&#8243; right_padding_phone=&#8221;0&#8243; top_margin=&#8221;-240&#8243; top_margin_tablet=&#8221;-180&#8243; top_margin_phone=&#8221;-135&#8243; column_element_direction_desktop=&#8221;default&#8221; column_element_spacing=&#8221;default&#8221; desktop_text_alignment=&#8221;default&#8221; tablet_text_alignment=&#8221;default&#8221; phone_text_alignment=&#8221;default&#8221; background_color_opacity=&#8221;1&#8243; background_hover_color_opacity=&#8221;1&#8243; column_backdrop_filter=&#8221;none&#8221; column_shadow=&#8221;none&#8221; column_border_radius=&#8221;none&#8221; column_link_target=&#8221;_self&#8221; column_position=&#8221;default&#8221; el_class=&#8221;text_block_wrapper&#8221; gradient_direction=&#8221;left_to_right&#8221; overlay_strength=&#8221;0.3&#8243; width=&#8221;3\/4&#8243; tablet_width_inherit=&#8221;default&#8221; animation_type=&#8221;default&#8221; bg_image_animation=&#8221;none&#8221; border_type=&#8221;simple&#8221; column_border_width=&#8221;none&#8221; column_border_style=&#8221;solid&#8221; column_padding_type=&#8221;advanced&#8221; gradient_type=&#8221;default&#8221; offset=&#8221;vc_col-lg-9 vc_col-md-12&#8243;][image_with_animation image_url=&#8221;1519&#8243; image_size=&#8221;full&#8221; animation_type=&#8221;entrance&#8221; animation=&#8221;None&#8221; animation_movement_type=&#8221;transform_y&#8221; hover_animation=&#8221;none&#8221; alignment=&#8221;&#8221; border_radius=&#8221;none&#8221; box_shadow=&#8221;none&#8221; image_loading=&#8221;default&#8221; max_width=&#8221;100%&#8221; max_width_mobile=&#8221;default&#8221;][vc_column_text css=&#8221;.vc_custom_1713251116585{padding-bottom: 20px !important;}&#8221;]The \u201cNews archive\u201d endpoint allows you to delve into the past and extract valuable historical news articles along with valuable insights. In this article, we\u2019ll explore the News \u201cArchive\u201d endpoint of the NewsData.io API documentation, uncovering its features and discussing how it empowers users to access and analyze historical news data.[\/vc_column_text][vc_column_text css=&#8221;.vc_custom_1713251139637{padding-bottom: 20px !important;}&#8221;]\n<h2><b>Understanding the News \u201cArchive\u201d Endpoint<\/b><\/h2>\n[\/vc_column_text][vc_column_text css=&#8221;.vc_custom_1713251235235{padding-bottom: 20px !important;}&#8221;]The News \u201cArchive\u201d endpoint allows users to retrieve news content from a specific date range. The date range varies for everyone as per their <a href=\"https:\/\/newsdata.io\/pricing\">subscription plan<\/a>.<\/p>\n<ul>\n<li>For Basic users, the date range is from the past 6 months.<\/li>\n<li>For professional users, the date range is 1 year.<\/li>\n<li>For corporate users, the date range is 2 years, enabling them to study trends, events, and narratives that have shaped our world over time.<\/li>\n<\/ul>\n<p><b>NOTE: <\/b>You can also request the past data for up to 5 years. This can be done by <a href=\"https:\/\/newsdata.io\/contact\">contacting<\/a> us at as well.[\/vc_column_text][vc_column_text css=&#8221;.vc_custom_1713251283789{padding-bottom: 20px !important;}&#8221;]\n<h2><b>How to use News \u201cArchive\u201d endpoint<\/b><\/h2>\n[\/vc_column_text][vc_column_text css=&#8221;.vc_custom_1713251619237{padding-bottom: 20px !important;}&#8221;]\n<h3><b>1. Construct Your Request<\/b><\/h3>\n<p>The first and foremost step is constructing an API request using the News \u201cArchive\u201d endpoint.<br \/>\n<code>https:\/\/newsdata.io\/api\/1\/archive?apikey=pub_YOUR_API_KEY<\/code><\/p>\n<p><b>NOTE:<\/b> You can also access the base URL and details about query parameters from the documentation.<\/p>\n<h3><b>2. Authentication<\/b><\/h3>\n<p>Just like other NewsData.io API requests, include your API key for authentication.<\/p>\n<h3><b>3. Define Date Range<\/b><\/h3>\n<p>Specify the start and end dates of the period you\u2019re interested in exploring.<\/p>\n<h3><b>4. Apply Filters<\/b><\/h3>\n<p>You can customize your request by adding filters like sources, countries, languages, or keywords. This ensures that the fetched articles align with your specifications.<\/p>\n<h3><b>5. Retrieve and Analyze<\/b><\/h3>\n<p>Upon sending the request, you\u2019ll receive a JSON response containing historical news articles within your specified date range.[\/vc_column_text][vc_column_text css=&#8221;.vc_custom_1713251652264{padding-bottom: 20px !important;}&#8221;]\n<h2><b>Parameters of News Archive Endpoints<\/b><\/h2>\n[\/vc_column_text][vc_column_text css=&#8221;.vc_custom_1713262020815{padding-bottom: 20px !important;}&#8221;]\n<h3><b>1. id<\/b><\/h3>\n<p>Search specific news articles using a unique \u201c<strong>article_id<\/strong>\u201d string assigned to each article. You can include up to 50 such \u2018article_id\u2019 strings in a single query.<\/p>\n<p>For better understanding, below are some examples.<\/p>\n<ul>\n<li style=\"list-style-type: none\">\n<ul>\n<li>If you want to fetch only a single article with specified &#8216;article_id&#8217;,<br \/>\n<code>https:\/\/newsdata.io\/api\/1\/archive?apikey=pub_YOUR_API_KEY&amp;q=war&amp;id=936fbaa50b8ba3abca62f9e798cc32d3<\/code><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3726\" src=\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-id-1.png?resize=636%2C193&#038;ssl=1\" alt=\"\" width=\"636\" height=\"193\" srcset=\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-id-1.png?resize=300%2C91&amp;ssl=1 300w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-id-1.png?resize=1024%2C312&amp;ssl=1 1024w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-id-1.png?resize=768%2C234&amp;ssl=1 768w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-id-1.png?resize=1536%2C468&amp;ssl=1 1536w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-id-1.png?w=1758&amp;ssl=1 1758w\" sizes=\"(max-width: 636px) 100vw, 636px\" data-recalc-dims=\"1\" \/><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li>If you want to fetch several articles with individual specified &#8216;article_id&#8217;,<br \/>\n<code>https:\/\/newsdata.io\/api\/1\/archive?apikey=pub_YOUR_API_KEY&amp;q=war&amp;id=936fbaa50b8ba3abca62f9e798cc32d3,<br \/>\n<\/code><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3727\" src=\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-id-2.png?resize=645%2C198&#038;ssl=1\" alt=\"\" width=\"645\" height=\"198\" srcset=\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-id-2.png?resize=300%2C92&amp;ssl=1 300w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-id-2.png?resize=1024%2C314&amp;ssl=1 1024w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-id-2.png?resize=768%2C236&amp;ssl=1 768w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-id-2.png?resize=1536%2C472&amp;ssl=1 1536w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-id-2.png?w=1755&amp;ssl=1 1755w\" sizes=\"(max-width: 645px) 100vw, 645px\" data-recalc-dims=\"1\" \/><\/li>\n<\/ul>\n[\/vc_column_text][vc_column_text css=&#8221;.vc_custom_1713262163301{padding-bottom: 20px !important;}&#8221;]\n<h3><b>2. from_date<\/b><\/h3>\n<p>This parameter helps users set a particular date they want to retrieve data from. The date can be set in YYYY-MM-DD format.<br \/>\n<code>https:\/\/newsdata.io\/api\/1\/archive?apikey=pub_YOUR_API_KEY&amp;q=War&amp;from_date=2023-02-02<\/code><\/p>\n<p>This query will fetch articles containing the keyword \u2018war\u2019 from February 2, 2023, to the present date.[\/vc_column_text][image_with_animation image_url=&#8221;3728&#8243; image_size=&#8221;full&#8221; animation_type=&#8221;entrance&#8221; animation=&#8221;None&#8221; animation_movement_type=&#8221;transform_y&#8221; hover_animation=&#8221;none&#8221; alignment=&#8221;&#8221; border_radius=&#8221;none&#8221; box_shadow=&#8221;none&#8221; image_loading=&#8221;default&#8221; max_width=&#8221;100%&#8221; max_width_mobile=&#8221;default&#8221;][vc_column_text css=&#8221;.vc_custom_1713262395755{padding-bottom: 20px !important;}&#8221;]\n<h3><b>3. to_date<\/b><\/h3>\n<p>This parameter helps the users set the end date of the query in YYYY-MM-DD format.<br \/>\n<code>https:\/\/newsdata.io\/api\/1\/archive?apikey=pub_YOUR_API_KEY&amp;q=War&amp;to_date=2023-05-02<\/code><br \/>\n[\/vc_column_text][vc_column_text css=&#8221;.vc_custom_1713263173112{padding-bottom: 20px !important;}&#8221;]For better understanding, below is an example.<\/p>\n<ul>\n<li>For Instance, you want to fetch articles related to the FIFA World Cup event, so the request parameter would be \u2018<strong>q=FIFA_World_Cup<\/strong>\u2019<br \/>\n<code>https:\/\/newsdata.io\/api\/1\/archive?apikey=pub_YOUR_API_KEY&amp;q=FIFA_World_Cup<\/code><\/li>\n<li>Now you need to add the timeline you want the news of the World Cup from. Let\u2019s fix the start date as November 20, 2022, and the end date as December 18, 2022. So your query would be<br \/>\n<code>https:\/\/newsdata.io\/api\/1\/archive?apikey=pub_YOUR_API_KEY&amp;q=\u201dFIFA_World_Cup\u201d&amp;from_Date=2022-11-20&amp;to_date=2022-12-18.<\/code><br \/>\nThis query would extract all the articles which contain the phrase \u201cFIFA World Cup,\u201d which dates from November 20, 2022, to December 18, 2022<\/li>\n<\/ul>\n[\/vc_column_text][image_with_animation image_url=&#8221;3729&#8243; image_size=&#8221;full&#8221; animation_type=&#8221;entrance&#8221; animation=&#8221;None&#8221; animation_movement_type=&#8221;transform_y&#8221; hover_animation=&#8221;none&#8221; alignment=&#8221;&#8221; border_radius=&#8221;none&#8221; box_shadow=&#8221;none&#8221; image_loading=&#8221;default&#8221; max_width=&#8221;100%&#8221; max_width_mobile=&#8221;default&#8221;][vc_column_text css=&#8221;.vc_custom_1713263714558{padding-bottom: 20px !important;}&#8221;]\n<h3><b>4. <a href=\"https:\/\/newsdata.io\/blog\/how-do-q-qintitle-qinmeta-works\/\">q<\/a><\/b><\/h3>\n<p>Search news articles of specific keywords present anywhere throughout the entire article.<br \/>\nFor example, q=messi will show all the relevant articles that contain the keyword Messi.<br \/>\n<code>https:\/\/newsdata.io\/api\/1\/archive?apikey=pub_YOUR_API_KEY&amp;q=ronaldo<\/code><br \/>\nThis will fetch all the relevant articles that contain the keyword Ronaldo, even if it\u2019s between the content or title.[\/vc_column_text][image_with_animation image_url=&#8221;3731&#8243; image_size=&#8221;full&#8221; animation_type=&#8221;entrance&#8221; animation=&#8221;None&#8221; animation_movement_type=&#8221;transform_y&#8221; hover_animation=&#8221;none&#8221; alignment=&#8221;&#8221; border_radius=&#8221;none&#8221; box_shadow=&#8221;none&#8221; image_loading=&#8221;default&#8221; max_width=&#8221;100%&#8221; max_width_mobile=&#8221;default&#8221;][vc_column_text css=&#8221;.vc_custom_1713263498422{padding-bottom: 20px !important;}&#8221;]You can further add a query of your choice and fetch the articles as shown in above example.[\/vc_column_text][vc_column_text css=&#8221;.vc_custom_1713263704186{padding-bottom: 20px !important;}&#8221;]\n<h3><b>5. <a href=\"https:\/\/newsdata.io\/blog\/how-do-q-qintitle-qinmeta-works\/\">qInTitle<\/a><\/b><\/h3>\n<p>This parameter will help users search news articles for specific keywords or phrases present in the news titles only. For example, qInTitle=messi will show all the relevant articles that contain messi in the news title.<br \/>\n<code>https:\/\/newsdata.io\/api\/1\/archive?apikey=pub_YOUR_API_KEY&amp;qInTitle=messi<\/code><br \/>\nThis request will fetch all the related articles which contain the keyword \u201cMessi\u201d in the article\u2019s title.[\/vc_column_text][image_with_animation image_url=&#8221;3732&#8243; image_size=&#8221;full&#8221; animation_type=&#8221;entrance&#8221; animation=&#8221;None&#8221; animation_movement_type=&#8221;transform_y&#8221; hover_animation=&#8221;none&#8221; alignment=&#8221;&#8221; border_radius=&#8221;none&#8221; box_shadow=&#8221;none&#8221; image_loading=&#8221;default&#8221; max_width=&#8221;100%&#8221; max_width_mobile=&#8221;default&#8221;][vc_column_text css=&#8221;.vc_custom_1713263693688{padding-bottom: 20px !important;}&#8221;]\n<h3><b>6. <a href=\"https:\/\/newsdata.io\/blog\/how-do-q-qintitle-qinmeta-works\/\">qInMeta<\/a><\/b><\/h3>\n<p>Search the news articles from the URL, Meta description, and Title by using this parameter.<br \/>\n<code>https:\/\/newsdata.io\/api\/1\/archive?apikey=pub_YOUR_API_KEY&amp;qInMeta=global warming<\/code>[\/vc_column_text][image_with_animation image_url=&#8221;3733&#8243; image_size=&#8221;full&#8221; animation_type=&#8221;entrance&#8221; animation=&#8221;None&#8221; animation_movement_type=&#8221;transform_y&#8221; hover_animation=&#8221;none&#8221; alignment=&#8221;&#8221; border_radius=&#8221;none&#8221; box_shadow=&#8221;none&#8221; image_loading=&#8221;default&#8221; max_width=&#8221;100%&#8221; max_width_mobile=&#8221;default&#8221;][vc_column_text css=&#8221;.vc_custom_1713264617313{padding-bottom: 20px !important;}&#8221;]\n<h3><b>7. Country<\/b><\/h3>\n<p>Search the news articles from a specific country. You can add up to 5 countries in a single query. Check the codes for all the countries <a href=\"https:\/\/newsdata.io\/documentation\/#news-archive\">here<\/a>. For example, <strong>country=au, jp<\/strong>, where <strong>au<\/strong> means <strong>Australia<\/strong> and <strong>jp<\/strong> means <strong>Japan<\/strong>.<\/p>\n<p>For better understanding, below are some examples.<\/p>\n<ul>\n<li>If you set the \u2018country=in\u2019, it will fetch articles from India related to your query.<br \/>\n<code>https:\/\/newsdata.io\/api\/1\/archive?apikey=pub_YOUR_API_KEY&amp;q=festivals&amp;country=in<\/code><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3734\" src=\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-country-1.webp?resize=631%2C265&#038;ssl=1\" alt=\"\" width=\"631\" height=\"265\" srcset=\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-country-1.webp?resize=300%2C126&amp;ssl=1 300w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-country-1.webp?resize=1024%2C429&amp;ssl=1 1024w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-country-1.webp?resize=768%2C322&amp;ssl=1 768w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-country-1.webp?w=1383&amp;ssl=1 1383w\" sizes=\"(max-width: 631px) 100vw, 631px\" data-recalc-dims=\"1\" \/><\/li>\n<li>If you set the \u2018country=au,jp\u2019, it will fetch articles from Australia and Japan.<br \/>\n<code>https:\/\/newsdata.io\/api\/1\/archive?apikey=pub_YOUR_API_KEY&amp;q=football&amp;country=au,jp<\/code><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3735\" src=\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-country-2.png?resize=633%2C247&#038;ssl=1\" alt=\"\" width=\"633\" height=\"247\" srcset=\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-country-2.png?resize=300%2C117&amp;ssl=1 300w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-country-2.png?resize=1024%2C398&amp;ssl=1 1024w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-country-2.png?resize=768%2C299&amp;ssl=1 768w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-country-2.png?w=1380&amp;ssl=1 1380w\" sizes=\"(max-width: 633px) 100vw, 633px\" data-recalc-dims=\"1\" \/><\/li>\n<\/ul>\n[\/vc_column_text][vc_column_text css=&#8221;.vc_custom_1713264787890{padding-bottom: 20px !important;}&#8221;]\n<h3><b>8. Category<\/b><\/h3>\n<p>Search the news articles for a specific category. You can add up to 5 categories in a single query. Check the codes for all the categories <a href=\"https:\/\/newsdata.io\/documentation\/#news-archive\">here<\/a>. There are a total of 12 categories options available for users to choose from.<br \/>\nFor example, <strong>category=politics<\/strong><br \/>\n<code>https:\/\/newsdata.io\/api\/1\/archive?apikey=pub_YOUR_API_KEY&amp;q=trump&amp;category=politics<\/code><br \/>\nThis request will fetch the related articles that contain the keyword Trump and are related to the politics category.[\/vc_column_text][image_with_animation image_url=&#8221;3736&#8243; image_size=&#8221;full&#8221; animation_type=&#8221;entrance&#8221; animation=&#8221;None&#8221; animation_movement_type=&#8221;transform_y&#8221; hover_animation=&#8221;none&#8221; alignment=&#8221;&#8221; border_radius=&#8221;none&#8221; box_shadow=&#8221;none&#8221; image_loading=&#8221;default&#8221; max_width=&#8221;100%&#8221; max_width_mobile=&#8221;default&#8221;][vc_column_text css=&#8221;.vc_custom_1713264961038{padding-bottom: 20px !important;}&#8221;]\n<h3><b>9. excludecategory<\/b><\/h3>\n<p>Exclude Categories to search for news articles.<br \/>\nFor example, \u2018<strong>excludecategory=politics<\/strong>\u2019, this request will fetch all news articles from all other categories except politics.<br \/>\nThe given request will fetch all the news articles containing the keyword \u2018Modi\u2019 from all the categories except politics.<br \/>\n<code>https:\/\/newsdata.io\/api\/1\/archive?apikey=YOUR_API_KEY&amp;q=modi&amp;excludecategory=politics<\/code>[\/vc_column_text][image_with_animation image_url=&#8221;3737&#8243; image_size=&#8221;full&#8221; animation_type=&#8221;entrance&#8221; animation=&#8221;None&#8221; animation_movement_type=&#8221;transform_y&#8221; hover_animation=&#8221;none&#8221; alignment=&#8221;&#8221; border_radius=&#8221;none&#8221; box_shadow=&#8221;none&#8221; image_loading=&#8221;default&#8221; max_width=&#8221;100%&#8221; max_width_mobile=&#8221;default&#8221;][vc_column_text css=&#8221;.vc_custom_1713265053505{padding-bottom: 20px !important;}&#8221;]<b>NOTE: <\/b>You can exclude up to 5 categories in a single query.<\/p>\n<p><b>NOTE: <\/b>You can either include the \u2018category\u2019 or \u2018excludecategory\u2019 parameter in your query. You can\u2019t use both parameters simultaneously.[\/vc_column_text][vc_column_text css=&#8221;.vc_custom_1713265417528{padding-bottom: 20px !important;}&#8221;]\n<h3><b>10. language<\/b><\/h3>\n<p>Search the news articles for a specific language. You can add up to 5 languages in a single query. Check the codes for all the languages here. For example, <strong>language=fr,en<\/strong> where <strong>fr<\/strong> means <strong>French<\/strong> and <strong>en<\/strong> means <strong>English<\/strong>.<\/p>\n<p>For better understanding, below are some examples.<\/p>\n<ul>\n<li>If you set \u2018language=en\u2019, it will fetch only those articles which are in English.<br \/>\n<code>https:\/\/newsdata.io\/api\/1\/archive?apikey=pub_YOUR_API_KEY&amp;q=football&amp;language=en<\/code><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3738\" src=\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-lan-1.webp?resize=617%2C261&#038;ssl=1\" alt=\"\" width=\"617\" height=\"261\" srcset=\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-lan-1.webp?resize=300%2C127&amp;ssl=1 300w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-lan-1.webp?resize=1024%2C434&amp;ssl=1 1024w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-lan-1.webp?resize=768%2C325&amp;ssl=1 768w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-lan-1.webp?w=1383&amp;ssl=1 1383w\" sizes=\"(max-width: 617px) 100vw, 617px\" data-recalc-dims=\"1\" \/><\/li>\n<li>If you set \u2018<strong>language=en,fr<\/strong>\u2019, it will fetch only those articles which are in <strong>English<\/strong> and <strong>French<\/strong>.<br \/>\n<code>https:\/\/newsdata.io\/api\/1\/archive?apikey=pub_YOUR_API_KEY&amp;q=football&amp;language=en,fr<\/code><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3739\" src=\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-lan-2.png?resize=644%2C249&#038;ssl=1\" alt=\"\" width=\"644\" height=\"249\" srcset=\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-lan-2.png?resize=300%2C116&amp;ssl=1 300w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-lan-2.png?resize=1024%2C395&amp;ssl=1 1024w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-lan-2.png?resize=768%2C296&amp;ssl=1 768w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-lan-2.png?w=1386&amp;ssl=1 1386w\" sizes=\"(max-width: 644px) 100vw, 644px\" data-recalc-dims=\"1\" \/><\/li>\n<\/ul>\n[\/vc_column_text][vc_column_text css=&#8221;.vc_custom_1713265436828{padding-bottom: 20px !important;}&#8221;]<b>NOTE: <\/b>NewsData.io provides 77 different languages. To fetch articles in different languages, you can check out the <a href=\"https:\/\/newsdata.io\/documentation\/#news-archive\">documentation<\/a>.[\/vc_column_text][vc_column_text css=&#8221;.vc_custom_1713265510489{padding-bottom: 20px !important;}&#8221;]\n<h3><b>11. domain<\/b><\/h3>\n<p>You can search the news articles of specific news domains, such as BBC or the New York Times. You can add up to 5 domains in a single query. The request parameter would be \u2018domain=bbc\u2019.<br \/>\n<code>https:\/\/newsdata.io\/api\/1\/archive?apikey=pub_YOUR_API_KEY&amp;q=football&amp;domain=bbc<\/code><br \/>\nThis query would fetch the articles that contain the keyword football, which is from the bbc domain only.<br \/>\n[\/vc_column_text][image_with_animation image_url=&#8221;3740&#8243; image_size=&#8221;full&#8221; animation_type=&#8221;entrance&#8221; animation=&#8221;None&#8221; animation_movement_type=&#8221;transform_y&#8221; hover_animation=&#8221;none&#8221; alignment=&#8221;&#8221; border_radius=&#8221;none&#8221; box_shadow=&#8221;none&#8221; image_loading=&#8221;default&#8221; max_width=&#8221;100%&#8221; max_width_mobile=&#8221;default&#8221;][vc_column_text css=&#8221;.vc_custom_1713265551401{padding-bottom: 20px !important;}&#8221;]<b>NOTE: <\/b>This parameter is currently being merged with the domainurl parameter.[\/vc_column_text][vc_column_text css=&#8221;.vc_custom_1713265659386{padding-bottom: 20px !important;}&#8221;]\n<h3><b>12. domainurl<\/b><\/h3>\n<p>This parameter will allow users to extract articles from news domains. You can add up to 5 domain URLs in a single query. If any domain URL is incorrect, you will be suggested the correct domainurl.<br \/>\nThe request parameter would be \u2018<strong>domainurl=bbc.com<\/strong>\u2019.<\/p>\n<p>For better understanding, below is an example.<\/p>\n<ul>\n<li>If you set \u2018domainurl=bbc.com\u2019, it will fetch all relevant articles from the BBC domain.<br \/>\n<code>https:\/\/newsdata.io\/api\/1\/archive?apikey=pub_YOUR_API_KEY&amp;q=football&amp;domainurl=bbc.com<\/code><\/li>\n<\/ul>\n[\/vc_column_text][image_with_animation image_url=&#8221;3742&#8243; image_size=&#8221;full&#8221; animation_type=&#8221;entrance&#8221; animation=&#8221;None&#8221; animation_movement_type=&#8221;transform_y&#8221; hover_animation=&#8221;none&#8221; alignment=&#8221;&#8221; border_radius=&#8221;none&#8221; box_shadow=&#8221;none&#8221; image_loading=&#8221;default&#8221; max_width=&#8221;100%&#8221; max_width_mobile=&#8221;default&#8221;][vc_column_text css=&#8221;.vc_custom_1713270636574{padding-bottom: 20px !important;}&#8221;]<b>NOTE:\u00a0<\/b>If you enter the wrong domainurl, the system will show error and will suggest you the correct domainurl(s). You can then choose from the correct domainurl(s) and continue data fetching.[\/vc_column_text][vc_column_text css=&#8221;.vc_custom_1713266112369{padding-bottom: 20px !important;}&#8221;]\n<h3><b>13. excludedomain<\/b><\/h3>\n<p>You can exclude the domains you don&#8217;t want articles from using this parameter. The request parameter would be \u2018excludedomain=bbc.com\u2019.<\/p>\n<p>For better understanding, below are some examples.<\/p>\n<ul>\n<li>If you set \u2018excludedomain=bbc.com\u2019, it will fetch you all articles except from BBC domain.<br \/>\n<code>https:\/\/newsdata.io\/api\/1\/archive?apikey=pub_YOUR_API_KEY&amp;q=football&amp;excludedomain=bbc.com<\/code><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3743\" src=\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-excludedom-1.webp?resize=645%2C275&#038;ssl=1\" alt=\"\" width=\"645\" height=\"275\" srcset=\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-excludedom-1.webp?resize=300%2C128&amp;ssl=1 300w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-excludedom-1.webp?resize=1024%2C438&amp;ssl=1 1024w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-excludedom-1.webp?resize=768%2C328&amp;ssl=1 768w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-excludedom-1.webp?w=1375&amp;ssl=1 1375w\" sizes=\"(max-width: 645px) 100vw, 645px\" data-recalc-dims=\"1\" \/><\/li>\n<li>If you set \u2018excludedomian=nytimes.com,bbc.com\u2019, it will fetch you all articles except from NY Times and BBC domain.<br \/>\n<code>https:\/\/newsdata.io\/api\/1\/archive?apikey=pub_YOUR_API_KEY&amp;q=football&amp;excludedomain=nytimes.com,bbc.com<\/code><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3744\" src=\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-excludedom-2.png?resize=645%2C260&#038;ssl=1\" alt=\"\" width=\"645\" height=\"260\" srcset=\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-excludedom-2.png?resize=300%2C121&amp;ssl=1 300w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-excludedom-2.png?resize=1024%2C413&amp;ssl=1 1024w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-excludedom-2.png?resize=768%2C309&amp;ssl=1 768w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-excludedom-2.png?w=1380&amp;ssl=1 1380w\" sizes=\"(max-width: 645px) 100vw, 645px\" data-recalc-dims=\"1\" \/><\/li>\n<\/ul>\n[\/vc_column_text][vc_column_text css=&#8221;.vc_custom_1713266446434{padding-bottom: 20px !important;}&#8221;]\n<h3><b>14. prioritydomain<\/b><\/h3>\n<p>Domain priority allows the users to extract news articles on the basis of the domain authority of news sources.<\/p>\n<p>The priority is set on 3 different levels which are top, middle, and low.<\/p>\n<ul>\n<li style=\"list-style-type: none\">\n<ul>\n<li><b>Top:<\/b> Fetches news articles from the top 10% of the news domains. The request parameter would be \u2018<strong>prioritydomain=top<\/strong>\u2019.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><code>https:\/\/newsdata.io\/api\/1\/archive?apikey=pub_YOUR_API_KEY&amp;q=global_warming&amp;prioritydomain=top<\/code><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3745\" src=\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-dompriority-1.webp?resize=697%2C302&#038;ssl=1\" alt=\"\" width=\"697\" height=\"302\" srcset=\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-dompriority-1.webp?resize=300%2C130&amp;ssl=1 300w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-dompriority-1.webp?resize=1024%2C443&amp;ssl=1 1024w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-dompriority-1.webp?resize=768%2C332&amp;ssl=1 768w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-dompriority-1.webp?w=1376&amp;ssl=1 1376w\" sizes=\"(max-width: 697px) 100vw, 697px\" data-recalc-dims=\"1\" \/><\/p>\n<ul>\n<li style=\"list-style-type: none\">\n<ul>\n<li><b>Medium:<\/b> Fetches news articles from the top 30% of the news domains. The request parameter would be \u2018<strong>prioritydomain=medium<\/strong>\u2019.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><code>https:\/\/newsdata.io\/api\/1\/archive?apikey=pub_YOUR_API_KEY&amp;q=global_warming&amp;prioritydomain=medium<\/code><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3746\" src=\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-dompriority2.webp?resize=678%2C287&#038;ssl=1\" alt=\"\" width=\"678\" height=\"287\" srcset=\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-dompriority2.webp?resize=300%2C127&amp;ssl=1 300w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-dompriority2.webp?resize=1024%2C435&amp;ssl=1 1024w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-dompriority2.webp?resize=768%2C326&amp;ssl=1 768w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-dompriority2.webp?w=1381&amp;ssl=1 1381w\" sizes=\"(max-width: 678px) 100vw, 678px\" data-recalc-dims=\"1\" \/><\/p>\n<ul>\n<li style=\"list-style-type: none\">\n<ul>\n<li><b>Low:<\/b> Fetches news articles from the top 50% of the news domains. The request parameter would be \u2018<strong>prioritydomain=low<\/strong>\u2019.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><code>https:\/\/newsdata.io\/api\/1\/archive?apikey=pub_YOUR_API_KEY&amp;q=global_warming&amp;prioritydomain=low<\/code><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3747\" src=\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-dompriority-3.webp?resize=688%2C296&#038;ssl=1\" alt=\"\" width=\"688\" height=\"296\" srcset=\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-dompriority-3.webp?resize=300%2C129&amp;ssl=1 300w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-dompriority-3.webp?resize=1024%2C442&amp;ssl=1 1024w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-dompriority-3.webp?resize=768%2C331&amp;ssl=1 768w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-dompriority-3.webp?w=1377&amp;ssl=1 1377w\" sizes=\"(max-width: 688px) 100vw, 688px\" data-recalc-dims=\"1\" \/>[\/vc_column_text][vc_column_text css=&#8221;.vc_custom_1713266545694{padding-bottom: 20px !important;}&#8221;]\n<h3><b>15. Timezone<\/b><\/h3>\n<p>You can search the articles on the basis of specific time zones. You can add any specific time zone by checking the time zone here.<br \/>\nThe request parameter for the time zone would be \u2018<strong>timezone=Asia\/Dubai<\/strong>\u2019.<br \/>\n<code>https:\/\/newsdata.io\/api\/1\/archive?apikey=pub_YOUR_API_KEY&amp;q=movies&amp;timezone=Asia\/Dubai<\/code>[\/vc_column_text][image_with_animation image_url=&#8221;3748&#8243; image_size=&#8221;full&#8221; animation_type=&#8221;entrance&#8221; animation=&#8221;None&#8221; animation_movement_type=&#8221;transform_y&#8221; hover_animation=&#8221;none&#8221; alignment=&#8221;&#8221; border_radius=&#8221;none&#8221; box_shadow=&#8221;none&#8221; image_loading=&#8221;default&#8221; max_width=&#8221;100%&#8221; max_width_mobile=&#8221;default&#8221;][vc_column_text css=&#8221;.vc_custom_1713267232177{padding-bottom: 20px !important;}&#8221;]\n<h3><b>16. Full Content<\/b><\/h3>\n<p>With this request parameter, users can request a full-content article or without a full-content article. The request parameter for this would be \u2018full_content=1\u2019 for full content and \u2018full_content=0\u2019 for content that doesn\u2019t contain full-width content.<\/p>\n<ul>\n<li style=\"list-style-type: none\">\n<ul>\n<li>For Full Content<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><code>https:\/\/newsdata.io\/api\/1\/archive?apikey=pub_YOUR_API_KEY&amp;q=movies&amp;full_content=1<\/code><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3749\" src=\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-fullcontent-1.webp?resize=694%2C296&#038;ssl=1\" alt=\"\" width=\"694\" height=\"296\" srcset=\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-fullcontent-1.webp?resize=300%2C128&amp;ssl=1 300w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-fullcontent-1.webp?resize=1024%2C437&amp;ssl=1 1024w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-fullcontent-1.webp?resize=768%2C328&amp;ssl=1 768w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-fullcontent-1.webp?w=1374&amp;ssl=1 1374w\" sizes=\"(max-width: 694px) 100vw, 694px\" data-recalc-dims=\"1\" \/><\/p>\n<ul>\n<li style=\"list-style-type: none\">\n<ul>\n<li>Without full content<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><code>https:\/\/newsdata.io\/api\/1\/archive?apikey=pub_YOUR_API_KEY&amp;q=movies&amp;full_content=0<\/code><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3750\" src=\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-fullcontent2.webp?resize=694%2C294&#038;ssl=1\" alt=\"\" width=\"694\" height=\"294\" srcset=\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-fullcontent2.webp?resize=300%2C127&amp;ssl=1 300w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-fullcontent2.webp?resize=1024%2C434&amp;ssl=1 1024w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-fullcontent2.webp?resize=768%2C325&amp;ssl=1 768w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-fullcontent2.webp?w=1378&amp;ssl=1 1378w\" sizes=\"(max-width: 694px) 100vw, 694px\" data-recalc-dims=\"1\" \/>[\/vc_column_text][vc_column_text css=&#8221;.vc_custom_1713267431716{padding-bottom: 20px !important;}&#8221;]\n<h3><b>17. Image<\/b><\/h3>\n<p>This parameter will allow you to search the articles with or without featured images. The request parameter would be \u2018<strong>image=1<\/strong>\u2019 for articles with images and \u2018<strong>image=0<\/strong>\u2019 for articles without featured images.<\/p>\n<ul>\n<li style=\"list-style-type: none\">\n<ul>\n<li>For articles with featured images<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><code>https:\/\/newsdata.io\/api\/1\/archive?apikey=pub_YOUR_API_KEY&amp;q=messi&amp;image=1<\/code><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3751\" src=\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-image1.webp?resize=684%2C292&#038;ssl=1\" alt=\"\" width=\"684\" height=\"292\" srcset=\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-image1.webp?resize=300%2C128&amp;ssl=1 300w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-image1.webp?resize=1024%2C436&amp;ssl=1 1024w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-image1.webp?resize=768%2C327&amp;ssl=1 768w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-image1.webp?w=1375&amp;ssl=1 1375w\" sizes=\"(max-width: 684px) 100vw, 684px\" data-recalc-dims=\"1\" \/><\/p>\n<ul>\n<li style=\"list-style-type: none\">\n<ul>\n<li>For articles without featured images<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><code>https:\/\/newsdata.io\/api\/1\/archive?apikey=pub_YOUR_API_KEY&amp;q=messi&amp;image=0<\/code><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3752\" src=\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-image2.webp?resize=691%2C295&#038;ssl=1\" alt=\"\" width=\"691\" height=\"295\" srcset=\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-image2.webp?resize=300%2C128&amp;ssl=1 300w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-image2.webp?resize=1024%2C437&amp;ssl=1 1024w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-image2.webp?resize=768%2C328&amp;ssl=1 768w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-image2.webp?w=1389&amp;ssl=1 1389w\" sizes=\"(max-width: 691px) 100vw, 691px\" data-recalc-dims=\"1\" \/>[\/vc_column_text][vc_column_text css=&#8221;.vc_custom_1713267649570{padding-bottom: 20px !important;}&#8221;]\n<h3><b>18. Video<\/b><\/h3>\n<p>This parameter would help users retrieve articles containing videos. The request parameter would be \u2018<strong>video=1<\/strong>\u2019 and for those articles without video, the request parameter would be \u2018<strong>video=0<\/strong>\u2019.<\/p>\n<ul>\n<li style=\"list-style-type: none\">\n<ul>\n<li>For articles with video<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><code>https:\/\/newsdata.io\/api\/1\/archive?apikey=pub_YOUR_API_KEY&amp;q=football&amp;video=1<\/code><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3753\" src=\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-video1.png?resize=686%2C263&#038;ssl=1\" alt=\"\" width=\"686\" height=\"263\" srcset=\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-video1.png?resize=300%2C115&amp;ssl=1 300w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-video1.png?resize=1024%2C393&amp;ssl=1 1024w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-video1.png?resize=768%2C294&amp;ssl=1 768w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-video1.png?w=1380&amp;ssl=1 1380w\" sizes=\"(max-width: 686px) 100vw, 686px\" data-recalc-dims=\"1\" \/><\/p>\n<ul>\n<li style=\"list-style-type: none\">\n<ul>\n<li>For articles without video<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><code>https:\/\/newsdata.io\/api\/1\/archive?apikey=pub_YOUR_API_KEY&amp;q=football&amp;video=0<\/code><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3754\" src=\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-video0.png?resize=688%2C259&#038;ssl=1\" alt=\"\" width=\"688\" height=\"259\" srcset=\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-video0.png?resize=300%2C113&amp;ssl=1 300w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-video0.png?resize=1024%2C385&amp;ssl=1 1024w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-video0.png?resize=768%2C289&amp;ssl=1 768w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/archive-video0.png?w=1385&amp;ssl=1 1385w\" sizes=\"(max-width: 688px) 100vw, 688px\" data-recalc-dims=\"1\" \/><\/p>\n[\/vc_column_text][vc_column_text css=&#8221;.vc_custom_1713267749777{padding-bottom: 20px !important;}&#8221;]\n<h3><b>19. Size<\/b><\/h3>\n<p>This parameter allows the users to customize the number of articles that they can obtain from per API request.<br \/>\nFor free users, the max limit is 10, and for paid users, the limit is up to 50 per request.<br \/>\nThe \u2018<strong>size=30<\/strong>\u2019 request will fetch <strong>30 articles\/requests<\/strong>.<br \/>\n<code>https:\/\/newsdata.io\/api\/1\/archive?apikey=pub_YOUR_API_KEY&amp;q=football&amp;size=30<\/code>[\/vc_column_text][image_with_animation image_url=&#8221;3755&#8243; image_size=&#8221;full&#8221; animation_type=&#8221;entrance&#8221; animation=&#8221;None&#8221; animation_movement_type=&#8221;transform_y&#8221; hover_animation=&#8221;none&#8221; alignment=&#8221;&#8221; border_radius=&#8221;none&#8221; box_shadow=&#8221;none&#8221; image_loading=&#8221;default&#8221; max_width=&#8221;100%&#8221; max_width_mobile=&#8221;default&#8221;][vc_column_text css=&#8221;.vc_custom_1713268140298{padding-bottom: 20px !important;}&#8221;]\n<h3><b>20. page<\/b><\/h3>\n<p>This parameter allows the user to navigate to the next page. While fetching the data you will see a \u2018<strong>nextPage<\/strong>\u2019 string at the bottom of the screen. You can insert this in your query to navigate to the next page manually.<\/p>\n<p>For Example:<br \/>\n<code>https:\/\/newsdata.io\/api\/1\/archive?apikey=YOUR_API_KEY&amp;q=war&amp;page=XXXPPPXXXXXXXXXX<\/code><br \/>\nThis parameter will take you to the nextPage with a set of new articles.<br \/>\nTo learn more about this parameter, click <a href=\"https:\/\/newsdata.io\/documentation\/#pagination\">here<\/a>.[\/vc_column_text][image_with_animation image_url=&#8221;3756&#8243; image_size=&#8221;full&#8221; animation_type=&#8221;entrance&#8221; animation=&#8221;None&#8221; animation_movement_type=&#8221;transform_y&#8221; hover_animation=&#8221;none&#8221; alignment=&#8221;&#8221; border_radius=&#8221;none&#8221; box_shadow=&#8221;none&#8221; image_loading=&#8221;default&#8221; max_width=&#8221;100%&#8221; max_width_mobile=&#8221;default&#8221;][\/vc_column][\/vc_row]\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>Lets understand how news archive parameter works and get historical news data with NewsData.io<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":14,"featured_media":1519,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[46],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>All about News \u201cArchive\u201d Endpoint - NewsData.io<\/title>\n<meta name=\"description\" content=\"This article contains all information that is there to learn about the news &#039;Archive&#039; endpoint of the Newsdata.io.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/newsdata.io\/blog\/all-about-news-archive-endpoint\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"All about News \u201cArchive\u201d Endpoint - NewsData.io\" \/>\n<meta property=\"og:description\" content=\"This article contains all information that is there to learn about the news &#039;Archive&#039; endpoint of the Newsdata.io.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/newsdata.io\/blog\/all-about-news-archive-endpoint\/\" \/>\n<meta property=\"og:site_name\" content=\"Newsdata.io - Stay Updated with the Latest News API Trends\" \/>\n<meta property=\"article:published_time\" content=\"2023-08-28T01:33:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-07-02T05:12:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/use-case-4.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"2240\" \/>\n\t<meta property=\"og:image:height\" content=\"1260\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Prabhleen Kaur\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prabhleen Kaur\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"17 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/newsdata.io\/blog\/all-about-news-archive-endpoint\/\",\"url\":\"https:\/\/newsdata.io\/blog\/all-about-news-archive-endpoint\/\",\"name\":\"All about News \u201cArchive\u201d Endpoint - NewsData.io\",\"isPartOf\":{\"@id\":\"https:\/\/newsdata.io\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/newsdata.io\/blog\/all-about-news-archive-endpoint\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/newsdata.io\/blog\/all-about-news-archive-endpoint\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/use-case-4.jpg?fit=2240%2C1260&ssl=1\",\"datePublished\":\"2023-08-28T01:33:27+00:00\",\"dateModified\":\"2024-07-02T05:12:17+00:00\",\"author\":{\"@id\":\"https:\/\/newsdata.io\/blog\/#\/schema\/person\/24759f2a710e24a49089f8cf2b8e70b3\"},\"description\":\"This article contains all information that is there to learn about the news 'Archive' endpoint of the Newsdata.io.\",\"breadcrumb\":{\"@id\":\"https:\/\/newsdata.io\/blog\/all-about-news-archive-endpoint\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/newsdata.io\/blog\/all-about-news-archive-endpoint\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/newsdata.io\/blog\/all-about-news-archive-endpoint\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/use-case-4.jpg?fit=2240%2C1260&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/use-case-4.jpg?fit=2240%2C1260&ssl=1\",\"width\":2240,\"height\":1260},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/newsdata.io\/blog\/all-about-news-archive-endpoint\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\/\/newsdata.io\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"All about News \u201cArchive\u201d Endpoint\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/newsdata.io\/blog\/#website\",\"url\":\"https:\/\/newsdata.io\/blog\/\",\"name\":\"Newsdata.io - Stay Updated with the Latest News API Trends\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/newsdata.io\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/newsdata.io\/blog\/#\/schema\/person\/24759f2a710e24a49089f8cf2b8e70b3\",\"name\":\"Prabhleen Kaur\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/newsdata.io\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/17fb948d4989270bb762d1379a5e874f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/17fb948d4989270bb762d1379a5e874f?s=96&d=mm&r=g\",\"caption\":\"Prabhleen Kaur\"},\"description\":\"Hello, Curious Minds! Welcome to my corner of the digital world, a space brimming with words and woven with ideas. Fresh out of the rigorous trenches of an Economics honors degree at the esteemed University of Delhi, I know a thing or two about crunching numbers and dissecting trends. But beyond the world of graphs and equations, lies my love for reading and writing. Admittedly, I'm a newbie in the content writing scene, still tasting the ink of fresh beginnings. I believe every corner of life holds a story waiting to be told, and I'm eager to be your storyteller. So, strap yourselves in, dear readers, and let's dive into the captivating world of words together! P.S. Feel free to drop a comment or reach out \u2013 I'm always up for a good conversation!\",\"sameAs\":[\"https:\/\/www.instagram.com\/whatnowprabhleen\/\",\"www.linkedin.com\/in\/prabhleen-kaur-8b8823202\"],\"url\":\"https:\/\/newsdata.io\/blog\/author\/prabhleen\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"All about News \u201cArchive\u201d Endpoint - NewsData.io","description":"This article contains all information that is there to learn about the news 'Archive' endpoint of the Newsdata.io.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/newsdata.io\/blog\/all-about-news-archive-endpoint\/","og_locale":"en_US","og_type":"article","og_title":"All about News \u201cArchive\u201d Endpoint - NewsData.io","og_description":"This article contains all information that is there to learn about the news 'Archive' endpoint of the Newsdata.io.","og_url":"https:\/\/newsdata.io\/blog\/all-about-news-archive-endpoint\/","og_site_name":"Newsdata.io - Stay Updated with the Latest News API Trends","article_published_time":"2023-08-28T01:33:27+00:00","article_modified_time":"2024-07-02T05:12:17+00:00","og_image":[{"width":2240,"height":1260,"url":"https:\/\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/use-case-4.jpg","type":"image\/jpeg"}],"author":"Prabhleen Kaur","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Prabhleen Kaur","Est. reading time":"17 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/newsdata.io\/blog\/all-about-news-archive-endpoint\/","url":"https:\/\/newsdata.io\/blog\/all-about-news-archive-endpoint\/","name":"All about News \u201cArchive\u201d Endpoint - NewsData.io","isPartOf":{"@id":"https:\/\/newsdata.io\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/newsdata.io\/blog\/all-about-news-archive-endpoint\/#primaryimage"},"image":{"@id":"https:\/\/newsdata.io\/blog\/all-about-news-archive-endpoint\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/use-case-4.jpg?fit=2240%2C1260&ssl=1","datePublished":"2023-08-28T01:33:27+00:00","dateModified":"2024-07-02T05:12:17+00:00","author":{"@id":"https:\/\/newsdata.io\/blog\/#\/schema\/person\/24759f2a710e24a49089f8cf2b8e70b3"},"description":"This article contains all information that is there to learn about the news 'Archive' endpoint of the Newsdata.io.","breadcrumb":{"@id":"https:\/\/newsdata.io\/blog\/all-about-news-archive-endpoint\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/newsdata.io\/blog\/all-about-news-archive-endpoint\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/newsdata.io\/blog\/all-about-news-archive-endpoint\/#primaryimage","url":"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/use-case-4.jpg?fit=2240%2C1260&ssl=1","contentUrl":"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/use-case-4.jpg?fit=2240%2C1260&ssl=1","width":2240,"height":1260},{"@type":"BreadcrumbList","@id":"https:\/\/newsdata.io\/blog\/all-about-news-archive-endpoint\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/newsdata.io\/blog\/"},{"@type":"ListItem","position":2,"name":"All about News \u201cArchive\u201d Endpoint"}]},{"@type":"WebSite","@id":"https:\/\/newsdata.io\/blog\/#website","url":"https:\/\/newsdata.io\/blog\/","name":"Newsdata.io - Stay Updated with the Latest News API Trends","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/newsdata.io\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/newsdata.io\/blog\/#\/schema\/person\/24759f2a710e24a49089f8cf2b8e70b3","name":"Prabhleen Kaur","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/newsdata.io\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/17fb948d4989270bb762d1379a5e874f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/17fb948d4989270bb762d1379a5e874f?s=96&d=mm&r=g","caption":"Prabhleen Kaur"},"description":"Hello, Curious Minds! Welcome to my corner of the digital world, a space brimming with words and woven with ideas. Fresh out of the rigorous trenches of an Economics honors degree at the esteemed University of Delhi, I know a thing or two about crunching numbers and dissecting trends. But beyond the world of graphs and equations, lies my love for reading and writing. Admittedly, I'm a newbie in the content writing scene, still tasting the ink of fresh beginnings. I believe every corner of life holds a story waiting to be told, and I'm eager to be your storyteller. So, strap yourselves in, dear readers, and let's dive into the captivating world of words together! P.S. Feel free to drop a comment or reach out \u2013 I'm always up for a good conversation!","sameAs":["https:\/\/www.instagram.com\/whatnowprabhleen\/","www.linkedin.com\/in\/prabhleen-kaur-8b8823202"],"url":"https:\/\/newsdata.io\/blog\/author\/prabhleen\/"}]}},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/use-case-4.jpg?fit=2240%2C1260&ssl=1","category":["Documentation"],"featured_image_url":"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/use-case-4.jpg?fit=2240%2C1260&ssl=1","_links":{"self":[{"href":"https:\/\/newsdata.io\/blog\/wp-json\/wp\/v2\/posts\/1518"}],"collection":[{"href":"https:\/\/newsdata.io\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/newsdata.io\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/newsdata.io\/blog\/wp-json\/wp\/v2\/users\/14"}],"replies":[{"embeddable":true,"href":"https:\/\/newsdata.io\/blog\/wp-json\/wp\/v2\/comments?post=1518"}],"version-history":[{"count":6,"href":"https:\/\/newsdata.io\/blog\/wp-json\/wp\/v2\/posts\/1518\/revisions"}],"predecessor-version":[{"id":7945,"href":"https:\/\/newsdata.io\/blog\/wp-json\/wp\/v2\/posts\/1518\/revisions\/7945"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/newsdata.io\/blog\/wp-json\/wp\/v2\/media\/1519"}],"wp:attachment":[{"href":"https:\/\/newsdata.io\/blog\/wp-json\/wp\/v2\/media?parent=1518"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/newsdata.io\/blog\/wp-json\/wp\/v2\/categories?post=1518"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/newsdata.io\/blog\/wp-json\/wp\/v2\/tags?post=1518"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}