<p>Staff from rcsb kindly reminds me the <a href="https://search.rcsb.org/index.html#pagination" rel="nofollow noreferrer">solution</a> - add the following lines in the json query.</p>
<pre><code>&quot;request_options&quot;: {
&quot;return_all_hits&quot;: true
}
</code></pre>

CC BY-SA 4.0
2020-09-11T14:50:43.193Z
2020-09-11T14:50:43.193Z
Simon
<p>Is there a limit of query results on RCSB API?</p>
<p>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)</p>
<pre><code>{
  &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;
}
</code></pre>
<p>Example python code requesting query:</p>
<pre><code>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
</code></pre>

CC BY-SA 4.0
2020-09-03T13:28:34.490Z
Maybe ask RCSB at https://www.rcsb.org/pages/contactus.
jgreener
<assembly><api>
RCSB API: limited returned result
# RCSB API: limited returned result

(Asked by: username_0 on 2020-08-29)

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)
{
  "query": {
    "type": "group",
    "logical_operator": "and",
    "nodes": [
      {
        "type": "terminal",
        "service": "text",
        "parameters": {
          "operator": "greater",
          "value": 1,
          "attribute": "rcsb_assembly_info.polymer_entity_instance_count"
        }
      }
    ]
  },
  "return_type": "assembly"
}

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

**Tags:** assembly, api
> **Comments:**
> **username_1**: Maybe ask RCSB at https://www.rcsb.org/pages/contactus.  

---

## 1 answers

### Answer by username_0 on 2020-09-11. Score: 2 | Accepted answer

Staff from rcsb kindly reminds me the solution - add the following lines in the json query.
"request_options": {
"return_all_hits": true
}


---

