RCSB API: limited returned result Is there a limit of query results on RCSB API?
Interestingly, no matter how to adjust my query criteria, only 10 assemblies are returned. Here is an example query json: (truncated from a longer query file)
{
  &quot;query&quot;: {
    &quot;type&quot;: &quot;group&quot;,
    &quot;logical_operator&quot;: &quot;and&quot;,
    &quot;nodes&quot;: [
      {
        &quot;type&quot;: &quot;terminal&quot;,
        &quot;service&quot;: &quot;text&quot;,
        &quot;parameters&quot;: {
          &quot;operator&quot;: &quot;greater&quot;,
          &quot;value&quot;: 1,
          &quot;attribute&quot;: &quot;rcsb_assembly_info.polymer_entity_instance_count&quot;
        }
      }
    ]
  },
  &quot;return_type&quot;: &quot;assembly&quot;
}

Example python code requesting query:
url_query = 'https://search.rcsb.org/rcsbsearch/v1/query?json='
query_str = open(query_json, 'r').read()
query_str = query_str.replace('\n', '').replace(' ', '')
url = url_query + query_str

r = requests.get(url)
content = r.content.decode('utf-8')
result = json.loads(content)
print(len(result['result_set']) # always equal to 10
Staff from rcsb kindly reminds me the solution - add the following lines in the json query.
&quot;request_options&quot;: {
&quot;return_all_hits&quot;: true
}