CINXE.COM

License Agreement | Semantic Scholar Academic Graph API

<!DOCTYPE html><!-- Last Published: Fri Nov 15 2024 22:53:53 GMT+0000 (Coordinated Universal Time) --><html data-wf-domain="webflow.semanticscholar.org" data-wf-page="6584745360a4872a287a8923" data-wf-site="605236bb767e9a5bb229c63c" lang="en"><head><meta charset="utf-8"/><title>License Agreement | Semantic Scholar Academic Graph API</title><meta content="License Agreement | Semantic Scholar Academic Graph API" property="og:title"/><meta content="https://cdn.prod.website-files.com/605236bb767e9a5bb229c63c/60a2cb67437bf2de419d5137_s2-og.png" property="og:image"/><meta content="License Agreement | Semantic Scholar Academic Graph API" property="twitter:title"/><meta content="https://cdn.prod.website-files.com/605236bb767e9a5bb229c63c/60a2cb67437bf2de419d5137_s2-og.png" property="twitter:image"/><meta content="width=device-width, initial-scale=1" name="viewport"/><link href="https://cdn.prod.website-files.com/605236bb767e9a5bb229c63c/css/semanticscholar.66787fc22.min.css" rel="stylesheet" type="text/css"/><link href="https://fonts.googleapis.com" rel="preconnect"/><link href="https://fonts.gstatic.com" rel="preconnect" crossorigin="anonymous"/><script src="https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js" type="text/javascript"></script><script type="text/javascript">WebFont.load({ google: { families: ["Lato:100,100italic,300,300italic,400,400italic,700,700italic,900,900italic","Roboto Slab:300,regular,500,700","Roboto:300,regular,500,700,900","Roboto Mono:regular","Roboto Mono:100,200,300,regular"] }});</script><script type="text/javascript">!function(o,c){var n=c.documentElement,t=" w-mod-";n.className+=t+"js",("ontouchstart"in o||o.DocumentTouch&&c instanceof DocumentTouch)&&(n.className+=t+"touch")}(window,document);</script><link href="https://cdn.prod.website-files.com/605236bb767e9a5bb229c63c/609add8e5f5ce7570f656904_favicon.png" rel="shortcut icon" type="image/x-icon"/><link href="https://cdn.prod.website-files.com/605236bb767e9a5bb229c63c/609adda9bd029148c37023a9_webclip.png" rel="apple-touch-icon"/><link href="/api/1/user/webflow.css" rel="stylesheet" type="text/css"> <!-- Heap Analytics Snippet --> <script type="text/javascript"> window.heap=window.heap||[],heap.load=function(e,t){window.heap.appid=e,window.heap.config=t=t||{};var r=t.forceSSL||"https:"===document.location.protocol,a=document.createElement("script");a.type="text/javascript",a.async=!0,a.src=(r?"https:":"http:")+"//cdn.heapanalytics.com/js/heap-"+e+".js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(a,n);for(var o=function(e){return function(){heap.push([e].concat(Array.prototype.slice.call(arguments,0)))}},p=["addEventProperties","addUserProperties","clearEventProperties","identify","removeEventProperty","setEventProperties","track","unsetEventProperty"],c=0;c<p.length;c++)heap[p[c]]=o(p[c])}; heap.load("2424575119"); </script> <!--End Heap Analytics Snippet--> <style type="text/css"> /* Auth */ .site-header__navigation-auth { display: var(--has-auth--block) !important; } .site-header__navigation-not-auth { display: var(--no-auth--none) !important; } /* Dropdown Menu Top Bar */ .dropdown .dropdown__menu:before{ border-color: transparent transparent #1857B6 transparent; border-style: solid; border-width: 0 8px 8px 8px; content:""; height: 0; position: absolute; right: 12px; top: -12px; width: 0; } /* Embedded Newsletter Hubspot Form */ .newsletter .hbspt-form label{ margin: 0; } .newsletter .hbspt-form .hs-form { align-items: end; display: flex; } .newsletter .hbspt-form .hs-form-field { flex: 1; position: relative; } .newsletter .hbspt-form .hs-form-field .hs-input { border: 1px solid #546973; font-size: 16px; height: 36px; line-height: 36px; padding: 8px; width: 100%; } .newsletter .hbspt-form .hs-form-field .hs-input.error { border-color: #a92020; } .newsletter .hbspt-form .hs-form-field .hs-error-msgs { background: #a92020; bottom: -44px; left: 4px; list-style: none; margin: 0; padding: 6px 12px; position: absolute; } .newsletter .hbspt-form .hs-form-field .hs-error-msgs:after { border-color: transparent transparent transparent #a92020; border-style: solid; border-width: 8px 0 0 8px; content: ""; height: 0; left: 0; position: absolute; top: -8px; width: 0; } .newsletter .hbspt-form .hs-form-field .hs-error-msg { color: #fff; font-size: 14px; } .newsletter .hbspt-form .hs-submit { flex: 0 0 auto; } .newsletter .hbspt-form .hs-submit .hs-button { background: #1857B6; border: none; border-radius: 0 3px 3px 0; color: #fff; cursor: pointer; font-size: 14px; height: 36px; line-height: 36px; margin: 0; padding: 0 14px; transition: background-color 250ms cubic-bezier(.25, .46, .45, .94); } .newsletter .hbspt-form .hs-submit .hs-button:hover { background: #0f3875; } .newsletter .hbspt-form .hs_error_rollup { display: none; } .newsletter .hbspt-form .submitted-message{ border: 1px solid #1857B6; border-radius: 3px; padding: 12px; } .newsletter .hbspt-form .submitted-message p { color: #fff; margin: 0; text-align: left !important; } .newsletter-embed--accessibility .hbspt-form label{ color: #fff; font-family: "Roboto Slab", Serif; font-size: 18px; font-weight: 400; text-align: center; padding-bottom: 12px; } /* Paper Object */ .paper{ filter: drop-shadow(0 1px 2px rgba(0,0,0,.1)); } .paper:after{ background: #D9DADB; clip-path: polygon(0 0, 100% 100%, 0 100%); content: " "; height: 24px; position: absolute; right: 0; top: 0; width: 24px; } .paper__content{ clip-path: polygon(0 0, calc(100% - 24px) 0%, 100% calc(0% + 24px), 100% 100%, 0% 100%); } /* Testimonials */ .testimonial__citation:after{ content: ""; position: absolute; top: 36px; width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 8px; border-color: transparent transparent transparent #f5f6f7; left: -24px; } .testimonial__citation.testimonial__citation--alt:after{ left: auto; right: -24px; border-width: 8px 8px 8px 0; border-color: transparent #f5f6f7 transparent transparent; } @media screen and (max-width: 767px){ .testimonial__citation:after{ display: none; } } </style></head><body><header class="site-header site-header--fixed"><div class="site-header__content"><a href="https://www.semanticscholar.org" class="site-header__logo w-inline-block"><img src="https://cdn.prod.website-files.com/605236bb767e9a5bb229c63c/6053b48e21b11570b9788241_s2-logo-small.svg" loading="lazy" alt="Semantic Scholar" height="36" class="logo-small"/><img src="https://cdn.prod.website-files.com/605236bb767e9a5bb229c63c/605274dd4af9b0ca8ac84182_s2-logo.svg" loading="lazy" alt="Semantic Scholar" height="36" class="logo-large"/></a><div class="site-header__search w-form"><form id="wf-form-Search" name="wf-form-Search" data-name="Search" action="https://www.semanticscholar.org/search" method="get" class="search__form" data-wf-page-id="6584745360a4872a287a8923" data-wf-element-id="6ab03a1e-944e-9291-1968-b70fe5f1160b"><input class="search__field w-input" maxlength="256" name="q" data-name="q" placeholder="Search over 214 million papers from all fields of science" type="text" id="q"/><input type="submit" data-wait="Please wait..." class="search__submit w-button" value="Search"/></form><div class="w-form-done"><div>Thank you! Your submission has been received!</div></div><div class="w-form-fail"><div>Oops! Something went wrong while submitting the form.</div></div></div><div class="site-header__navigation site-header__navigation-auth"><div class="site-header__navigation-wrapper"><a data-w-id="6ab03a1e-944e-9291-1968-b70fe5f11616" href="#" class="site-header__navigation-close w-inline-block"><img src="https://cdn.prod.website-files.com/605236bb767e9a5bb229c63c/60908306c5938d99543d2b58_close.svg" loading="lazy" alt=""/></a><div data-hover="false" data-delay="0" class="site-header__navigation dropdown w-dropdown"><div class="site-header__navigation dropdown button button--secondary w-dropdown-toggle"><img src="https://cdn.prod.website-files.com/605236bb767e9a5bb229c63c/605b9e8398d437113ca1d650_icon-account.svg" loading="lazy" alt="Icon - Account" height="12" class="dropdown image"/><div class="dropdown icon w-icon-dropdown-toggle"></div><div class="dropdown dropdown__text">Account</div></div><nav class="dropdown dropdown__menu w-dropdown-list"><a href="https://www.semanticscholar.org/me/research" class="dropdown dropdown__link w-inline-block"><img src="https://cdn.prod.website-files.com/605236bb767e9a5bb229c63c/62dafc4d8c585c6c25f98ce9_menu-icon-dashboard.svg" loading="lazy" width="18" height="18" alt="" class="dropdown dropdown__image"/><div>Research Dashboard</div></a><a href="https://www.semanticscholar.org/me/recommendations" class="dropdown dropdown__link w-inline-block"><img src="https://cdn.prod.website-files.com/605236bb767e9a5bb229c63c/62dafc4d4e4b2383249840d1_menu-icon-feeds.svg" loading="lazy" width="18" height="18" alt="" class="dropdown dropdown__image"/><div>Research Feeds</div></a><a href="https://www.semanticscholar.org/me/library/all" class="dropdown dropdown__link w-inline-block"><img src="https://cdn.prod.website-files.com/605236bb767e9a5bb229c63c/62dafc4c42e988c961b5809a_menu-icon-library.svg" loading="lazy" width="18" height="18" alt="" class="dropdown dropdown__image"/><div>Library</div></a><a href="https://www.semanticscholar.org/me/account" class="dropdown dropdown__link dropdown__link--section w-inline-block"><img src="https://cdn.prod.website-files.com/605236bb767e9a5bb229c63c/62dafc4d3f5f3076275ec271_menu-icon-settings.svg" loading="lazy" width="18" height="18" alt="" class="dropdown dropdown__image"/><div>Settings</div></a><a href="https://www.semanticscholar.org/me/research" class="dropdown dropdown__link w-inline-block"><img src="https://cdn.prod.website-files.com/605236bb767e9a5bb229c63c/62dafc4c2ab4d9438fee8d1c_menu-icon-logout.svg" loading="lazy" width="18" height="18" alt="" class="dropdown dropdown__image"/><div>Sign Out</div></a></nav></div></div><a data-w-id="6ab03a1e-944e-9291-1968-b70fe5f11630" href="#" class="site-header__navigation-open">Menu</a></div><div class="site-header__navigation site-header__navigation-not-auth"><div class="site-header__navigation-wrapper"><a data-w-id="6ab03a1e-944e-9291-1968-b70fe5f11634" href="#" class="site-header__navigation-close w-inline-block"><img src="https://cdn.prod.website-files.com/605236bb767e9a5bb229c63c/60908306c5938d99543d2b58_close.svg" loading="lazy" alt=""/></a><a href="https://www.semanticscholar.org/sign-in" class="site-header__navigation button button--secondary w-button">Sign In</a><a href="https://www.semanticscholar.org/sign-in" class="site-header__navigation button w-button">Create Free Account</a></div><a data-w-id="6ab03a1e-944e-9291-1968-b70fe5f11662" href="#" class="site-header__navigation-open">Menu</a></div></div></header><div class="main"><section class="blade"><div class="blade__grid blade__grid--2-1"><div id="w-node-_6bfd2f91-565e-b27f-a71c-d256cfbdbc69-287a8923" class="blade__content"><h1>Semantic Scholar API</h1><p class="margin-bottom--none margin-top--sm">Last updated: May 17, 2023</p><p class="p__intro p__intro--header margin-top--none">Semantic Scholar™ API License Agreement</p><p class="p__intro">This API License Agreement (“<strong>Agreement</strong>”) is a legal agreement between you as an individual and your business, organization, academic institution, or entity (together, “<strong>Licensee</strong>” or “<strong>you</strong>”) and The Allen Institute for Artificial Intelligence (“<strong>AI2</strong>” or “<strong>us</strong>”). This Agreement governs your use of the API available at <a href="http://www.semanticscholar.org/product/api">www.semanticscholar.org/product/api</a> and other software application tools (collectively, “<strong>API</strong>”) that AI2 provides or makes available in connection with Semantic Scholar™ and related programs, products, or services (collectively, “<strong>S2</strong>”).</p></div><img src="https://cdn.prod.website-files.com/605236bb767e9a5bb229c63c/624235ea65058666ddc08d70_S2AG.svg" loading="lazy" id="w-node-_179452f3-5b09-4dcd-9f02-2840ac3170d7-287a8923" alt="Logo for Semantic Scholar Academic Graph API"/></div></section><section class="blade blade--white blade--collapsed"><div class="blade__content"><div id="w-node-da468da1-4249-d2be-baa0-fc6155b5cd4c-287a8923" class="blade__grid blade__grid--full"><p class="p__intro"> If you access, download, or use the API, you hereby accept and agree and bind your organization to this Agreement and consent to AI2’s <a href="https://allenai.org/privacy-policy">Privacy Policy</a>. You further agree to comply with the <a href="https://allenai.org/business-code-of-conduct">AI2 Business Partner Code of Conduct</a>. You represent and warrant that you have the full right, power, and authority to consent to and enter into this Agreement.<br/><br/>If you do not agree, you may not access or use the API, or otherwise discontinue all use of the API as your sole and exclusive remedy. If there is a separate agreement regarding your use of any Applications signed by authorized representatives of both AI2 and Licensee (“<strong>Related Agreement</strong>”), such terms will also govern and supplement this Agreement.<br/><br/>AI2 may modify or amend this Agreement at any time and will provide notice of any such changes by updating the “last updated” date on this page. Your continued use of the Applications after any such changes will constitute your acceptance and agreement to the updated terms. </p></div></div></section><section class="blade"><div class="blade__content"><div class="blade__grid blade__grid--full"><ol role="list"><li><p><strong class="bold-underlined">API License</strong>. AI2 grants to you a limited, non-exclusive, non-transferable, non-sublicensable and terminable license to use the API solely in operation with compatible third-party platforms and software (“<strong>Third-Party Products</strong>”) to access and display the data, datasets, content, and materials that AI2 makes available to S2 users on <a href="http://www.semanticscholar.org">www.semanticscholar.org</a> (collectively, “<strong>S2 Data</strong>”) in accordance with the API documentation and this Agreement.</p><ol role="list" class="list--alpha"><li>API Key: If Licensee is provided a unique identifier to authenticate the API (“<strong>API Key</strong>”), you will not disclose or provide the API Key to anyone else other than to the employees, contractors, and agents authorized by Licensee to use the API for its organization (“<strong>Authorized Users</strong>”). If you would like to use the API for any other purpose than as expressly permitted herein, please submit a request using the contact form at <a href="https://www.semanticscholar.org/product/api">https://www.semanticscholar.org/product/api</a>.</li><li>Third-Party Products: All Third-Party Products are separately governed by the third party’s terms and conditions (“<strong>Third Party Terms</strong>”). Licensee is solely responsible for complying with Third Party Terms and verifying that use of the API with any Third-Party Products does not violate or conflict with the Third Party Terms or Licensee’s obligations herein. AI2 will have no liability for any Third-Party Products and will not be responsible for addressing any technical or other issues arising from Licensee’s use of any Third-Party Products. </li></ol></li><li><strong class="bold-underlined">S2 Data</strong>. Licensee’s use of S2 Data accessed via the API are separately governed by the licenses that accompany such S2 Data, such as <a href="https://creativecommons.org/licenses/by-nc/4.0/legalcode">CC BY-NC</a> or <a href="https://opendatacommons.org/licenses/by/1-0/">ODC-BY</a> (“<strong>S2 Data Licenses</strong>”). Further, S2 Data includes third party content and materials, such as open access works from publicly available sources, works under a public use license (e.g., Creative Commons), and works licensed by AI2 from others (collectively, “<strong>Third Party Content</strong>”). In addition to the S2 Data Licenses, any underlying Third Party Content may be subject to separate license terms by the respective third party owner. Licensee agrees to use S2 Data in compliance with the S2 Data Licenses and the licenses that govern any Third Party Content. </li><li><p><strong class="bold-underlined">Licensee Data</strong>. AI2 will use the data and information that Licensee provides and transmits to call or use the API (“Licensee Data”) for the purpose of providing and improving the API, S2 Data, and S2. Licensee will own its Licensee Data.</p><ol role="list" class="list--alpha"><li><strong>Aggregated Statistics</strong>. AI2 may collect information about Licensee and Authorized Users in connection with the use of the API, including without limitation, user visit, session, impression, click-through, or click-stream data, and any statistical or other analysis, information or data based on or derived from the foregoing (“<strong>Usage Data</strong>”). AI2 may monitor Licensee&#x27;s use of the API, and compile Usage Data in an aggregate and anonymized manner, such as for statistical and performance information related to the provision and operation of the API (“<strong>Aggregated Statistics</strong>”). Licensee agrees that AI2 may use Aggregated Statistics in any manner and make them publicly available.</li></ol></li><li><strong class="bold-underlined">Attribution</strong>. Licensee will include an attribution to “Semantic Scholar” on its website or in any published materials for contributions from S2 through Licensee’s use of the API and/or S2 Data. For scientific publications prepared by Licensee using the API to produce results, Licensee will cite to <a href="https://www.semanticscholar.org/paper/The-Semantic-Scholar-Open-Data-Platform-Kinney-Anastasiades/cb92a7f9d9dbcf9145e32fdfa0e70e2a6b828eb1">The Semantic Scholar Open Data Platform</a>. If Licensee uses the SEMANTIC SCHOLAR trademark and logo (“<strong>S2 Marks</strong>”) on any public displays of S2 Data, all such use will be in accordance with AI2’s branding requirements. Subject to the foregoing, AI2 hereby grants to Licensee a limited, non-exclusive, non-transferable, non-sublicensable and terminable license to use the S2 Marks solely on public displays of S2 Data via Licensee’s use of the API. Licensee will comply with any other written instructions provided by AI2 and will promptly correct or take down any use of S2 Marks upon AI2’s request. All goodwill arising from Licensee’s use of S2 Marks will inure solely to AI2’s benefit. This Agreement does not grant Licensee any right or license to use any other trade names or trademarks of AI2 or its affiliated entities without prior written approval by an authorized representative of AI2.</li><li><p><strong class="bold-underlined">API Features.</strong> AI2 will use commercially reasonable efforts to make the API and S2 Data available. Unless otherwise expressly set forth in a Related Agreement, Licensee’s use of the API is “at will” and may be terminated by AI2 any time for any reason in AI2’s sole discretion without notice or liability. Any feature or functionality of the API is subject to change, and AI2 may add, remove, change, suspend, discontinue, or make any updates, modifications, enhancements, bug fixes, patches, or other error corrections to the API in its sole discretion.</p><ol role="list" class="list--alpha"><li><strong>Rate Limits.</strong> You will not attempt to exceed or circumvent limitations on access, calls, and use of the API (&quot;<strong>Rate Limits</strong>&quot;). If you exceed the Rate Limits or AI2 reasonably believes that you have attempted to circumvent Rate Limits or any technical controls implemented to limit use of the API, then AI2 may temporarily suspend or permanently disable your use of the API.</li><li><strong>Suspension.</strong> AI2 may monitor your use of the API to improve the service and to ensure your compliance with this Agreement. AI2 may limit, disable, or suspend Licensee&#x27;s and any Authorized User&#x27;s access or use of the API if AI2 reasonably believes Licensee or any Authorized User has breached any provision of this Agreement. In addition, AI2 may take any action necessary to investigate, mitigate or address any suspected or actual security threats, fraud, illegal activities, and excessive bandwidth usage, in which AI2 may throttle use until consumption is reduced.  AI2 will use commercially reasonable efforts to provide notice of any suspension and resume access as soon as the cause of the suspension event has been cured. </li><li><strong>End of Life. </strong> If any API feature or functionality will no longer be compatible, available for download, or supported, AI2 will provide any such information at <a href="http://www.semanticscholar.org/product/api">www.semanticscholar.org/product/api</a>. If AI2 discontinues or sunsets the API entirely, AI2 will either provide an alternate application with comparable functionality or provide at least sixty (60) days’ notice of its termination.</li><li><strong>Support.</strong> If you encounter any bugs, errors, or technical issues with the API, please contact <a href="mailto:feedback@semanticscholar.org">feedback@semanticscholar.org</a>. AI2 will determine whether to address or resolve any reported issues in its sole discretion.  </li></ol></li><li><p><strong class="bold-underlined">Use Restrictions.</strong> Licensee is solely responsible for all acts and omissions by Authorized Users. Any breach of this Agreement by an Authorized User will be deemed as a breach by Licensee. Except as otherwise expressly set forth in this Agreement or Related Agreement, Licensee will not (and will not attempt, assist, or enable others to):</p><ol role="list" class="list--alpha"><li>repackage, sell, rent, lease, lend, distribute, or sublicense the API;</li><li>use the API and/or S2 Data in violation of applicable laws;</li><li>infringe, misappropriate or violate the rights of third parties;</li><li>remove any copyright, trademark or other legal notices that accompany the API and S2 Data;</li><li>use the API in any manner that could potentially undermine the security of S2, the API, and S2 Data accessed, stored, or transmitted through the API;</li><li>use the API in a way that exceeds reasonable request volume, constitutes abusive usage, or that is otherwise inconsistent with the Documentation;</li><li>interfere with, contravene, or disrupt AI2 servers or networks connected to the API;</li><li>transmit any harmful or malicious software, viruses, worms, defects, or Trojan horses;</li><li>copy, adapt, reformat, reverse-engineer, disassemble, decompile, or otherwise modify the API or S2, except to the extent such restrictions are prohibited by law; and </li><li>utilize the API to spam third parties, including to send altered, deceptive, or false source-identifying information, “spoofing” or “phishing” attempts, or any auto-responder type use in connection with unsolicited communications or advertising.</li></ol></li><li><strong class="bold-underlined">Intellectual Property Rights</strong>. AI2 and its licensors own and will retain all right, title, and interest in and to S2, including all platforms, software, source code, algorithms, programs, websites, databases, modifications, and derivative works thereof, S2 Data, Usage Data, and Aggregated Statistics (but excluding any Licensee Data therein), together with all copyright, trademark, patent, and other proprietary and intellectual property rights thereof (collectively, “<strong>Company IP</strong>”). Except for the license granted in Section 1 or as expressly granted in a Related Agreement, this Agreement does not transfer, assign, or convey to Licensee any rights or exclusivity to any Company IP. AI2 reserves all rights not expressly granted in this Agreement.</li><li><strong class="bold-underlined">Confidentiality</strong>. “<strong>Confidential Information</strong>” means any non-public information about a party’s products, services, or business in any form or medium that a reasonable person should understand to be confidential under the circumstances of disclosure (collectively, &quot;<strong>Confidential Information</strong>&quot;). Confidential Information does not include information that at the time of disclosure is: (a) in the public domain; (b) known to the receiving party at the time of disclosure without an obligation of confidentiality; (c) rightfully obtained by the receiving party on a non-confidential basis from a third party; or (d) independently developed by the receiving party. Licensee will not provide AI2 with any Confidential Information belonging to a third party unless Licensee first informs AI2 in writing and both AI2 and the third-party owner consent to Licensee’s disclosure and use. <br/>The receiving party will not disclose the disclosing party’s Confidential Information to any person or entity, except to the receiving party’s employees or contractors who have a need to know the Confidential Information and who are bound by confidentiality obligations no less restrictive than the terms herein. The receiving party will safeguard the disclosing party’s Confidential Information in the same manner as it safeguards its own Confidential Information of a similar nature, but no less than a reasonable standard of care. The receiving party may disclose the disclosing party’s Confidential Information to the limited extent required to (i) comply with a court order, government authority, or as necessary to comply with applicable law, provided that the receiving party will first provide written notice and reasonably cooperate with the disclosing party to limit the scope of disclosure, or (ii) to establish its rights under this Agreement, including to make required court filings. <br/>Upon termination of this Agreement, the receiving party will promptly return or destroy all copies and materials containing the disclosing party’s Confidential Information. The receiving party will certify in writing to the disclosing party that such Confidential Information has been destroyed upon the disclosing party’s request. Upon termination of this Agreement, the parties’ confidentiality obligations herein will survive for a period of five (5) years, provided that anything that constitutes a trade secret under applicable laws will survive in perpetuity until it is no longer deemed a trade secret under applicable laws.</li><li><strong class="bold-underlined">Feedback; Publicity.</strong> Any solicited or unsolicited feedback, suggestions, ideas, comments, improvements, or other input about the API (collectively, “<strong>Feedback</strong>”) that Licensee or Authorized Users provide to AI2 is voluntary. AI2 may use Feedback for any purpose whatsoever, without notice, restrictions, confidentiality obligations or liabilities of any kind. AI2 may reference your name and organization in marketing materials in connection with the API and S2.</li><li><strong class="bold-underlined">Disclaimer.</strong> THE API IS MADE AVAILABLE TO YOU ON AN “AS IS,” “WITH ALL FAULTS,” AND “AS AVAILABLE” BASIS. AS SUCH, YOUR USE OF THE API IS SOLELY AT YOUR OWN RISK AND DISCRETION. AI2 MAKES NO CLAIMS OR PROMISES ABOUT THE QUALITY, ACCURACY, COMPLETENESS OR RELIABILITY OF THE API, DOCUMENTATION, OR S2 DATA, NOR THAT THEY WILL ACHIEVE ANY INTENDED RESULT, BE COMPATIBLE WITH OTHER SOFTWARE (INCLUDING THIRD-PARTY PRODUCTS), OR BE ERROR FREE. AI2, ITS AFFILIATED ENTITIES AND LICENSORS ARE NOT LIABLE TO YOU FOR ANY LOSS OR DAMAGE THAT MIGHT ARISE, FOR EXAMPLE, FROM THE INOPERABILITY OR UNAVAILABILITY OF THE API OR S2 DATA. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, AI2 HEREBY DISCLAIMS ALL EXPRESS AND IMPLIED WARRANTIES, INCLUDING WITHOUT LIMITATION, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, AND NON-INFRINGEMENT, AND ALL WARRANTIES ARISING FROM COURSE OF DEALING, USAGE, OR TRADE PRACTICE.</li><li><strong class="bold-underlined">Indemnification.</strong> Licensee will defend (at AI2’s option), indemnify and hold harmless AI2, its affiliated entities, and their owners, directors, officers, employees, agents and representatives from and against any third party claims, actions, demands, costs, damages, liabilities and legal fees incurred by AI2 arising from: (a) Licensee’s breach of any representation, warranty or obligation under this Agreement, (b) the negligence or willful misconduct of Licensee or any Authorized User, (c) use of Company IP in any manner not expressly authorized under this Agreement, including in combination with third party data, software, hardware and technology not provided by AI2 or approved in writing by an authorized representative of AI2, (d) AI2’s use of Licensee Data in accordance with this Agreement, and/or (e) Licensee’s violation of applicable laws. Licensee may not settle any claim against AI2 unless AI2 consents to such settlement, and further provided that AI2 will have the right, at its option, to defend itself against any such claim or to participate in the defense thereof by counsel of its own choice.</li><li><strong class="bold-underlined">Limitation of Liability.</strong> TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, AND EXCEPT AS OTHERWISE EXPRESSLY SET FORTH IN A RELATED AGREEMENT, IN NO EVENT WILL AI2, ITS AFFILIATES, LICENSORS, OR THEIR RESPECTIVE OFFICERS, DIRECTORS, EMPLOYEES, CONTRACTORS OR AGENTS BE LIABLE TO LICENSEE OR TO ANY THIRD PARTY FOR ANY INDIRECT, SPECIAL, INCIDENTAL, CONSEQUENTIAL OR EXEMPLARY DAMAGES OR FOR THE COST OF PROCURING SUBSTITUTE PRODUCTS OR SERVICES ARISING OUT OF OR IN ANY WAY RELATING TO OR IN CONNECTION WITH THIS AGREEMENT EVEN IF ADVISED OF THE POSSIBILITY THEREOF AND REGARDLESS OF THE LEGAL OR EQUITABLE THEORY (CONTRACT, TORT OR OTHERWISE) UPON WHICH THE CLAIM IS BASED. IN NO EVENT WILL AI2’S AGGREGATE LIABILITY FOR DIRECT DAMAGES, FROM ALL CAUSES OF ACTION AND UNDER ALL THEORIES OF LIABILITY, EXCEED ONE HUNDRED US DOLLARS ($100).</li><li><strong class="bold-underlined">Termination.</strong> This Agreement will remain in effect until either Licensee or AI2 terminates Licensee’s use of the API. Upon termination, all licenses granted herein will immediately terminate and Licensee will cease all use of the API. In the event of any termination, all terms and provisions reasonably interpreted to survive termination will survive, including without limitation: liabilities accrued before the termination date, and the provisions of this Agreement concerning proprietary rights, indemnity, disclaimers of warranty, limitation of liability, and governing law.</li><li><strong class="bold-underlined">Governing Law.</strong> This Agreement will be governed by the laws of the State of Washington, without regard to its choice of law or conflict of laws principles. Any disputes under this Agreement will be resolved in a court of general jurisdiction in King County, Washington. You hereby expressly agree to submit to the exclusive personal jurisdiction of this jurisdiction for the purpose of resolving any dispute related to this Agreement.</li><li><strong class="bold-underlined">Export Control; Compliance.</strong> Licensee and Authorized Users will comply with all applicable laws for any use of the API and S2 Data, including but not limited to, local, state, and federal laws and regulations of the United States as well as the laws of the country where Licensee and Authorized Users are located. The API utilizes software and technology that may be subject to US export control laws, including the US Export Administration Act and its associated regulations. Licensee and Authorized Users will not directly or indirectly export, re-export, or release or make accessible the API to or from any jurisdiction prohibited by applicable laws and will obtain any required export licenses or government approvals for use outside the US.</li><li><strong class="bold-underlined">US Government Licensee.</strong> Notwithstanding anything to the contrary contained in this Agreement, if Licensee is an agency, instrumentality, or department of the federal government of the United States, then this Agreement will be governed exclusively in accordance with US federal laws of in an appropriate venue. Further, and notwithstanding anything to the contrary in this Agreement, terms that include indemnifications and warranties, acceptances of and/or limitations of or releases of liabilities, and terms concerning claims, demands, complaints and disputes will be subject to and limited by the Contract Disputes Act (41 U.S.C. §§601-613), the Tucker Act (28U.S.C. § 1346(a) and § 1491), or the Federal Tort Claims Act (28 U.S.C. §§ 346(b), 2401-2402, 2671-2672, 2674-2680) or other applicable governing authority. Specific legal remedies or limitations thereof, or limitations of or acceptance of liabilities cited herein are subject to those traditionally available in lawsuits against the Federal government and/or are specifically permitted by Federal law. Agreements are renewed only upon acceptance. Any additional terms or conditions, future modifications to such or documents incorporated by reference, attached as exhibits or other attachments now or at any future date are subject to this clause. No funds are obligated by this Agreement and any fines, penalties or fees will not apply. All confidentiality provisions or use of information provisions contained herein are subject to the provisions of Federal law, including the Freedom of information Act, the Whistleblower Protection Act (hereby incorporated herein) and other pertinent Federal laws and regulations governing confidential or proprietary or otherwise protected information.</li><li><strong class="bold-underlined">Miscellaneous.</strong> Licensee may not transfer or assign this Agreement, in whole or in part, without AI2’s prior written consent issued by an authorized representative of AI2. If for any reason a court of competent jurisdiction finds any term or provision of this Agreement invalid or unenforceable, it will be enforced to the maximum extent permissible, and all other terms and provisions of this Agreement will remain in full force and effect. This Agreement, together with any Related Agreements, Documentation and other AI2 policies, guides and terms incorporated by reference herein, constitute the entire agreement of the parties with respect to the subject matter and supersedes all prior and contemporaneous understandings and agreements, both written and oral. To the extent of any conflict or inconsistency in the terms, the following order of precedence governs: (i) Related Agreement, (ii) this Agreement, (iii) Documentation, and (v) all other AI2 policies, guides, documents and terms incorporated herein by reference, including without limitation <a href="https://allenai.org/terms.html">AI2’s Website Terms and Conditions</a>.</li></ol><p class="p__intro"><strong>Contact.</strong> If you have any questions about the API, please contact <a href="mailto:s2-api@semanticscholar.org">s2-api@semanticscholar.org</a>. <br/>If you have any questions about this Agreement, please contact <a href="mailto:legal@allenai.org">legal@allenai.org</a>.</p></div></div></section></div><div id="form" class="blade blade--dark hidden"><div class="blade__grid blade__grid--full"><div class="blade__content"><div class="card card--m card--centered"><div class="w-embed w-script"><script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/embed/v2.js"></script> <script> hbspt.forms.create({ region: "na1", portalId: "5910970", formId: "718ee73f-e96c-4906-8fbb-6228a15b4ac9" }); </script></div></div></div></div></div><div class="cta__blade"><h4 class="cta__header">Join the Semantic Scholar API Community Slack Channel</h4><a href="https://join.slack.com/t/semanticschol-xyj3882/shared_invite/zt-2e98pwubp-vzoxaTgITyurw~~WK1OntQ" target="_blank" class="button button--hero w-button">Get Started</a></div><div class="post__list"><h4 class="post__list-heading">Latest News &amp; Updates</h4><div class="w-dyn-list"><div role="list" class="post__grid w-dyn-items"><div role="listitem" class="post w-dyn-item"><a href="https://blog.allenai.org/case-study-iterative-design-for-skimming-support-5563dbe0899e" target="_blank" class="post__link w-inline-block"><div class="post__image-wrapper"><img src="https://cdn.prod.website-files.com/605ba9b55a4a92803e45a32b/652055861194e6fc6bb5983a_skimming_2.0.png" loading="lazy" alt="Case Study: Iterative Design for Skimming Support" sizes="(max-width: 479px) 85vw, (max-width: 767px) 84vw, (max-width: 991px) 87vw, 24vw" srcset="https://cdn.prod.website-files.com/605ba9b55a4a92803e45a32b/652055861194e6fc6bb5983a_skimming_2.0-p-500.png 500w, https://cdn.prod.website-files.com/605ba9b55a4a92803e45a32b/652055861194e6fc6bb5983a_skimming_2.0-p-800.png 800w, https://cdn.prod.website-files.com/605ba9b55a4a92803e45a32b/652055861194e6fc6bb5983a_skimming_2.0-p-1080.png 1080w, https://cdn.prod.website-files.com/605ba9b55a4a92803e45a32b/652055861194e6fc6bb5983a_skimming_2.0-p-1600.png 1600w, https://cdn.prod.website-files.com/605ba9b55a4a92803e45a32b/652055861194e6fc6bb5983a_skimming_2.0-p-2000.png 2000w, https://cdn.prod.website-files.com/605ba9b55a4a92803e45a32b/652055861194e6fc6bb5983a_skimming_2.0-p-2600.png 2600w, https://cdn.prod.website-files.com/605ba9b55a4a92803e45a32b/652055861194e6fc6bb5983a_skimming_2.0-p-3200.png 3200w, https://cdn.prod.website-files.com/605ba9b55a4a92803e45a32b/652055861194e6fc6bb5983a_skimming_2.0.png 5834w" class="post__image"/></div><h4 class="post__title">Case Study: Iterative Design for Skimming Support</h4><div class="post__meta"><div class="post__date">Oct 6, 2023</div><div class="post__read-time">7 min read</div></div><p class="post__intro">How might we help researchers quickly assess the relevance of scientific literature? Take a closer look at Skimming, Semantic Reader’s latest AI feature, and the collaborative design process behind it.</p></a><div class="post__author">Cassidy Trier</div></div><div role="listitem" class="post w-dyn-item"><a href="https://blog.allenai.org/behind-the-scenes-of-semantic-scholars-new-author-influence-design-d7e007ba6a84" target="_blank" class="post__link w-inline-block"><div class="post__image-wrapper"><img src="https://cdn.prod.website-files.com/605ba9b55a4a92803e45a32b/64de863a294e5ef80fee0187_Screen%20Shot%202023-02-06%20at%2011.36.31%20AM.png" loading="lazy" alt="Behind the Scenes of Semantic Scholar’s New Author Influence Design" sizes="(max-width: 479px) 85vw, (max-width: 767px) 84vw, (max-width: 991px) 87vw, 24vw" srcset="https://cdn.prod.website-files.com/605ba9b55a4a92803e45a32b/64de863a294e5ef80fee0187_Screen%20Shot%202023-02-06%20at%2011.36.31%20AM-p-500.png 500w, https://cdn.prod.website-files.com/605ba9b55a4a92803e45a32b/64de863a294e5ef80fee0187_Screen%20Shot%202023-02-06%20at%2011.36.31%20AM-p-800.png 800w, https://cdn.prod.website-files.com/605ba9b55a4a92803e45a32b/64de863a294e5ef80fee0187_Screen%20Shot%202023-02-06%20at%2011.36.31%20AM-p-1080.png 1080w, https://cdn.prod.website-files.com/605ba9b55a4a92803e45a32b/64de863a294e5ef80fee0187_Screen%20Shot%202023-02-06%20at%2011.36.31%20AM-p-1600.png 1600w, https://cdn.prod.website-files.com/605ba9b55a4a92803e45a32b/64de863a294e5ef80fee0187_Screen%20Shot%202023-02-06%20at%2011.36.31%20AM-p-2000.png 2000w, https://cdn.prod.website-files.com/605ba9b55a4a92803e45a32b/64de863a294e5ef80fee0187_Screen%20Shot%202023-02-06%20at%2011.36.31%20AM.png 2150w" class="post__image"/></div><h4 class="post__title">Behind the Scenes of Semantic Scholar’s New Author Influence Design</h4><div class="post__meta"><div class="post__date">Aug 17, 2023</div><div class="post__read-time">5 min read</div></div><p class="post__intro">We released a new version of Author Influence interface to help scholars better discover other scholars in their fields. Here&#x27;s how we identified user insights and made those design choices.</p></a><div class="post__author">Cassidy Trier, Evie Cheng, Ashley Lee</div></div><div role="listitem" class="post w-dyn-item"><a href="https://www.nature.com/articles/d41586-023-01907-z" target="_blank" class="post__link w-inline-block"><div class="post__image-wrapper"><img src="https://cdn.prod.website-files.com/605ba9b55a4a92803e45a32b/64d15e16ad0f9fd89058273b_nature.webp" loading="lazy" alt="Artificial-intelligence search engines wrangle academic literature" sizes="(max-width: 479px) 85vw, (max-width: 767px) 84vw, (max-width: 991px) 87vw, 24vw" srcset="https://cdn.prod.website-files.com/605ba9b55a4a92803e45a32b/64d15e16ad0f9fd89058273b_nature-p-500.webp 500w, https://cdn.prod.website-files.com/605ba9b55a4a92803e45a32b/64d15e16ad0f9fd89058273b_nature-p-800.webp 800w, https://cdn.prod.website-files.com/605ba9b55a4a92803e45a32b/64d15e16ad0f9fd89058273b_nature-p-1080.webp 1080w, https://cdn.prod.website-files.com/605ba9b55a4a92803e45a32b/64d15e16ad0f9fd89058273b_nature.webp 1248w" class="post__image"/></div><h4 class="post__title">Artificial-intelligence search engines wrangle academic literature</h4><div class="post__meta"><div class="post__date">Aug 7, 2023</div><div class="post__read-time">5 min read</div></div><p class="post__intro">Nature had a chat with Dan Weld, Chief Scientist at Semantic Scholar, to discuss how search engines are helping scientists explore and innovate by making it easier to draw connections from a massive collection of scientific literature.</p></a><div class="post__author">Amanda Heidt</div></div></div></div></div><div class="newsletter"><div class="newsletter__container"><div class="newsletter-layout"><h5 class="newsletter-title">Stay Connected With Semantic Scholar</h5><div class="newsletter-embed w-embed w-script"><!--[if lte IE 8]> <script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2-legacy.js"></script> <![endif]--> <script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2.js"></script> <script> hbspt.forms.create({ region: "na1", portalId: "5910970", formId: "b8dd2b25-f81d-4cba-a9b6-044e249b7a07" }); </script></div></div></div></div><footer class="site-footer"><div class="site-footer__top"><div class="site-footer__top-container"><div class="site-footer__about"><h6 class="site-footer site-footer__title">What Is Semantic Scholar?</h6><p class="site-footer site-footer__text">Semantic Scholar is a free, AI-powered research tool for scientific literature, based at Ai2.</p><a href="/about" class="site-footer site-footer__link">Learn More</a></div><div class="site-footer__navigation"><ul role="list" class="site-footer site-footer__list w-list-unstyled"><li><h6 class="site-footer site-footer__title">About</h6></li><li><a href="/about" class="site-footer site-footer__link">About Us<br/></a></li><li><a href="/about/team" class="site-footer site-footer__link">Meet the Team<br/></a></li><li><a href="/about/publishers" class="site-footer site-footer__link">Publishers</a></li><li><a href="https://medium.com/ai2-blog/semantic-scholar/home" target="_blank" class="site-footer site-footer__link">Blog</a></li><li><a href="https://allenai.org/careers?team=semantic+scholar#current-openings" target="_blank" class="site-footer site-footer__link">Ai2 Careers</a></li></ul><ul role="list" class="site-footer site-footer__list w-list-unstyled"><li><h6 class="site-footer site-footer__title">Product</h6></li><li><a href="/product" class="site-footer site-footer__link">Product Overview</a></li><li><a href="/product/semantic-reader" class="site-footer site-footer__link">Semantic Reader</a></li><li><a href="/product/scholars-hub" class="site-footer site-footer__link">Scholar&#x27;s Hub</a></li><li><a href="/product/beta-program" class="site-footer site-footer__link">Beta Program</a></li><li><a href="/product/release-notes" class="site-footer site-footer__link">Release Notes</a></li></ul><ul role="list" class="site-footer site-footer__list w-list-unstyled"><li><h6 class="site-footer site-footer__title">API</h6></li><li><a href="/product/api" class="site-footer site-footer__link">API Overview</a></li><li><a href="/product/api/tutorial" class="site-footer site-footer__link">API Tutorials</a></li><li><a href="https://api.semanticscholar.org/api-docs/" class="site-footer site-footer__link">API Documentation</a></li><li><a href="/product/api/gallery" class="site-footer site-footer__link">API Gallery</a></li></ul><ul id="w-node-_80db44ed-17f7-2024-a450-ff6046e68512-46e684e3" role="list" class="site-footer site-footer__list w-list-unstyled"><li><h6 class="site-footer site-footer__title">Research</h6></li><li><a href="https://allenai.org/papers?tag=Semantic%20Scholar" class="site-footer site-footer__link">Publications</a></li><li><a href="/research/research-team" class="site-footer site-footer__link">Researchers</a></li><li><a href="/research/careers" class="site-footer site-footer__link">Research Careers</a></li><li><a href="/research/prototypes" class="site-footer site-footer__link">Prototypes</a></li><li><a href="/resources" class="site-footer site-footer__link">Resources</a></li></ul><ul id="w-node-a1cfe8f5-f656-0f8f-b57f-f2c91de1b718-46e684e3" role="list" class="site-footer site-footer__list w-list-unstyled"><li><h6 class="site-footer site-footer__title">Help</h6></li><li><a href="https://www.semanticscholar.org/faq" class="site-footer site-footer__link">FAQ</a></li><li><a href="/about/librarians" class="site-footer site-footer__link">Librarians</a></li><li><a href="/product/tutorials" class="site-footer site-footer__link">Tutorials</a></li><li><a href="#" data-w-id="2cf6e605-c551-b5e7-40a2-70dbdd9705a1" class="site-footer site-footer__link site-footer__contact-trigger">Contact</a></li></ul></div></div></div><div class="site-footer__bottom"><div class="site-footer__bottom-container"><p class="site-footer__legal">Proudly built by <a href="https://allenai.org/" target="_blank" class="site-footer site-footer__link">Ai2</a> with the help of our Collaborators<br/><a href="https://allenai.org/terms.html" target="_blank" class="site-footer site-footer__link">Terms of Service</a>  •  <a href="https://allenai.org/privacy-policy.html" target="_blank" class="site-footer site-footer__link">Privacy Policy</a>  •  <a href="/product/api/license" aria-current="page" class="site-footer site-footer__link w--current">API License Agreement</a></p><img src="https://cdn.prod.website-files.com/605236bb767e9a5bb229c63c/66a167e36965869758dd87f8_Ai2_logo_offwhite_RGB.png" loading="lazy" sizes="94.5703125px" srcset="https://cdn.prod.website-files.com/605236bb767e9a5bb229c63c/66a167e36965869758dd87f8_Ai2_logo_offwhite_RGB-p-500.png 500w, https://cdn.prod.website-files.com/605236bb767e9a5bb229c63c/66a167e36965869758dd87f8_Ai2_logo_offwhite_RGB-p-800.png 800w, https://cdn.prod.website-files.com/605236bb767e9a5bb229c63c/66a167e36965869758dd87f8_Ai2_logo_offwhite_RGB-p-1080.png 1080w, https://cdn.prod.website-files.com/605236bb767e9a5bb229c63c/66a167e36965869758dd87f8_Ai2_logo_offwhite_RGB-p-1600.png 1600w, https://cdn.prod.website-files.com/605236bb767e9a5bb229c63c/66a167e36965869758dd87f8_Ai2_logo_offwhite_RGB-p-2000.png 2000w, https://cdn.prod.website-files.com/605236bb767e9a5bb229c63c/66a167e36965869758dd87f8_Ai2_logo_offwhite_RGB.png 2771w" alt="" class="site-footer__logo"/></div></div><div class="contact-modal"><div class="contact-modal__container"><a data-w-id="094e8a79-f899-529e-250c-5240927de9d7" href="#" class="contact-modal__close w-inline-block"><img src="https://cdn.prod.website-files.com/605236bb767e9a5bb229c63c/61e9b4e329b9d877dee723c3_close-light.svg" loading="lazy" alt="Close" class="contact-modal__close-jewel"/></a><h4 class="margin-top--none">Contact Us</h4><div class="contact-modal__form-wrapper w-form"><form id="freshdesk-contact-form" name="wf-form-Contact" data-name="Contact" action="https://www.semanticscholar.org/api/1/feedback" method="post" class="contact-modal__form" data-wf-page-id="6584745360a4872a287a8923" data-wf-element-id="7663d2bf-5ed9-4856-37e4-a4966bfbf84f"><p class="margin-bottom--sm">Please visit our <a href="https://www.semanticscholar.org/faq">FAQ</a> to find helpful information before submitting your question.<br/></p><label for="contact-form-name">Your name</label><input class="w-input" maxlength="256" name="name" data-name="name" placeholder="" type="text" id="contact-form-name"/><label for="contact-form-email-2">Your email</label><input class="w-input" maxlength="256" name="email" data-name="email" placeholder="" type="email" id="contact-form-email" required=""/><label for="contact-form-subject">Subject<br/></label><input class="w-input" maxlength="256" name="subject" data-name="subject" placeholder="" type="text" id="contact-form-subject" required=""/><label for="contact-form-topic">Topic<br/></label><select id="contact-form-topic" name="topic" data-name="topic" required="" class="select-field w-select"><option value="">Select A Topic</option><option value="Takedown Request">Remove A Paper</option><option value="Author Disambiguation">Merge Authors</option><option value="Other Problem">Other</option></select><label for="contact-form-feedback-2">Feedback<br/></label><textarea id="contact-form-feedback" name="feedback" maxlength="5000" data-name="feedback" placeholder="" required="" class="margin-bottom--sm w-input"></textarea><input type="submit" data-wait="Please wait..." class="button w-button" value="Contact Us"/></form><div class="contact-modal__form-success w-form-done"><div><strong>Thanks! </strong>Your feedback has been submitted.</div></div><div class="contact-modal__form-error w-form-fail"><div>Something went wrong while submitting the form, please try again.</div></div></div></div><div data-w-id="094e8a79-f899-529e-250c-5240927de9fe" class="contact-modal__overlay"></div></div></footer><script src="https://d3e54v103j8qbb.cloudfront.net/js/jquery-3.5.1.min.dc5e7f18c8.js?site=605236bb767e9a5bb229c63c" type="text/javascript" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script><script src="https://cdn.prod.website-files.com/605236bb767e9a5bb229c63c/js/semanticscholar.15d8b03cf.js" type="text/javascript"></script><script> $(document).ready(function() { // Contact Form $('.contact-modal__form').submit(function(e){ // Stops regular form submit e.preventDefault(); // Sets variables, encodes form into json var $this = $(this), $parent = $this.parent(), $success = $parent.find(".contact-modal__form-success"), $error = $parent.find(".contact-modal__form-error"), action = $this.attr('action'), submission = $this.serializeArray().reduce((memo, field) => ({...memo, [field.name]: field.value}), {}); // Record URL submission.url=window.location.href; // Submit $.ajax(action, { method: 'POST', contentType: 'application/json', data: JSON.stringify(submission), cache: false, dataType: 'json', crossDomain: true, processData: false }).always(function(e){ // Hides form, shows success $this.hide(); $success.show(); }); // just in case return false; }); // Listens for links to /about/contact and pops up contact form instead of redirecting. $('.main a[href$="about/contact"]').on('click', function(e){ e.preventDefault(); $('.contact-modal').show(); }); }); </script></body></html>

Pages: 1 2 3 4 5 6 7 8 9 10