{"id":34078,"date":"2023-12-18T19:53:28","date_gmt":"2023-12-18T22:53:28","guid":{"rendered":"https:\/\/hml2.stract.to\/blog\/nao-categorizado\/what-are-webhooks\/"},"modified":"2023-12-18T19:53:28","modified_gmt":"2023-12-18T22:53:28","slug":"what-are-webhooks","status":"publish","type":"post","link":"https:\/\/www.hml2.stract.to\/en\/blog\/connectors-and-apis\/what-are-webhooks\/","title":{"rendered":"What are Webhooks?"},"content":{"rendered":"<p>In the field of programming and software development, two common concepts are the <strong>API <\/strong>(Application Programming Interface) and the <strong>Webhook<\/strong>. Although they are often used to integrate and communicate between different systems and applications, they operate in distinct ways and serve different purposes.<br \/>Stract offers the option to use native API connectors, such as those from Facebook Ads and Facebook Insights, as well as Webhooks.<br \/>To decide when to use each, it&#8217;s essential to understand their differences. <\/p>\n<h3>What is an API?<\/h3>\n<p>An API consists of a set of rules and protocols that facilitate communication between different software applications. It allows one application to access resources or data from another, but always through a <strong>specific<\/strong> <strong>request<\/strong>, called a <strong>Query<\/strong>. For example, Stract uses the Facebook Ads API to collect campaign performance data on specific dates. This interaction requires the requesting application, such as Stract, to make a detailed request to access the data, specifying fields, dates, and necessary authorizations.   <\/p>\n<h3>What are Webhooks?<\/h3>\n<p>Unlike an API, a Webhook functions as a \u201cpush\u201d mechanism. It <strong>automatically <\/strong><strong>sends <\/strong>information to another system when a <strong>specific <\/strong><strong>event <\/strong>occurs, without the need for an active request, as with APIs.<br \/>For instance, the Hotmart webhook will automatically send data after each new approved purchase. This saves resources by eliminating the need for constant checks or creating queries for such extractions. However, unlike APIs, <strong>Webhooks follow a standard format and do not allow customization of the fields sent.<\/strong> <\/p>\n<h3>Key Differences<\/h3>\n<p>The primary difference between an API and a Webhook lies in how data is exchanged:<\/p>\n<ul>\n<li><strong>APIs<\/strong>: Require an active request to access data.<\/li>\n<li><strong>Webhooks<\/strong>: Automatically send data in response to specific events.<\/li>\n<\/ul>\n<h3>When to Use Each?<\/h3>\n<p>The choice between an API and a Webhook depends on the context:<\/p>\n<ul>\n<li>APIs are ideal for selecting specific fields and situations that require on-demand data.<\/li>\n<li>Webhooks are better for scenarios that require automatic and real-time notifications.<\/li>\n<\/ul>\n<p>Additionally, <strong>APIs have limitation<\/strong>s, such as request limits on some platforms, like <a href=\"https:\/\/hml2.stract.to\/blog\/suporte\/limite-de-requisicoes-da-api-do-rd-station-marketing\/\">RD Station&#8217;s request limits<\/a>.<br \/><strong>Webhooks<\/strong>, on the other hand, <strong>are not retroactive<\/strong>, only sending data after configuration. APIs can request data from previous periods, depending on the availability of each platform.<br \/>With Stract, it&#8217;s possible to schedule API extractions and use Webhooks to create specific databases, such as leads in RD and approved purchases in Hotmart, increasing flexibility in analyses.<\/p>\n<h3 class=\"title-suporte-posts\">Check out the articles in support!<\/h3>\n<ul>\n<li><a href=\"https:\/\/hml2.stract.to\/blog\/suporte\/como-configurar-webhooks-na-stract\/\">How to set up Webhooks in Stract<\/a><\/li>\n<li><a href=\"https:\/\/hml2.stract.to\/blog\/suporte\/como-configurar-webhooks-no-rd-station\/\">How to set up Webhooks in RD Station<\/a><\/li>\n<li><a href=\"https:\/\/hml2.stract.to\/blog\/suporte\/como-configurar-webhooks-no-kiwify\/\">How to set up Webhooks in Kiwify<\/a><\/li>\n<li><a href=\"https:\/\/hml2.stract.to\/blog\/suporte\/como-configurar-webhooks-no-hotmart\/\">How to set up Webhooks in Hotmart<\/a><\/li>\n<li><a href=\"https:\/\/hml2.stract.to\/blog\/suporte\/como-configurar-webhooks-no-perfect-pay\/\">How to set up Webhooks in Perfect Pay<\/a><\/li>\n<li><a href=\"https:\/\/hml2.stract.to\/blog\/suporte\/como-configurar-webhooks-no-monetizze\/\">How to set up Webhooks on Monetizze<\/a><\/li>\n<li><a href=\"https:\/\/hml2.stract.to\/blog\/suporte\/como-configurar-webhooks-no-eduzz\/\">How to set up Webhooks on Eduzz<\/a><\/li>\n<li><a href=\"https:\/\/hml2.stract.to\/blog\/suporte\/como-configurar-webhooks-no-hubspot\/\">How to set up Webhooks in HubSpot<\/a><\/li>\n<li><a href=\"https:\/\/hml2.stract.to\/blog\/suporte\/como-configurar-webhooks-no-pipedrive\/\">How to set up Webhooks in Pipedrive<\/a><\/li>\n<li><a href=\"https:\/\/hml2.stract.to\/blog\/suporte\/como-configurar-webhooks-no-active-campaign\/\">How to set up Webhooks in Active Campaign<\/a><\/li>\n<li><a href=\"https:\/\/hml2.stract.to\/blog\/suporte\/como-configurar-webhooks-na-lead-lovers\/\">How to set up Webhooks in LeadLovers<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>In the field of programming and software development, two common concepts are the API (Application Programming Interface) and the Webhook. Although they are often used to integrate and communicate between different systems and applications, they operate in distinct ways and serve different purposes.Stract offers the option to use native API connectors, such as those from [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":30405,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[87],"tags":[],"class_list":["post-34078","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-connectors-and-apis"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>What are Webhooks? - Stract<\/title>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What are Webhooks? - Stract\" \/>\n<meta property=\"og:description\" content=\"In the field of programming and software development, two common concepts are the API (Application Programming Interface) and the Webhook. Although they are often used to integrate and communicate between different systems and applications, they operate in distinct ways and serve different purposes.Stract offers the option to use native API connectors, such as those from [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hml2.stract.to\/en\/blog\/connectors-and-apis\/what-are-webhooks\/\" \/>\n<meta property=\"og:site_name\" content=\"Stract\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hml2.stract.tool\" \/>\n<meta property=\"article:published_time\" content=\"2023-12-18T22:53:28+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/hml2.stract.to\/wp-content\/uploads\/2023\/12\/apis-webhooks.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"935\" \/>\n\t<meta property=\"og:image:height\" content=\"587\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"str_admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@stract_to\" \/>\n<meta name=\"twitter:site\" content=\"@stract_to\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"str_admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.hml2.stract.to\/en\/blog\/connectors-and-apis\/what-are-webhooks\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.hml2.stract.to\/en\/blog\/connectors-and-apis\/what-are-webhooks\/\"},\"author\":{\"name\":\"str_admin\",\"@id\":\"https:\/\/hml2.stract.to\/#\/schema\/person\/e63ade17db634c8c1f74865ad47cc95f\"},\"headline\":\"What are Webhooks?\",\"datePublished\":\"2023-12-18T22:53:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.hml2.stract.to\/en\/blog\/connectors-and-apis\/what-are-webhooks\/\"},\"wordCount\":478,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/www.hml2.stract.to\/en\/blog\/connectors-and-apis\/what-are-webhooks\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.hml2.stract.to\/wp-content\/uploads\/2023\/12\/apis-webhooks.jpg\",\"articleSection\":[\"Connectors and APIs\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.hml2.stract.to\/en\/blog\/connectors-and-apis\/what-are-webhooks\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.hml2.stract.to\/en\/blog\/connectors-and-apis\/what-are-webhooks\/\",\"url\":\"https:\/\/www.hml2.stract.to\/en\/blog\/connectors-and-apis\/what-are-webhooks\/\",\"name\":\"What are Webhooks? - Stract\",\"isPartOf\":{\"@id\":\"https:\/\/hml2.stract.to\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.hml2.stract.to\/en\/blog\/connectors-and-apis\/what-are-webhooks\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.hml2.stract.to\/en\/blog\/connectors-and-apis\/what-are-webhooks\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.hml2.stract.to\/wp-content\/uploads\/2023\/12\/apis-webhooks.jpg\",\"datePublished\":\"2023-12-18T22:53:28+00:00\",\"author\":{\"@id\":\"https:\/\/hml2.stract.to\/#\/schema\/person\/e63ade17db634c8c1f74865ad47cc95f\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.hml2.stract.to\/en\/blog\/connectors-and-apis\/what-are-webhooks\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.hml2.stract.to\/en\/blog\/connectors-and-apis\/what-are-webhooks\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.hml2.stract.to\/en\/blog\/connectors-and-apis\/what-are-webhooks\/#primaryimage\",\"url\":\"https:\/\/www.hml2.stract.to\/wp-content\/uploads\/2023\/12\/apis-webhooks.jpg\",\"contentUrl\":\"https:\/\/www.hml2.stract.to\/wp-content\/uploads\/2023\/12\/apis-webhooks.jpg\",\"width\":935,\"height\":587},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.hml2.stract.to\/en\/blog\/connectors-and-apis\/what-are-webhooks\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\/\/www.hml2.stract.to\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"What are Webhooks?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/hml2.stract.to\/#website\",\"url\":\"https:\/\/hml2.stract.to\/\",\"name\":\"Stract\",\"description\":\"Alternativa ao Supermetrics e Adveronix\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/hml2.stract.to\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/hml2.stract.to\/#\/schema\/person\/e63ade17db634c8c1f74865ad47cc95f\",\"name\":\"str_admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/hml2.stract.to\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5ca621081e3313df0910f4f85f29b988e4384ff9947e862c8b1b29324737210d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5ca621081e3313df0910f4f85f29b988e4384ff9947e862c8b1b29324737210d?s=96&d=mm&r=g\",\"caption\":\"str_admin\"},\"sameAs\":[\"https:\/\/hml2.stract.to\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What are Webhooks? - Stract","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_US","og_type":"article","og_title":"What are Webhooks? - Stract","og_description":"In the field of programming and software development, two common concepts are the API (Application Programming Interface) and the Webhook. Although they are often used to integrate and communicate between different systems and applications, they operate in distinct ways and serve different purposes.Stract offers the option to use native API connectors, such as those from [&hellip;]","og_url":"https:\/\/www.hml2.stract.to\/en\/blog\/connectors-and-apis\/what-are-webhooks\/","og_site_name":"Stract","article_publisher":"https:\/\/www.facebook.com\/hml2.stract.tool","article_published_time":"2023-12-18T22:53:28+00:00","og_image":[{"width":935,"height":587,"url":"http:\/\/hml2.stract.to\/wp-content\/uploads\/2023\/12\/apis-webhooks.jpg","type":"image\/jpeg"}],"author":"str_admin","twitter_card":"summary_large_image","twitter_creator":"@stract_to","twitter_site":"@stract_to","twitter_misc":{"Written by":"str_admin","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hml2.stract.to\/en\/blog\/connectors-and-apis\/what-are-webhooks\/#article","isPartOf":{"@id":"https:\/\/www.hml2.stract.to\/en\/blog\/connectors-and-apis\/what-are-webhooks\/"},"author":{"name":"str_admin","@id":"https:\/\/hml2.stract.to\/#\/schema\/person\/e63ade17db634c8c1f74865ad47cc95f"},"headline":"What are Webhooks?","datePublished":"2023-12-18T22:53:28+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hml2.stract.to\/en\/blog\/connectors-and-apis\/what-are-webhooks\/"},"wordCount":478,"commentCount":0,"image":{"@id":"https:\/\/www.hml2.stract.to\/en\/blog\/connectors-and-apis\/what-are-webhooks\/#primaryimage"},"thumbnailUrl":"https:\/\/www.hml2.stract.to\/wp-content\/uploads\/2023\/12\/apis-webhooks.jpg","articleSection":["Connectors and APIs"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hml2.stract.to\/en\/blog\/connectors-and-apis\/what-are-webhooks\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hml2.stract.to\/en\/blog\/connectors-and-apis\/what-are-webhooks\/","url":"https:\/\/www.hml2.stract.to\/en\/blog\/connectors-and-apis\/what-are-webhooks\/","name":"What are Webhooks? - Stract","isPartOf":{"@id":"https:\/\/hml2.stract.to\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hml2.stract.to\/en\/blog\/connectors-and-apis\/what-are-webhooks\/#primaryimage"},"image":{"@id":"https:\/\/www.hml2.stract.to\/en\/blog\/connectors-and-apis\/what-are-webhooks\/#primaryimage"},"thumbnailUrl":"https:\/\/www.hml2.stract.to\/wp-content\/uploads\/2023\/12\/apis-webhooks.jpg","datePublished":"2023-12-18T22:53:28+00:00","author":{"@id":"https:\/\/hml2.stract.to\/#\/schema\/person\/e63ade17db634c8c1f74865ad47cc95f"},"breadcrumb":{"@id":"https:\/\/www.hml2.stract.to\/en\/blog\/connectors-and-apis\/what-are-webhooks\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hml2.stract.to\/en\/blog\/connectors-and-apis\/what-are-webhooks\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hml2.stract.to\/en\/blog\/connectors-and-apis\/what-are-webhooks\/#primaryimage","url":"https:\/\/www.hml2.stract.to\/wp-content\/uploads\/2023\/12\/apis-webhooks.jpg","contentUrl":"https:\/\/www.hml2.stract.to\/wp-content\/uploads\/2023\/12\/apis-webhooks.jpg","width":935,"height":587},{"@type":"BreadcrumbList","@id":"https:\/\/www.hml2.stract.to\/en\/blog\/connectors-and-apis\/what-are-webhooks\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/www.hml2.stract.to\/en\/"},{"@type":"ListItem","position":2,"name":"What are Webhooks?"}]},{"@type":"WebSite","@id":"https:\/\/hml2.stract.to\/#website","url":"https:\/\/hml2.stract.to\/","name":"Stract","description":"Alternativa ao Supermetrics e Adveronix","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/hml2.stract.to\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/hml2.stract.to\/#\/schema\/person\/e63ade17db634c8c1f74865ad47cc95f","name":"str_admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hml2.stract.to\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/5ca621081e3313df0910f4f85f29b988e4384ff9947e862c8b1b29324737210d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5ca621081e3313df0910f4f85f29b988e4384ff9947e862c8b1b29324737210d?s=96&d=mm&r=g","caption":"str_admin"},"sameAs":["https:\/\/hml2.stract.to"]}]}},"_links":{"self":[{"href":"https:\/\/www.hml2.stract.to\/en\/wp-json\/wp\/v2\/posts\/34078","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hml2.stract.to\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hml2.stract.to\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hml2.stract.to\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hml2.stract.to\/en\/wp-json\/wp\/v2\/comments?post=34078"}],"version-history":[{"count":0,"href":"https:\/\/www.hml2.stract.to\/en\/wp-json\/wp\/v2\/posts\/34078\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hml2.stract.to\/en\/wp-json\/wp\/v2\/media\/30405"}],"wp:attachment":[{"href":"https:\/\/www.hml2.stract.to\/en\/wp-json\/wp\/v2\/media?parent=34078"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hml2.stract.to\/en\/wp-json\/wp\/v2\/categories?post=34078"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hml2.stract.to\/en\/wp-json\/wp\/v2\/tags?post=34078"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}