<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.E-MailFormatvorlage20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Hi Morten,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US">thanks for the quick reply… that was exactly what I needed!<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US">Best wishes,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US">Jörg<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b>Von:</b> Hosted-Portals <hosted-portals-bounces@lists.gbif.org>
<b>Im Auftrag von </b>Morten Høfft<br>
<b>Gesendet:</b> Mittwoch, 24. März 2021 12:02<br>
<b>An:</b> Helpdesk, discussion and announcements for the GBIF hosted portals <hosted-portals@lists.gbif.org><br>
<b>Betreff:</b> Re: [Hosted-Portals] Number of datasets, organisations and images to be found in a hosted portal<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">Hi Jörg<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">Networks are a bit special as they cannot be searched for through normal dataset search.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">They have their own endpoint<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">dataset: <a href="https://api.gbif.org/v1/network/3aee7756-565e-4dc5-b22c-f997fbd7105c/constituents?limit=0">https://api.gbif.org/v1/network/3aee7756-565e-4dc5-b22c-f997fbd7105c/constituents?limit=0</a><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">publishers: <a href="https://api.gbif.org/v1/network/3aee7756-565e-4dc5-b22c-f997fbd7105c/organization?limit=0">https://api.gbif.org/v1/network/3aee7756-565e-4dc5-b22c-f997fbd7105c/organization?limit=0</a><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">See also <a href="https://www.gbif.org/developer/registry#networks"><span style="background:white">https://www.gbif.org/developer/registry#networks</span></a><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">Number of occurrences with images (not the same as number of images - that number isn't available)<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"><a href="http://api.gbif.org/v1/occurrence/search?mediaType=StillImage&networkKey=3aee7756-565e-4dc5-b22c-f997fbd7105c&limit=0">http://api.gbif.org/v1/occurrence/search?mediaType=StillImage&networkKey=3aee7756-565e-4dc5-b22c-f997fbd7105c&limit=0</a><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black;background:white">See also </span><span style="font-size:12.0pt;color:black"><a href="https://www.gbif.org/developer/occurrence#search">https://www.gbif.org/developer/occurrence#search</a><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">Remember to set the limit to zero - there is no reason to download the results to the user's browser when all we care about is the count.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">You can also see <a href="https://hp-colombian-biodiversity.gbif-staging.org/">https://hp-colombian-biodiversity.gbif-staging.org/</a> for inspiration and <a href="https://github.com/gbif/hp-colombian-biodiversity/blob/b147c9f7ca2cd8872e90f65420a62000bce55f41/_data/home.yml#L18" title="https://github.com/gbif/hp-colombian-biodiversity/blob/b147c9f7ca2cd8872e90f65420a62000bce55f41/_data/home.yml#L18">how
 to implement it</a>.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">Hope that helps<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">Best<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">Morten<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="98%" align="center">
</div>
<div id="divRplyFwdMsg">
<p class="MsoNormal"><b><span style="color:black">From:</span></b><span style="color:black"> Hosted-Portals <<a href="mailto:hosted-portals-bounces@lists.gbif.org">hosted-portals-bounces@lists.gbif.org</a>> on behalf of Holetschek, Jörg <<a href="mailto:J.Holetschek@bgbm.org">J.Holetschek@bgbm.org</a>><br>
<b>Sent:</b> Wednesday, March 24, 2021 11:50 AM<br>
<b>To:</b> <a href="mailto:hosted-portals@lists.gbif.org">hosted-portals@lists.gbif.org</a> <<a href="mailto:hosted-portals@lists.gbif.org">hosted-portals@lists.gbif.org</a>><br>
<b>Subject:</b> [Hosted-Portals] Number of datasets, organisations and images to be found in a hosted portal</span>
<o:p></o:p></p>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal">Dear all,<br>
<br>
for the entry page, I'm trying to create an overview of the data to be found in our portal (which is based on a network filter): number of occurrences, datasets, publishers and image, similar to the table you can see here:
<a href="https://hp-theme.gbif-staging.org/">https://hp-theme.gbif-staging.org/</a>.<br>
<br>
I managed to get the number of occurrences by using <a href="https://api.gbif.org/v1/occurrence/search?networkKey=3aee7756-565e-4dc5-b22c-f997fbd7105c">
https://api.gbif.org/v1/occurrence/search?networkKey=3aee7756-565e-4dc5-b22c-f997fbd7105c</a>, but I failed for the number of datasets/publishers. Apparently the search request for datasets and institutions doesn't support the "network" parameter. And I'm completely
 lost for the number of multimedia documents provided for the occurrences - is there any API call for that?<br>
<br>
Thanks and Cheers,<br>
Jörg<br>
<br>
<br>
<br>
_______________________________________________<br>
Hosted-Portals mailing list<br>
<a href="mailto:Hosted-Portals@lists.gbif.org">Hosted-Portals@lists.gbif.org</a><br>
<a href="https://lists.gbif.org/mailman/listinfo/hosted-portals">https://lists.gbif.org/mailman/listinfo/hosted-portals</a><o:p></o:p></p>
</div>
</div>
</div>
</body>
</html>