{"_id":"5449059c3acc37080099e643","is_link":false,"__v":0,"category":{"_id":"5448e2cbc64edd1a00453c29","version":"543d1e5e5276641a00a593cf","__v":4,"pages":["5448db04c64edd1a00453c17","543d213b5276641a00a593f6","5449059c3acc37080099e643","5448e105c64edd1a00453c23","5448ddd77018ed1400f60754","5448eee6cdc9442200488400","5448ef5dcdc9442200488404","54b91f7ac875cb0c00c36481"],"project":"543d1e263a300f20000d31fb","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2014-10-23T11:13:15.517Z","from_sync":false,"order":3,"slug":"catalog","title":"Catalog"},"project":"543d1e263a300f20000d31fb","version":{"_id":"543d1e5e5276641a00a593cf","forked_from":"543d1e263a300f20000d31fe","project":"543d1e263a300f20000d31fb","__v":16,"createdAt":"2014-10-14T13:00:14.946Z","releaseDate":"2014-10-14T13:00:14.946Z","categories":["543d1e5f5276641a00a593d0","543d1ee45276641a00a593da","5448e2cbc64edd1a00453c29","5449135acdc944220048845c","544a0a93778b3e08002b2289","544a0a9727b7fc140078da58","544a456f27b7fc140078daff","544e027cbd51b9080037f680","544e029ab80812080035bba6","544e3a2eb80812080035bd67","5450b7c5a66f020800dba7b3","5450c0e47abbbc0800a5e989","5450c0f97abbbc0800a5e98a","5450c103a66f020800dba819","54f99f588d09b7390007ea45","565c81dbf3e9360d00823e43"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"2.0.0","version":"2"},"editedParams":true,"editedParams2":true,"parentDoc":null,"user":"54352decadf50e0800b89024","updates":[],"next":{"pages":[],"description":""},"createdAt":"2014-10-23T13:41:48.395Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[{"status":200,"name":"","code":"[\n  {\n    \"id\": \"28f5WeL\",\n    \"ern\": \"ern:catalog:28f5WeL\",\n    \"label\": null,\n    \"background\": null,\n    \"run_from\": \"2014-10-10T22:00:00+0000\",\n    \"run_till\": \"2014-10-24T21:59:59+0000\",\n    \"page_count\": 40,\n    \"offer_count\": 447,\n    \"branding\": {\n        \"name\": \"BAUHAUS\",\n        \"url_name\": \"bauhaus\",\n        \"website\": \"http://bauhaus.dk\",\n        \"logo\": \"https://cdn.net/img/logo/default/fcf0x_382m5lbbe.png\",\n        \"logo_background\": null,\n        \"color\": \"ee1720\",\n        \"pageflip\": {\n            \"logo\": \"https://cdn.net/img/logo/pageflip/fcf0x_7flm5lbbe.png\",\n            \"color\": \"ee1720\"\n        }\n    },\n    \"dealer_id\": \"fcf0x\",\n    \"dealer_url\": \"https://api.etilbudsavis.dk/v2/dealers/fcf0x\",\n    \"store_id\": \"f2686w\",\n    \"store_url\": \"https://api.etilbudsavis.dk/v2/stores/f2686w\",\n    \"dimensions\": {\n        \"height\": 1.3255722372631,\n        \"width\": 1\n    },\n  \t\"images\": {\n        \"thumb\": \"https://cdn.net/img/catalog/thumb/28f5WeL-1.jpg\",\n        \"view\": \"https://cdn.net/img/catalog/view/28f5WeL-1.jpg\",\n        \"zoom\": \"https://cdn.net/img/catalog/zoom/28f5WeL-1.jpg\"\n    },\n    \"category_ids\": [\"home-improvement\", \"home-garden\"],\n    \"pdf_url\": null\n  }\n  /* more like the above object */\n]","language":"json"},{"language":"json","status":400,"code":"{\n\t/* Standard error response with message about what went wrong */\n}"}]},"try":true,"basic_auth":false,"method":"get","auth":"never","params":[{"_id":"5449059c3acc37080099e64f","ref":"","in":"query","required":true,"desc":"API session token.","default":"","type":"string","name":"_token"},{"_id":"5449059c3acc37080099e64e","ref":"","in":"query","required":false,"desc":"The session signature, verifying your session. This is not required from a website.","default":"","type":"string","name":"_signature"},{"_id":"5449059c3acc37080099e64d","ref":"","in":"query","required":true,"desc":"The search string.","default":"","type":"string","name":"query"},{"_id":"5449059c3acc37080099e64c","ref":"","in":"query","required":false,"desc":"Request latitude.","default":"","type":"double","name":"r_lat"},{"_id":"5449059c3acc37080099e64b","ref":"","in":"query","required":false,"desc":"Request longitude","default":"","type":"double","name":"r_lng"},{"_id":"5449059c3acc37080099e64a","ref":"","in":"query","required":false,"desc":"Distance limit in meters.","default":"","type":"double","name":"r_radius"},{"_id":"5449059c3acc37080099e649","ref":"","in":"query","required":false,"desc":"How to sort search results.","default":"-score","type":"string","name":"order_by"},{"_id":"5449059c3acc37080099e648","ref":"","in":"query","required":false,"desc":"Comma-seperated list of catalog ids. The result will be limted to catalogs matching this filter.","default":"","type":"string","name":"catalog_ids"},{"_id":"5449059c3acc37080099e647","ref":"","in":"query","required":false,"desc":"Comma-seperated list of store ids. The result will be limted to catalogs matching this filter.","default":"","type":"string","name":"store_ids"},{"_id":"5449059c3acc37080099e646","ref":"","in":"query","required":false,"desc":"Comma-seperated list of dealer ids. The result will be limted to catalogs matching this filter.","default":"","type":"string","name":"dealer_ids"},{"_id":"5449059c3acc37080099e645","ref":"","in":"query","required":false,"desc":"Results per response.","default":"24","type":"int","name":"limit"},{"_id":"5449059c3acc37080099e644","ref":"","in":"query","required":false,"desc":"Resultset offset. Used for pagination.","default":"0","type":"int","name":"offset"}],"url":"/v2/catalogs/search"},"isReference":false,"order":2,"body":"This endpoint allows searching in the available catalogs.\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Order By\"\n}\n[/block]\nResults will by default be sorted by how well they match the search query.\nYou can optionally overide the sorting order via the `order_by` argument.\n\nThe available orderings are;\n\n- popularity\n- created\n- expiration_date\n- publication_date\n- valid_date\n- dealer\n- name\n- score\n- distance\n\nSee [Order By](doc:order-by) guide in left sidebar for information on how to use the `order_by` argument.","excerpt":"","slug":"testinput","type":"endpoint","title":"Catalog Search"}

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Query Params

_token:
required
string
API session token.
_signature:
string
The session signature, verifying your session. This is not required from a website.
query:
required
string
The search string.
r_lat:
double
Request latitude.
r_lng:
double
Request longitude
r_radius:
double
Distance limit in meters.
order_by:
string-score
How to sort search results.
catalog_ids:
string
Comma-seperated list of catalog ids. The result will be limted to catalogs matching this filter.
store_ids:
string
Comma-seperated list of store ids. The result will be limted to catalogs matching this filter.
dealer_ids:
string
Comma-seperated list of dealer ids. The result will be limted to catalogs matching this filter.
limit:
integer24
Results per response.
offset:
integer0
Resultset offset. Used for pagination.

Result Format


Documentation

This endpoint allows searching in the available catalogs. [block:api-header] { "type": "basic", "title": "Order By" } [/block] Results will by default be sorted by how well they match the search query. You can optionally overide the sorting order via the `order_by` argument. The available orderings are; - popularity - created - expiration_date - publication_date - valid_date - dealer - name - score - distance See [Order By](doc:order-by) guide in left sidebar for information on how to use the `order_by` argument.