# Question about the 'Parameters Combinations' practice tool

**URL:** <https://community.crossref.org/t/question-about-the-parameters-combinations-practice-tool/2189>\
**Category:** Interfaces for Machines\
**Tags:** rest-api\
**Created:** [28 October 2021 19:45 UTC](https://community.crossref.org/t/question-about-the-parameters-combinations-practice-tool/2189 "2021-10-28T19:45:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kna10](https://avatars.discourse-cdn.com/v4/letter/k/85f322/32.png) [@kna10](https://community.crossref.org/u/kna10)\
**Post date:** [28 October 2021 19:45 UTC](https://community.crossref.org/t/question-about-the-parameters-combinations-practice-tool/2189/1 "2021-10-28T19:45:54Z")

</div>

I came across this practice tool: [Swagger UI](https://api.crossref.org/swagger-ui/index.html#/Works/get_works) and am using it to try out different queries (I don’t feel very confident with creating queries myself yet). One query I’d like to try is to pull /works with the following parameters:  
rows=100  
query.affiliation=standards (I enter this in the query box)  
type:journal-article,from-pub-date:2021-02-01 (entered in Filter box)

When I enter these into the appropriate boxes, the RequestURL looks like this:  
[https://api.crossref.org/works?rows=100&query=query.affiliation%3Dstandards&filter=type%3Ajournal-article%2Cfrom-pub-date%3A2021-02-01](https://api.crossref.org/works?rows=100&query=query.affiliation%3Dstandards&filter=type%3Ajournal-article%2Cfrom-pub-date%3A2021-02-01)

and I get a total of 3972 results. Why does the RequestURL have the “query=” immediately before query.affiliation? When I remove this and run without the “query=” I get fewer total results that seem more in line with what I’d expect.

My colleague says the URL with “query=” in it is searching “standards” on the whole record, but I specifically entered query.affiliation=standards in the query field. Why is the tool inserting “query=” before query.affiliation? Thanks in advance to anyone that can explain the behavior.

---

<div class="post-metadata">

**Author:** ![pdavis](https://sea2.discourse-cdn.com/flex020/user_avatar/community.crossref.org/pdavis/32/981_2.png) [@pdavis](https://community.crossref.org/u/pdavis)\
**Post date:** [29 October 2021 16:36 UTC](https://community.crossref.org/t/question-about-the-parameters-combinations-practice-tool/2189/2 "2021-10-29T16:36:28Z")

</div>

Hello @kna10,

Thanks for the message.

So the query box in the swagger practice tool is only for the `query=` parameter and so that is why the `query.affiliation` is added after that string. But it does seem like we need more options on that tool to allow for the field queries and other things that might want to be included in the request URL.

I have logged a ticket for these improvements with the developers and so they will look to make those additions when possible.

For now you might need to remove the `query=` section manually to get the results more appropriate for your queries I am afraid.

Thanks,  
Paul

---

<div class="post-metadata">

**Author:** ![kna10](https://avatars.discourse-cdn.com/v4/letter/k/85f322/32.png) [@kna10](https://community.crossref.org/u/kna10)\
**Post date:** [29 October 2021 19:39 UTC](https://community.crossref.org/t/question-about-the-parameters-combinations-practice-tool/2189/3 "2021-10-29T19:39:17Z")

</div>

Thank you Paul! Nice to get that clarification.
