<?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: Rest API for splunkbase to get list of all apps and version details in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Is-there-Rest-API-for-splunkbase-to-get-list-of-all-apps-and/m-p/649758#M16768</link>
    <description>&lt;P data-unlink="true"&gt;The same script the increments the &lt;FONT face="courier new,courier"&gt;offset&lt;/FONT&gt; argument also can extract the UUID and send it the https://splunkbase.splunk.com/api/v1/app/&amp;lt;UUID&amp;gt;/release/ endpoint.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 09 Jul 2023 18:06:32 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2023-07-09T18:06:32Z</dc:date>
    <item>
      <title>Is there Rest API for splunkbase to get list of all apps and version details?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Is-there-Rest-API-for-splunkbase-to-get-list-of-all-apps-and/m-p/631828#M15464</link>
      <description>&lt;P&gt;Are there any APIs for Splunkbase, I want to get the list of all apps available in Splunkbase with the below-mentioned information.&lt;/P&gt;
&lt;P&gt;1. splunk app name&lt;/P&gt;
&lt;P&gt;2. splunk folder name&lt;/P&gt;
&lt;P&gt;3. app version&lt;/P&gt;
&lt;P&gt;4. compatibility (like the app is compatible with Splunk version 7/8/9)&lt;/P&gt;
&lt;P&gt;5. CIM compatibility&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 20:13:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Is-there-Rest-API-for-splunkbase-to-get-list-of-all-apps-and/m-p/631828#M15464</guid>
      <dc:creator>AnilPujar</dc:creator>
      <dc:date>2023-08-22T20:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API for splunkbase to get list of all apps and version details</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Is-there-Rest-API-for-splunkbase-to-get-list-of-all-apps-and/m-p/631854#M15471</link>
      <description>&lt;P&gt;Yes, there is an API for splunkbase.&amp;nbsp; See&amp;nbsp;&lt;A href="https://dev.splunk.com/enterprise/reference/splunkbase/" target="_blank"&gt;https://dev.splunk.com/enterprise/reference/splunkbase/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There is also an app that does what you seek.&amp;nbsp; See Analysis of Splunkbase Apps for Splunk (&lt;A href="https://splunkbase.splunk.com/app/2919" target="_blank"&gt;https://splunkbase.splunk.com/app/2919&lt;/A&gt;).&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 14:09:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Is-there-Rest-API-for-splunkbase-to-get-list-of-all-apps-and/m-p/631854#M15471</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-02-22T14:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API for splunkbase to get list of all apps and version details</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Is-there-Rest-API-for-splunkbase-to-get-list-of-all-apps-and/m-p/633522#M15611</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you .&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 04:03:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Is-there-Rest-API-for-splunkbase-to-get-list-of-all-apps-and/m-p/633522#M15611</guid>
      <dc:creator>AnilPujar</dc:creator>
      <dc:date>2023-03-07T04:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API for splunkbase to get list of all apps and version details</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Is-there-Rest-API-for-splunkbase-to-get-list-of-all-apps-and/m-p/649491#M16743</link>
      <description>&lt;P&gt;Our Splunk instance has no internet access, so I'm trying to get a list of Splunk apps from splunkbase in JSON format and to compare the results via lookup to installed apps in Splunk.&lt;/P&gt;&lt;P&gt;The problem is that via API I can get info for specific app bit not for all of the apps in splunkbase.&lt;/P&gt;&lt;P&gt;&lt;A href="https://splunkbase.splunk.com/api/v1/app/2919/" target="_blank"&gt;https://splunkbase.splunk.com/api/v1/app/2919/&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;uid	2919
