<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: how to get company by company name or email in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/how-to-get-company-by-company-name-or-email/m-p/787334#M63519</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/560207"&gt;@YTamam&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;You should be able to use the companies search API endpoint to find a company record based on company name, something like this:&lt;BR /&gt;&lt;BR /&gt;https://api.hubapi.com/companies/v2/domains/{{COMPANY_DOMAIN}}/companies/search?name={{COMPANY_NAME}}&amp;amp;hapikey={{API_KEY}}&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Companies dont have an email address as a norm, so to find a company based on a contact's email address would probably require a multi-step approach:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Search contact based on email address&lt;/LI&gt;
&lt;LI&gt;Get name of primary associated company&lt;/LI&gt;
&lt;LI&gt;Search company based on name&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Hope this helps?&lt;/P&gt;</description>
    <pubDate>Thu, 27 Apr 2023 16:23:23 GMT</pubDate>
    <dc:creator>Phil_Vallender</dc:creator>
    <dc:date>2023-04-27T16:23:23Z</dc:date>
    <item>
      <title>how to get company by company name or email</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/how-to-get-company-by-company-name-or-email/m-p/787209#M63512</link>
      <description>&lt;P&gt;i need API to get company by name and/or email.&lt;/P&gt;&lt;P&gt;not with ID&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 12:18:50 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/how-to-get-company-by-company-name-or-email/m-p/787209#M63512</guid>
      <dc:creator>YTamam</dc:creator>
      <dc:date>2023-04-27T12:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to get company by company name or email</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/how-to-get-company-by-company-name-or-email/m-p/787334#M63519</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/560207"&gt;@YTamam&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;You should be able to use the companies search API endpoint to find a company record based on company name, something like this:&lt;BR /&gt;&lt;BR /&gt;https://api.hubapi.com/companies/v2/domains/{{COMPANY_DOMAIN}}/companies/search?name={{COMPANY_NAME}}&amp;amp;hapikey={{API_KEY}}&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Companies dont have an email address as a norm, so to find a company based on a contact's email address would probably require a multi-step approach:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Search contact based on email address&lt;/LI&gt;
&lt;LI&gt;Get name of primary associated company&lt;/LI&gt;
&lt;LI&gt;Search company based on name&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Hope this helps?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 16:23:23 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/how-to-get-company-by-company-name-or-email/m-p/787334#M63519</guid>
      <dc:creator>Phil_Vallender</dc:creator>
      <dc:date>2023-04-27T16:23:23Z</dc:date>
    </item>
  </channel>
</rss>

