# Ember-data adapter that uses query string params

**URL:** <https://discuss.emberjs.com/t/ember-data-adapter-that-uses-query-string-params/12365>\
**Category:** Ember Data\
**Created:** [February 2, 2017, 10:25pm UTC](https://discuss.emberjs.com/t/ember-data-adapter-that-uses-query-string-params/12365 "2017-02-02T22:25:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![midget2000x](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/midget2000x/32/12890_2.png) [@midget2000x](https://discuss.emberjs.com/u/midget2000x)\
**Post date:** [February 2, 2017, 10:25pm UTC](https://discuss.emberjs.com/t/ember-data-adapter-that-uses-query-string-params/12365/1 "2017-02-02T22:25:17Z")

</div>

Brand new to ember, so I apologize if this is overly newb. I’m trying to get some data to my store from a JSON API that takes query string parameters (it’s a search engine).

so for example to run a search for “shirt” with price \> $100 and I want to see 18 per set (page) the url would be:

[http://localhost:8000/search?q=shirt&paging=18&filter-price=100](http://localhost:8000/search?q=shirt&paging=18&filter-price=100)

(that’s obviously my dev url)

I understand how to set up the model, it’s the adapter and route I’m having trouble with. I assume this is the starting point (for the adapter):

```
import DS from 'ember-data';

export default DS.JSONAPIAdapter.extend({
	host: 'http://localhost:8000',
	pathForType() {
		return 'search';
	}
});

```

but given the API isn’t accepting routes like /path/to/id, how can I tell it to specify query string keys and values?

---

<div class="post-metadata">

**Author:** ![midget2000x](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/midget2000x/32/12890_2.png) [@midget2000x](https://discuss.emberjs.com/u/midget2000x)\
**Post date:** [February 3, 2017, 12:59am UTC](https://discuss.emberjs.com/t/ember-data-adapter-that-uses-query-string-params/12365/2 "2017-02-03T00:59:06Z")

</div>

Kind of figured it out, with the help of this article:

> **[Pagination in Ember with a JSON API Backend - Ember Igniter](https://emberigniter.com/pagination-in-ember-with-json-api-backend/)**
>
> Articles to help you learn and master Ember Octane