appid	"analysis_of_splunkbase_apps"
title	"Analysis Of SplunkBase Apps for Splunk"
created_time	"2022-06-29T22:21:12+00:00"
published_time	"2022-06-29T22:21:12+00:00"
updated_time	"2022-11-12T18:36:43+00:00"
type	"app"
license_name	"Splunk Software License Agreement"
license_url	"https://www.splunk.com/en_us/legal/splunk-software-license-agreement.html"
description	"After being asked for a list of Splunk Apps in a spreadsheet a few times, I found a need to build this App.  This App provides a simple dashboard with App stats and allows you to search for Splunk Apps within Splunk. It was also designed to work if you are offline, as long as you have been online once to collect data.\n\nThis App can be used to determine which Apps are certified to work with Splunk Cloud, Hunk, ES, etc.  \n\nThis is just one example of how you can use Splunk to analyze web site content.\n\n*NOTE: Firefox does not seem to like loading he dynamic menus, please use any other major browser."
access	"unrestricted"
appinspect_passed	true
path	"https://splunkbase.splunk.com/app/2919/"
install_method_distributed	"assisted"
install_method_single	"simple"
download_count	6015
install_count	0
archive_status	"live"
is_archived	false
fedramp_validation	"no"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://splunkbase.splunk.com/api/v1/app/2919/release/" target="_blank"&gt;https://splunkbase.splunk.com/api/v1/app/2919/release/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;	
0	
id	26397
app	2919
name	"5.4.3"
product	
name	"splunk"
display_name	"Splunk"
release_notes	"Changes to the Splunkbase API have been reflected in our collection script.  \nLocal audit bug resolved."
CIM_versions	[]
product_versions	
0	"9.1"
1	"9.0"
2	"8.2"
3	"8.1"
4	"8.0"
5	"7.3"
6	"7.2"
7	"7.1"
8	"7.0"
created_datetime	"2022-06-29T22:21:12.495737Z"
published_datetime	"2022-06-29T22:21:12.495763Z"
size	217239
filename	"analysis-of-splunkbase-apps-for-splunk_543.tgz"
platform	"independent"
install_method_single	"simple"
install_method_distributed	"assisted"
fedramp_validation	"no"
cloud_compatible	true&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, my question is, how to get all apps list from splunkbase in JSON format&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 13:38:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Is-there-Rest-API-for-splunkbase-to-get-list-of-all-apps-and/m-p/649491#M16743</guid>
      <dc:creator>michael_vi</dc:creator>
      <dc:date>2023-07-06T13:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API for splunkbase to get list of all apps and version details</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Is-there-Rest-API-for-splunkbase-to-get-list-of-all-apps-and/m-p/649501#M16744</link>
      <description>&lt;P&gt;The API endpoint&amp;nbsp;&lt;A href="https://splunkbase.splunk.com/api/v1/app/" target="_blank"&gt;https://splunkbase.splunk.com/api/v1/app/ &lt;/A&gt;will return 25 apps by default.&amp;nbsp; Wrap it in a script to specify successive values for the ?offset parameter to collect all apps.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;https://splunkbase.splunk.com/api/v1/app/?offset=25&amp;amp;limit=100&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 06 Jul 2023 14:07:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Is-there-Rest-API-for-splunkbase-to-get-list-of-all-apps-and/m-p/649501#M16744</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-07-06T14:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API for splunkbase to get list of all apps and version details</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Is-there-Rest-API-for-splunkbase-to-get-list-of-all-apps-and/m-p/649746#M16766</link>
      <description>&lt;P&gt;Is there any way to get the same # of rows (100) for the release URL, and not to do it 1 by 1?&lt;/P&gt;&lt;P data-unlink="true"&gt;https://splunkbase.splunk.com/api/v1/app/&amp;lt;UUID&amp;gt;/release/&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jul 2023 18:00:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Is-there-Rest-API-for-splunkbase-to-get-list-of-all-apps-and/m-p/649746#M16766</guid>
      <dc:creator>michael_vi</dc:creator>
      <dc:date>2023-07-09T18:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API for splunkbase to get list of all apps and version details</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Is-there-Rest-API-for-splunkbase-to-get-list-of-all-apps-and/m-p/649758#M16768</link>
      <description>&lt;P data-unlink="true"&gt;The same script the increments the &lt;FONT face="courier new,courier"&gt;offset&lt;/FONT&gt; argument also can extract the UUID and send it the https://splunkbase.splunk.com/api/v1/app/&amp;lt;UUID&amp;gt;/release/ endpoint.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jul 2023 18:06:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Is-there-Rest-API-for-splunkbase-to-get-list-of-all-apps-and/m-p/649758#M16768</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-07-09T18:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API for splunkbase to get list of all apps and version details</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Is-there-Rest-API-for-splunkbase-to-get-list-of-all-apps-and/m-p/655097#M17176</link>
      <description>&lt;P&gt;I know this is a slightly older post but wanted to mention I've written an App &amp;amp; Add-on that does this quite easily! Please check it out and let me know if you have any feedback.&lt;/P&gt;&lt;P&gt;&lt;A href="https://splunkbase.splunk.com/app/6665" target="_blank"&gt;https://splunkbase.splunk.com/app/6665&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2023 23:41:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Is-there-Rest-API-for-splunkbase-to-get-list-of-all-apps-and/m-p/655097#M17176</guid>
      <dc:creator>rmccullagh</dc:creator>
      <dc:date>2023-08-21T23:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API for splunkbase to get list of all apps and version details</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Is-there-Rest-API-for-splunkbase-to-get-list-of-all-apps-and/m-p/656902#M17312</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231633"&gt;@michael_vi&lt;/a&gt;&amp;nbsp;You happen to get this list at all? I may be needing it in the near future so just trying to get a head of it.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 02:52:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Is-there-Rest-API-for-splunkbase-to-get-list-of-all-apps-and/m-p/656902#M17312</guid>
      <dc:creator>lanzykevin</dc:creator>
      <dc:date>2023-09-07T02:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API for splunkbase to get list of all apps and version details</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Is-there-Rest-API-for-splunkbase-to-get-list-of-all-apps-and/m-p/656955#M17318</link>
      <description>&lt;LI-CODE lang="python"&gt;import requests

