{"id":1591,"date":"2023-08-29T06:09:51","date_gmt":"2023-08-29T00:39:51","guid":{"rendered":"https:\/\/newsdata.io\/blog\/?p=1591"},"modified":"2024-09-17T12:20:28","modified_gmt":"2024-09-17T06:50:28","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.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3768\" src=\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/API-4.webp?resize=671%2C284&#038;ssl=1\" alt=\"API request sign-in\" width=\"671\" height=\"284\" srcset=\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/API-4.webp?resize=300%2C127&amp;ssl=1 300w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/API-4.webp?resize=1024%2C434&amp;ssl=1 1024w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/API-4.webp?resize=768%2C326&amp;ssl=1 768w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/API-4.webp?w=1536&amp;ssl=1 1536w\" sizes=\"(max-width: 671px) 100vw, 671px\" data-recalc-dims=\"1\" \/><\/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.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3769\" src=\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/API-5.webp?resize=689%2C193&#038;ssl=1\" alt=\"\" width=\"689\" height=\"193\" srcset=\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/API-5.webp?resize=300%2C84&amp;ssl=1 300w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/API-5.webp?resize=1024%2C287&amp;ssl=1 1024w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/API-5.webp?resize=768%2C215&amp;ssl=1 768w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/API-5.webp?w=1536&amp;ssl=1 1536w\" sizes=\"(max-width: 689px) 100vw, 689px\" 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>1 year of historical data<\/strong>, and for the <strong>corporate plan<\/strong>, they can retrieve <strong>2 years of historical data<\/strong>.<\/p>\n<p><strong>NOTE<\/strong>: Users can also request up to 5 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.<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 12 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 77 different languages. This prevents linguistic barriers.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3770\" src=\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/API-6.webp?resize=647%2C315&#038;ssl=1\" alt=\"First API request with Newsdata.io Dashboard\" width=\"647\" height=\"315\" srcset=\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/API-6.webp?resize=300%2C146&amp;ssl=1 300w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/API-6.webp?resize=1024%2C500&amp;ssl=1 1024w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/API-6.webp?resize=768%2C375&amp;ssl=1 768w, https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2023\/08\/API-6.webp?w=1536&amp;ssl=1 1536w\" sizes=\"(max-width: 647px) 100vw, 647px\" data-recalc-dims=\"1\" \/><br \/>\nSo 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;3027&#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":14,"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=\"2024-09-17T06:50:28+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=\"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=\"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\":\"2024-09-17T06:50:28+00:00\",\"author\":{\"@id\":\"https:\/\/newsdata.io\/blog\/#\/schema\/person\/24759f2a710e24a49089f8cf2b8e70b3\"},\"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\/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":"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":"2024-09-17T06:50:28+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":"Prabhleen Kaur","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Prabhleen Kaur","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":"2024-09-17T06:50:28+00:00","author":{"@id":"https:\/\/newsdata.io\/blog\/#\/schema\/person\/24759f2a710e24a49089f8cf2b8e70b3"},"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\/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\/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\/14"}],"replies":[{"embeddable":true,"href":"https:\/\/newsdata.io\/blog\/wp-json\/wp\/v2\/comments?post=1591"}],"version-history":[{"count":6,"href":"https:\/\/newsdata.io\/blog\/wp-json\/wp\/v2\/posts\/1591\/revisions"}],"predecessor-version":[{"id":7943,"href":"https:\/\/newsdata.io\/blog\/wp-json\/wp\/v2\/posts\/1591\/revisions\/7943"}],"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}]}}