<?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: API Call to return more than 100 jobs in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/api-call-to-return-more-than-100-jobs/m-p/140443#M51426</link>
    <description>&lt;P&gt;Thanks. I will try that&lt;/P&gt;</description>
    <pubDate>Wed, 26 Nov 2025 16:33:30 GMT</pubDate>
    <dc:creator>dpc</dc:creator>
    <dc:date>2025-11-26T16:33:30Z</dc:date>
    <item>
      <title>API Call to return more than 100 jobs</title>
      <link>https://community.databricks.com/t5/data-engineering/api-call-to-return-more-than-100-jobs/m-p/140440#M51424</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have around 150 jobs and this is likely to increase.&lt;/P&gt;&lt;P&gt;I use this call to get all the jobs and write them into a list called json.&lt;/P&gt;&lt;P&gt;My logic here is to match a name to a job id and run the job using the job id.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;response &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; requests.&lt;/SPAN&gt;&lt;SPAN&gt;get&lt;/SPAN&gt;&lt;SPAN&gt;(hostHTTPS, &lt;/SPAN&gt;&lt;SPAN&gt;json&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; additional_parameters, &lt;/SPAN&gt;&lt;SPAN&gt;headers&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;auth).&lt;/SPAN&gt;&lt;SPAN&gt;json&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;HostHTTPS is basically this:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;hostHTTPS &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;''&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;join&lt;/SPAN&gt;&lt;SPAN&gt;([databricksHost, &lt;/SPAN&gt;&lt;SPAN&gt;"/api/2.1/jobs/list?limit=100"&lt;/SPAN&gt;&lt;SPAN&gt;])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;That goes off and returns 100 jobs - all good&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;If I change limit to more than 100, I get (e.g. 200):&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{'error_code': 'INVALID_PARAMETER_VALUE', 'message': 'Invalid limit 200 - it has to be no more than 100.', 'details': [{'@type': 'type.googleapis.com/google.rpc.RequestInfo'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;How do I increase this as 100 is a pretty small number?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 26 Nov 2025 15:42:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/api-call-to-return-more-than-100-jobs/m-p/140440#M51424</guid>
      <dc:creator>dpc</dc:creator>
      <dc:date>2025-11-26T15:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: API Call to return more than 100 jobs</title>
      <link>https://community.databricks.com/t5/data-engineering/api-call-to-return-more-than-100-jobs/m-p/140441#M51425</link>
      <description>&lt;P&gt;Please refer to&amp;nbsp;&lt;A href="https://docs.databricks.com/api/workspace/jobs/list?" target="_blank" rel="noopener"&gt;https://docs.databricks.com/api/workspace/jobs/list?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The official documentation for the Jobs API (GET /api/2.2/jobs/list) states that the limit parameter controls how many jobs are returned per call, and the API enforces a cap (100).&lt;/P&gt;&lt;P&gt;Because you have ~150 jobs and may have more later, you should loop over subsequent pages until you've retrieved all jobs. The API supports pagination: the response will include a next_page_token (or an equivalent mechanism) when there are more jobs to fetch.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/aws/en/reference/jobs-api-2-2-updates" target="_blank" rel="noopener"&gt;https://docs.databricks.com/aws/en/reference/jobs-api-2-2-updates&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2025 15:53:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/api-call-to-return-more-than-100-jobs/m-p/140441#M51425</guid>
      <dc:creator>bianca_unifeye</dc:creator>
      <dc:date>2025-11-26T15:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: API Call to return more than 100 jobs</title>
      <link>https://community.databricks.com/t5/data-engineering/api-call-to-return-more-than-100-jobs/m-p/140443#M51426</link>
      <description>&lt;P&gt;Thanks. I will try that&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2025 16:33:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/api-call-to-return-more-than-100-jobs/m-p/140443#M51426</guid>
      <dc:creator>dpc</dc:creator>
      <dc:date>2025-11-26T16:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: API Call to return more than 100 jobs</title>
      <link>https://community.databricks.com/t5/data-engineering/api-call-to-return-more-than-100-jobs/m-p/140966#M51593</link>
      <description>&lt;P&gt;Looping using&amp;nbsp;&lt;SPAN&gt;next_page_token works well, thanks&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/193092"&gt;@bianca_unifeye&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Dec 2025 08:48:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/api-call-to-return-more-than-100-jobs/m-p/140966#M51593</guid>
      <dc:creator>dpc</dc:creator>
      <dc:date>2025-12-03T08:48:20Z</dc:date>
    </item>
  </channel>
</rss>