url = "https://splunkbase.splunk.com/api/v1/app/"
limit = 1

url2= "https://splunkbase.splunk.com/api/v1/app/"

with open(r"C:\Users\denis.zarfin\PycharmProjects\pythonProject2\main.txt", 'w') as f:
    f.write("name" + ", " + "uid" + ", " + "title" + ", " +'\n')

offset = -1
all_numbers = []
try :
    while True:
        offset += 1
        try:
            response = requests.get(url, params={"limit": limit, "offset": offset})
            data = response.json()
            for i in data["results"]:
                url2 = str(url2) + str(i["uid"]) + "/release/"
                response2 = requests.get(url2)
                data2 = response2.json()
                data2 = data2[0:1]
                for j in data2:
                    a = str(j["name"])
                    b = str(i["uid"])
                    c = str(i["title"])
                    with open(r"C:\Users\denis.zarfin\PycharmProjects\pythonProject2\main.txt", 'a') as f:
                        f.write(a + ", " + b + ", " + c + ", " +'\n')
            url2 = "https://splunkbase.splunk.com/api/v1/app/"
        except:
            pass
        print(offset, a, b, c)
        if offset &amp;gt; 2700:
            break
except:
    pass
print("ok")&lt;/LI-CODE&gt;&lt;P&gt;That one exports the results to CSV... but it's not that good.&lt;/P&gt;&lt;P&gt;In the end I want to get 2 JSONs&lt;/P&gt;&lt;P&gt;I was able to do it "manually" with:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import json
import requests

