{"id":1591,"date":"2023-08-29T06:09:51","date_gmt":"2023-08-29T00:39:51","guid":{"rendered":"https:\/\/newsdata.io\/blog\/?p=1591"},"modified":"2026-02-09T10:12:39","modified_gmt":"2026-02-09T04:42:39","slug":"how-to-make-your-first-request-with-newsdata-io","status":"publish","type":"post","link":"https:\/\/newsdata.io\/blog\/how-to-make-your-first-request-with-newsdata-io\/","title":{"rendered":"How to Make Your First API Request With NewsData.io"},"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;1783&#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;10px&#8221; box_shadow=&#8221;small_depth&#8221; image_loading=&#8221;default&#8221; max_width=&#8221;100%&#8221; max_width_mobile=&#8221;default&#8221;][vc_column_text css=&#8221;.vc_custom_1726551306461{padding-bottom: 20px !important;}&#8221;]In this article, we\u2019ll walk you through the process of making your first API request.[\/vc_column_text][vc_column_text css=&#8221;.vc_custom_1713347729445{padding-bottom: 20px !important;}&#8221;]\n<h2><b>Initial Steps<\/b><\/h2>\n[\/vc_column_text][vc_column_text css=&#8221;.vc_custom_1726552405757{padding-bottom: 20px !important;}&#8221;]The data retrieval process begins with below mentioned steps:<\/p>\n<h3><b>1. Account Creation<\/b><\/h3>\n<p>Sign up for an account on NewsData.io to obtain your unique API key.<\/p>\n<h3><b>2. Choosing the Endpoint<\/b><\/h3>\n<p>A variety of endpoints are provided, each catering to specific types of news data.<\/p>\n<p>For instance, the \u201c<a href=\"https:\/\/newsdata.io\/documentation\/#latest-news\"><strong>latest<\/strong><\/a>\u201d endpoint retrieves the <strong>latest news articles<\/strong> across various sources.<\/p>\n<h3><b>3. Constructing the API Request URL<\/b><\/h3>\n<p>To construct the API request URL combine the base URL with the chosen endpoint. This forms the foundation of your API call.<\/p>\n<p><code> https:\/\/newsdata.io\/api\/1\/latest?apikey=Your_API_KEY&amp;q=YOUR_QUERY<\/code><\/p>\n<h3><b>4. Adding Query Parameters<\/b><\/h3>\n<p>Query parameters are the building blocks of an effective API request. They help narrow down your search to specific criteria, making your results more relevant.<\/p>\n<p>For instance, In the \u201c<strong>latest<\/strong>\u201d endpoint, you can use parameters like \u201ccountry,\u201d \u201ccategory,\u201d or \u201c<a href=\"https:\/\/newsdata.io\/blog\/how-do-q-qintitle-qinmeta-works\/\">q<\/a>\u201d (keywords) to tailor your results.<\/p>\n<h3><b>5. Including API Key<\/b><\/h3>\n<p>Insert your API key to the URL as a parameter, ensuring NewsData.io recognizes your request as authorized.<\/p>\n<h3><b>6. Making the API Request<\/b><\/h3>\n<p>You can use tools like cURL, Python, or API client software to send your request. Once dispatched, you await the response.[\/vc_column_text][divider line_type=&#8221;Full Width Line&#8221; line_thickness=&#8221;1&#8243; divider_color=&#8221;extra-color-3&#8243;][vc_column_text css=&#8221;.vc_custom_1726555773542{padding-bottom: 20px !important;}&#8221;]\n<h2><b>First API Request With Postman<\/b><\/h2>\n[\/vc_column_text][vc_column_text css=&#8221;.vc_custom_1726552500779{padding-bottom: 20px !important;}&#8221;]Let\u2019s understand how users can make the first request with Postman.<\/p>\n<p>Given below is the base parameter that users have to enter:<\/p>\n<p><code>https:\/\/newsdata.io\/api\/1\/latest?apikey=YOUR_API_KEY<\/code><\/p>\n<p>You can further add more parameters and advance search options provided like <a href=\"https:\/\/newsdata.io\/blog\/how-do-q-qintitle-qinmeta-works\/\">q, qInTitle, qInMeta<\/a>, etc.[\/vc_column_text][vc_column_text css=&#8221;.vc_custom_1726552507312{padding-bottom: 20px !important;}&#8221;]To help you understand better, here is an example with the query of football.<\/p>\n<p>The news article retrieval request would be;<\/p>\n<p><code>https:\/\/newsdata.io\/api\/1\/latest?apikey=YOUR_API_KEY&amp;q=football<\/code>[\/vc_column_text][image_with_animation image_url=&#8221;4847&#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;10px&#8221; box_shadow=&#8221;small_depth&#8221; image_loading=&#8221;default&#8221; max_width=&#8221;100%&#8221; max_width_mobile=&#8221;default&#8221;][vc_column_text css=&#8221;.vc_custom_1713349256484{padding-bottom: 20px !important;}&#8221;]This query will fetch all the relevant articles on football.[\/vc_column_text][divider line_type=&#8221;Full Width Line&#8221; line_thickness=&#8221;1&#8243; divider_color=&#8221;extra-color-3&#8243;][vc_column_text css=&#8221;.vc_custom_1726555788348{padding-bottom: 20px !important;}&#8221;]\n<h2><b>First API Request With<\/b><b> cURL<\/b><\/h2>\n[\/vc_column_text][vc_column_text css=&#8221;.vc_custom_1726553700050{padding-bottom: 20px !important;}&#8221;]To extract data using cURL, follow these steps:<\/p>\n<p>1. Install cURL on your desktop.<br \/>\n2. Construct the Curl command by writing \u201ccurl\u201d and then entering the query.<br \/>\nFor example;<\/p>\n<p><code>curl https:\/\/newsdata.io\/api\/1\/latest?apikey=YOUR_API_KEY&amp;q=pizza<\/code><\/p>\n<p>3. cURL will extract all the data of your query in JSON format.[\/vc_column_text][image_with_animation image_url=&#8221;3766&#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;10px&#8221; box_shadow=&#8221;small_depth&#8221; image_loading=&#8221;default&#8221; max_width=&#8221;100%&#8221; max_width_mobile=&#8221;default&#8221;][vc_column_text css=&#8221;.vc_custom_1726553721073{padding-bottom: 20px !important;}&#8221;]Additional parameters, such as language, category, and domain name, can also be used.<\/p>\n<p>To help you understand better, given below is an example.<br \/>\nThe given request will look for news stories in English language with the keyword \u201cpizza\u201d published between January 19, 2023, and January 25, 2023.<\/p>\n<p><code>https:\/\/newsdata.io\/api\/1\/archive?apikey=YOUR_API_KEY&amp;q=pizza&amp;language=en&amp;from_date=2023-01-19&amp;to_date=2023-01-25<\/code>[\/vc_column_text][image_with_animation image_url=&#8221;3767&#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;10px&#8221; box_shadow=&#8221;small_depth&#8221; image_loading=&#8221;default&#8221; max_width=&#8221;100%&#8221; max_width_mobile=&#8221;default&#8221;][vc_column_text css=&#8221;.vc_custom_1713350817207{padding-bottom: 20px !important;}&#8221;]After submitting your request, you will receive a JSON response containing the news articles that meet your search parameters.[\/vc_column_text][divider line_type=&#8221;Full Width Line&#8221; line_thickness=&#8221;1&#8243; divider_color=&#8221;extra-color-3&#8243;][vc_column_text css=&#8221;.vc_custom_1726555804707{padding-bottom: 20px !important;}&#8221;]\n<h2><b>First API Request<\/b><b> Through NewData.io Dashboard<\/b><\/h2>\n[\/vc_column_text][vc_column_text css=&#8221;.vc_custom_1726555216335{padding-bottom: 20px !important;}&#8221;]To learn how to extract the articles without coding, follow the steps below:<\/p>\n<p><b>1. Account Creation:<\/b> <a href=\"https:\/\/newsdata.io\/login\">Sign up<\/a> for an account on NewsData.io to obtain your unique API key.<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6754 size-full\" src=\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2026-02-06-163122.png?resize=1080%2C463&#038;ssl=1\" alt=\"sign-in to NewsData.io\" width=\"1080\" height=\"463\" srcset=\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2026-02-06-163122.png?w=1903&amp;ssl=1 1903w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2026-02-06-163122.png?resize=300%2C129&amp;ssl=1 300w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2026-02-06-163122.png?resize=1024%2C439&amp;ssl=1 1024w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2026-02-06-163122.png?resize=768%2C329&amp;ssl=1 768w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2026-02-06-163122.png?resize=1536%2C659&amp;ssl=1 1536w\" sizes=\"(max-width: 1080px) 100vw, 1080px\" data-recalc-dims=\"1\" \/><\/strong><\/p>\n<p><strong>2. Searching your Query:<\/strong> After account creation, go back to your NewsData.io homepage.<\/p>\n<p><strong>3. Click on \u201cDashboard\u201d at the top right corner.<\/strong> You will then be redirected to the NewsData.io dashboard. Here, you can fetch data using the search bar(as shown below) as displayed on your screen.<\/p>\n<p><span data-sheets-root=\"1\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:45413}\" data-sheets-userformat=\"{&quot;2&quot;:16963,&quot;3&quot;:{&quot;1&quot;:5,&quot;2&quot;:&quot;d mmmm yyyy&quot;,&quot;3&quot;:1},&quot;4&quot;:{&quot;1&quot;:2,&quot;2&quot;:15724527},&quot;9&quot;:0,&quot;12&quot;:0,&quot;17&quot;:1}\">\n<!-- iframe plugin v.5.0 wordpress.org\/plugins\/iframe\/ -->\n<iframe loading=\"lazy\" src=\"https:\/\/newsdata.io\/single\/search\" height=\"150\" width=\"100%\" scrolling=\"yes\" class=\"iframe-class\" frameborder=\"0\"><\/iframe>\n<\/span><\/p>\n<p>For example, you have added the query &#8220;Ronaldo.\u201d The API will fetch all the related articles.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6755 size-full\" src=\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2026-02-06-163030.png?resize=1080%2C491&#038;ssl=1\" alt=\"search page\" width=\"1080\" height=\"491\" srcset=\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2026-02-06-163030.png?w=1904&amp;ssl=1 1904w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2026-02-06-163030.png?resize=300%2C136&amp;ssl=1 300w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2026-02-06-163030.png?resize=1024%2C465&amp;ssl=1 1024w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2026-02-06-163030.png?resize=768%2C349&amp;ssl=1 768w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2026-02-06-163030.png?resize=1536%2C698&amp;ssl=1 1536w\" sizes=\"(max-width: 1080px) 100vw, 1080px\" data-recalc-dims=\"1\" \/><\/p>\n<p>Users can also use advanced search filters, such as:<\/p>\n<ul>\n<li><strong>Date Range:<\/strong> This allows users to filter the data based on date.<\/li>\n<\/ul>\n<p><strong>NOTE<\/strong>: For <strong>free users<\/strong>, the data from the <strong>past 48 hours,<\/strong> and for <strong>paid basic users<\/strong>, up to the <strong>past 6 months<\/strong>, can be fetched.<br \/>\nFor the <strong>professional plan<\/strong>, users can retrieve <strong>2 years of historical data<\/strong>, and for the <strong>corporate plan<\/strong>, they can retrieve <strong>5 <\/strong><strong>years of historical data<\/strong>.<\/p>\n<p><strong>NOTE<\/strong>: Users can also request up to 8 years of <a href=\"https:\/\/newsdata.io\/blog\/all-about-news-archive-endpoint\/\">historical data<\/a> by contacting us at contact@newsdata.io.[\/vc_column_text][vc_column_text css=&#8221;.vc_custom_1726554765131{padding-bottom: 20px !important;}&#8221;]\n<ul>\n<li><strong>Country:<\/strong> This helps filter articles based on country-specific content.<br \/>\nFor example, if you set the country to Russia, then the API would fetch keyword-related news from Russia only.<\/li>\n<li><strong>Category:<\/strong> NewsData.io provides 18 different types of categories. You can filter the data based on categories such as sports, politics, science, etc.<\/li>\n<li><strong>Language:<\/strong> You can filter the news articles based on 89 different languages. This prevents linguistic barriers.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6756 size-full\" src=\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2026-02-06-175957.png?resize=1080%2C326&#038;ssl=1\" alt=\"apply filters \" width=\"1080\" height=\"326\" srcset=\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2026-02-06-175957.png?w=1880&amp;ssl=1 1880w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2026-02-06-175957.png?resize=300%2C91&amp;ssl=1 300w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2026-02-06-175957.png?resize=1024%2C309&amp;ssl=1 1024w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2026-02-06-175957.png?resize=768%2C232&amp;ssl=1 768w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2026-02-06-175957.png?resize=1536%2C464&amp;ssl=1 1536w\" sizes=\"(max-width: 1080px) 100vw, 1080px\" data-recalc-dims=\"1\" \/><\/li>\n<li>So, fetching the data from the dashboard was quite easy, but there were limits to some of the features and parameters.<\/li>\n<\/ul>\n[\/vc_column_text][divider line_type=&#8221;Full Width Line&#8221; line_thickness=&#8221;1&#8243; divider_color=&#8221;extra-color-3&#8243;][vc_column_text css=&#8221;.vc_custom_1726555815208{padding-bottom: 20px !important;}&#8221;]\n<h2><b>First API Request With<\/b><b> Python<\/b><\/h2>\n[\/vc_column_text][vc_column_text css=&#8221;.vc_custom_1713356207334{padding-bottom: 20px !important;}&#8221;]To make the first request from a Python client, follow the steps below:<\/p>\n<ul>\n<li><strong>Obtain API Key<\/strong><br \/>\nThe first step is obtaining your unique API key by registering for an account. This serves as the authentication token for your requests.<\/li>\n<li><strong>Install &#8216;newsdataapi&#8217;<\/strong><br \/>\n<code>\u201cpip install newsdataapi\u201d<\/code>This command will install newsdataapi to your Python library.<\/li>\n<li><strong>Import &#8216;NewsDataApiClient&#8217; package to your program.<\/strong><br \/>\n<code>from newsdataapi import NewsDataAPIClient<\/code>This command will import the \u2018NewsDataApiClient\u2019 package to your program.<\/li>\n<li><strong>For API key authorization, Initialize the client with your API key<\/strong><br \/>\n<code>api = NewsDataApiClient(apikey=&#039;YOUR_API_KEY&#039;)<\/code><\/li>\n<li><strong>Within the brackets (), you can enter any parameter like q, timeframe, category, etc.<\/strong><br \/>\n<code>response = api.news_api() print(response)<\/code><\/li>\n<li><strong>This command will fetch all the articles related to pizza.<\/strong><br \/>\n<code>response = api.news_api(q=&#039;pizza&#039;) print(response)<\/code><\/li>\n<\/ul>\n[\/vc_column_text][image_with_animation image_url=&#8221;3771&#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;10px&#8221; box_shadow=&#8221;small_depth&#8221; image_loading=&#8221;default&#8221; max_width=&#8221;100%&#8221; max_width_mobile=&#8221;default&#8221;][vc_column_text css=&#8221;.vc_custom_1713354899348{padding-bottom: 20px !important;}&#8221;]<a href=\"https:\/\/newsdata.io\/blog\/news-api-python-client\/\">Click here<\/a> to learn more about Python client requests.[\/vc_column_text][image_with_animation image_url=&#8221;5722&#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;10px&#8221; box_shadow=&#8221;small_depth&#8221; image_loading=&#8221;default&#8221; max_width=&#8221;100%&#8221; max_width_mobile=&#8221;default&#8221; img_link=&#8221;https:\/\/bit.ly\/41MjLOC&#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>This articles let&#8217;s you know how you can request your first API query by using 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":17,"featured_media":1783,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[46],"tags":[12,69,146],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Make Your First API Request With NewsData.io<\/title>\n<meta name=\"description\" content=\"This article guides you on how to make your first API request with Newsdata.io through cURL, Postman, Python and via Newsdata.io Dashboard.\" \/>\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\/how-to-make-your-first-request-with-newsdata-io\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Make Your First API Request With NewsData.io\" \/>\n<meta property=\"og:description\" content=\"This article guides you on how to make your first API request with Newsdata.io through cURL, Postman, Python and via Newsdata.io Dashboard.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/newsdata.io\/blog\/how-to-make-your-first-request-with-newsdata-io\/\" \/>\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-29T00:39:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-09T04:42:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/3-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Aditi Chaudhary\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@AditiCh17996036\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Aditi Chaudhary\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/newsdata.io\/blog\/how-to-make-your-first-request-with-newsdata-io\/\",\"url\":\"https:\/\/newsdata.io\/blog\/how-to-make-your-first-request-with-newsdata-io\/\",\"name\":\"How to Make Your First API Request With NewsData.io\",\"isPartOf\":{\"@id\":\"https:\/\/newsdata.io\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/newsdata.io\/blog\/how-to-make-your-first-request-with-newsdata-io\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/newsdata.io\/blog\/how-to-make-your-first-request-with-newsdata-io\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/3-1.jpg?fit=1280%2C720&ssl=1\",\"datePublished\":\"2023-08-29T00:39:51+00:00\",\"dateModified\":\"2026-02-09T04:42:39+00:00\",\"author\":{\"@id\":\"https:\/\/newsdata.io\/blog\/#\/schema\/person\/531c7aac51910b5277dd51422cf0d964\"},\"description\":\"This article guides you on how to make your first API request with Newsdata.io through cURL, Postman, Python and via Newsdata.io Dashboard.\",\"breadcrumb\":{\"@id\":\"https:\/\/newsdata.io\/blog\/how-to-make-your-first-request-with-newsdata-io\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/newsdata.io\/blog\/how-to-make-your-first-request-with-newsdata-io\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/newsdata.io\/blog\/how-to-make-your-first-request-with-newsdata-io\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/3-1.jpg?fit=1280%2C720&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/3-1.jpg?fit=1280%2C720&ssl=1\",\"width\":1280,\"height\":720},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/newsdata.io\/blog\/how-to-make-your-first-request-with-newsdata-io\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\/\/newsdata.io\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Make Your First API Request With NewsData.io\"}]},{\"@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\/531c7aac51910b5277dd51422cf0d964\",\"name\":\"Aditi Chaudhary\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/newsdata.io\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/331be6db4c207ba712e439ded52d96d1?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/331be6db4c207ba712e439ded52d96d1?s=96&d=mm&r=g\",\"caption\":\"Aditi Chaudhary\"},\"description\":\"Aditi Chaudhary is an enthusiastic content writer at Newsdata.io, where she covers topics related to real-time news, News APIs, data-driven journalism, and emerging trends in media and technology. Aditi is passionate about storytelling, research, and creating content that informs and inspires. As a student of Journalism and Mass Communication with a strong interest in the evolving landscape of digital media, she aims to merge her creativity with credibility to expand her knowledge and bring innovation into every piece she creates.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/aditi-chaudhary-456076293\/\",\"https:\/\/x.com\/AditiCh17996036\"],\"url\":\"https:\/\/newsdata.io\/blog\/author\/aditi\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Make Your First API Request With NewsData.io","description":"This article guides you on how to make your first API request with Newsdata.io through cURL, Postman, Python and via Newsdata.io Dashboard.","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\/how-to-make-your-first-request-with-newsdata-io\/","og_locale":"en_US","og_type":"article","og_title":"How to Make Your First API Request With NewsData.io","og_description":"This article guides you on how to make your first API request with Newsdata.io through cURL, Postman, Python and via Newsdata.io Dashboard.","og_url":"https:\/\/newsdata.io\/blog\/how-to-make-your-first-request-with-newsdata-io\/","og_site_name":"Newsdata.io - Stay Updated with the Latest News API Trends","article_published_time":"2023-08-29T00:39:51+00:00","article_modified_time":"2026-02-09T04:42:39+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/3-1.jpg","type":"image\/jpeg"}],"author":"Aditi Chaudhary","twitter_card":"summary_large_image","twitter_creator":"@AditiCh17996036","twitter_misc":{"Written by":"Aditi Chaudhary","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/newsdata.io\/blog\/how-to-make-your-first-request-with-newsdata-io\/","url":"https:\/\/newsdata.io\/blog\/how-to-make-your-first-request-with-newsdata-io\/","name":"How to Make Your First API Request With NewsData.io","isPartOf":{"@id":"https:\/\/newsdata.io\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/newsdata.io\/blog\/how-to-make-your-first-request-with-newsdata-io\/#primaryimage"},"image":{"@id":"https:\/\/newsdata.io\/blog\/how-to-make-your-first-request-with-newsdata-io\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/3-1.jpg?fit=1280%2C720&ssl=1","datePublished":"2023-08-29T00:39:51+00:00","dateModified":"2026-02-09T04:42:39+00:00","author":{"@id":"https:\/\/newsdata.io\/blog\/#\/schema\/person\/531c7aac51910b5277dd51422cf0d964"},"description":"This article guides you on how to make your first API request with Newsdata.io through cURL, Postman, Python and via Newsdata.io Dashboard.","breadcrumb":{"@id":"https:\/\/newsdata.io\/blog\/how-to-make-your-first-request-with-newsdata-io\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/newsdata.io\/blog\/how-to-make-your-first-request-with-newsdata-io\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/newsdata.io\/blog\/how-to-make-your-first-request-with-newsdata-io\/#primaryimage","url":"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/3-1.jpg?fit=1280%2C720&ssl=1","contentUrl":"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/3-1.jpg?fit=1280%2C720&ssl=1","width":1280,"height":720},{"@type":"BreadcrumbList","@id":"https:\/\/newsdata.io\/blog\/how-to-make-your-first-request-with-newsdata-io\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/newsdata.io\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Make Your First API Request With NewsData.io"}]},{"@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\/531c7aac51910b5277dd51422cf0d964","name":"Aditi Chaudhary","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/newsdata.io\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/331be6db4c207ba712e439ded52d96d1?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/331be6db4c207ba712e439ded52d96d1?s=96&d=mm&r=g","caption":"Aditi Chaudhary"},"description":"Aditi Chaudhary is an enthusiastic content writer at Newsdata.io, where she covers topics related to real-time news, News APIs, data-driven journalism, and emerging trends in media and technology. Aditi is passionate about storytelling, research, and creating content that informs and inspires. As a student of Journalism and Mass Communication with a strong interest in the evolving landscape of digital media, she aims to merge her creativity with credibility to expand her knowledge and bring innovation into every piece she creates.","sameAs":["https:\/\/www.linkedin.com\/in\/aditi-chaudhary-456076293\/","https:\/\/x.com\/AditiCh17996036"],"url":"https:\/\/newsdata.io\/blog\/author\/aditi\/"}]}},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/3-1.jpg?fit=1280%2C720&ssl=1","category":["Documentation"],"featured_image_url":"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/3-1.jpg?fit=1280%2C720&ssl=1","_links":{"self":[{"href":"https:\/\/newsdata.io\/blog\/wp-json\/wp\/v2\/posts\/1591"}],"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\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/newsdata.io\/blog\/wp-json\/wp\/v2\/comments?post=1591"}],"version-history":[{"count":5,"href":"https:\/\/newsdata.io\/blog\/wp-json\/wp\/v2\/posts\/1591\/revisions"}],"predecessor-version":[{"id":6757,"href":"https:\/\/newsdata.io\/blog\/wp-json\/wp\/v2\/posts\/1591\/revisions\/6757"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/newsdata.io\/blog\/wp-json\/wp\/v2\/media\/1783"}],"wp:attachment":[{"href":"https:\/\/newsdata.io\/blog\/wp-json\/wp\/v2\/media?parent=1591"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/newsdata.io\/blog\/wp-json\/wp\/v2\/categories?post=1591"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/newsdata.io\/blog\/wp-json\/wp\/v2\/tags?post=1591"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}