result = []
for app_id in range(0, 1, 1):
    url = f'https://splunkbase.splunk.com/api/v1/app/?offset={app_id}&amp;amp;limit=1'

    data = requests.get(url).json()

    print(f'Name: {data["results"]['uid']}')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 11:43:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Is-there-Rest-API-for-splunkbase-to-get-list-of-all-apps-and/m-p/656955#M17318</guid>
      <dc:creator>michael_vi</dc:creator>
      <dc:date>2023-09-07T11:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API for splunkbase to get list of all apps and version details</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Is-there-Rest-API-for-splunkbase-to-get-list-of-all-apps-and/m-p/657225#M17343</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231633"&gt;@michael_vi&lt;/a&gt;&amp;nbsp;First, thank you for the help! I was able to get this script updated here and it puts it in a alphabetical list. Thank you again&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;import&lt;/SPAN&gt;&lt;SPAN&gt; requests&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;import&lt;/SPAN&gt;&lt;SPAN&gt; json&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;# Splunkbase API endpoint to get a list of all apps&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;splunkbase_api_url &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;"&lt;A href="https://splunkbase.splunk.com/api/v1/app/" target="_blank"&gt;https://splunkbase.splunk.com/api/v1/app/&lt;/A&gt;"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;# Initialize an empty list to store all apps&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;all_apps &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; []&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;# Initialize offset and batch size&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;offset &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;0&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;batch_size &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;25&lt;/SPAN&gt;&lt;SPAN&gt; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;# You can adjust this if needed&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;while&lt;/SPAN&gt; &lt;SPAN&gt;True&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;# Construct the URL with the current offset&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; params &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;SPAN&gt;"offset"&lt;/SPAN&gt;&lt;SPAN&gt;: offset}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; response &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; requests&lt;/SPAN&gt;&lt;SPAN&gt;.get(splunkbase_api_url, params&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;params)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; response&lt;/SPAN&gt;&lt;SPAN&gt;.status_code&lt;/SPAN&gt; &lt;SPAN&gt;==&lt;/SPAN&gt; &lt;SPAN&gt;200&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;# Parse the JSON response to access the list of apps&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; apps &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; response&lt;/SPAN&gt;&lt;SPAN&gt;.json()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;# Add the retrieved apps to the list&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; all_apps&lt;/SPAN&gt;&lt;SPAN&gt;.extend(apps[&lt;/SPAN&gt;&lt;SPAN&gt;'results'&lt;/SPAN&gt;&lt;SPAN&gt;])&lt;/SPAN&gt;&lt;SPAN&gt; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;# Use ['results'] to get the apps&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;# Calculate the total number of apps from the response&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; total_apps &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;apps[&lt;/SPAN&gt;&lt;SPAN&gt;'total'&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;# If we have collected all apps, break the loop&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; offset &lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;=&lt;/SPAN&gt;&lt;SPAN&gt; total_apps:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;break&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;# Increase the offset for the next request&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; offset &lt;/SPAN&gt;&lt;SPAN&gt;+=&lt;/SPAN&gt;&lt;SPAN&gt; batch_size&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;else&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"Failed to retrieve apps. Status code:"&lt;/SPAN&gt;&lt;SPAN&gt;, response.status_code)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;break&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;# Extract 'appid' (app names) from the 'results'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;app_names &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; [&lt;/SPAN&gt;&lt;SPAN&gt;app[&lt;/SPAN&gt;&lt;SPAN&gt;'appid'&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt; &lt;SPAN&gt;for&lt;/SPAN&gt;&lt;SPAN&gt; app &lt;/SPAN&gt;&lt;SPAN&gt;in&lt;/SPAN&gt;&lt;SPAN&gt; all_apps]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;# Sort the app names in alphabetical order&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;app_names_sorted &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;sorted&lt;/SPAN&gt;&lt;SPAN&gt;(app_names)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;# Create a dictionary with the sorted app names as a list&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;app_data &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;SPAN&gt;"app_names"&lt;/SPAN&gt;&lt;SPAN&gt;: app_names_sorted}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;# Save the app data to a JSON file as before&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;output_file_path &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;"splunkbase_apps.json"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;with&lt;/SPAN&gt; &lt;SPAN&gt;open&lt;/SPAN&gt;&lt;SPAN&gt;(output_file_path, &lt;/SPAN&gt;&lt;SPAN&gt;'w'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt; &lt;SPAN&gt;as&lt;/SPAN&gt;&lt;SPAN&gt; json_file:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; json&lt;/SPAN&gt;&lt;SPAN&gt;.dump(app_data, json_file, indent&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;4&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;# Use indent to format JSON&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;f&lt;/SPAN&gt;&lt;SPAN&gt;"App data has been saved to &lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;SPAN&gt;output_file_path&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 11 Sep 2023 17:52:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Is-there-Rest-API-for-splunkbase-to-get-list-of-all-apps-and/m-p/657225#M17343</guid>
      <dc:creator>lanzykevin</dc:creator>
      <dc:date>2023-09-11T17:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API for splunkbase to get list of all apps and version details</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Is-there-Rest-API-for-splunkbase-to-get-list-of-all-apps-and/m-p/677966#M18697</link>
      <description>&lt;P&gt;this api don't have app version&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 09:17:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Is-there-Rest-API-for-splunkbase-to-get-list-of-all-apps-and/m-p/677966#M18697</guid>
      <dc:creator>AnilPujar</dc:creator>
      <dc:date>2024-02-19T09:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API for splunkbase to get list of all apps and version details</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Is-there-Rest-API-for-splunkbase-to-get-list-of-all-apps-and/m-p/703116#M20627</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Did you or anyone else in this post ever end up creating the full script to get recent versions from&amp;nbsp; "&lt;A href="https://community.splunk.com/" target="_blank"&gt;https://splunkbase.splunk.com/api/v1/app/&amp;lt;UUID&amp;gt;/release/"&lt;/A&gt;&amp;nbsp;Endpoint ?&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 14:03:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Is-there-Rest-API-for-splunkbase-to-get-list-of-all-apps-and/m-p/703116#M20627</guid>
      <dc:creator>mihai_wrld</dc:creator>
      <dc:date>2024-10-30T14:03:29Z</dc:date>
    </item>
  </channel>
</rss>

