Test rest viewer
Instant Search Proxy
Optimaliseer indexbeheer met ons ProxyIndex model. Beheer moeiteloos index-aliassen, sjablonen en filters voor verbeterde zoek- en filtermogelijkheden. Verken deze documentatie om de efficiƫntie van de API te maximaliseren.
aliasstringThe index alias
templateobjectresults_per_pageintegerThe number of results per page for this index
filtersarray[ProxyIndexFilter] {
"alias": "products",
"template": {
"name": null,
"mapping": [
{}
]
},
"results_per_page": 10,
"filters": [
{
"key": "category",
"options_count": 10,
"max_options_count": 10
}
]
}List instant Search proxies
De listInstantProxies operatie is een GET API-endpoint dat een lijst van zoekmachines ophaalt voor een specifieke huurder. Het ondersteunt optionele paginering, geeft gedetailleerde proxy-objecten terug bij succes, en levert uitgebreide foutinformatie bij falen. Deze snelheid-beperkte operatie vereist authenticatie met een bearer token en is ontworpen voor openbare blootstelling.
page[size]integerpage[after]stringkeystringThe unique key of the proxy
filtersobjectis_autocompletebooleanWhether or not this search engine is used as an autocomplete search
click_trackingobjectindexesarray[ProxyIndex]created_atintegerint64
updated_atintegerint64
curl https://afosto.app/api/instant/proxies
-X GET
-H "Authorization: Bearer {token}"
{
"data": [
{
"key": "afosto",
"filters": {
"show_for": "products",
"sorting": [
"category",
"price"
],
"options_count": 5,
"max_options_count": 25
},
"is_autocomplete": null,
"click_tracking": {
"is_enabled": null
},
"indexes": [
{
"alias": "products",
"template": {
"name": null,
"mapping": [
{}
]
},
"results_per_page": 10,
"filters": [
{
"key": "category",
"options_count": 10,
"max_options_count": 10
}
]
}
],
"created_at": null,
"updated_at": null
}
],
"page": {
"first": "https://afosto.app/api/instant/proxies",
"next": "https://afosto.app/api/instant/proxies?page[after]=Nne9H5q3ZuddquhTrkGCImjN5",
"after": "Nne9H5q3ZuddquhTrkGCImjN5",
"previous": "https://afosto.app/api/instant/proxies?page[after]=Nne9H5q3ZuddquhTrkGCImjN5",
"before": "Nne9H5q3ZuddquhTrkGCImjN5"
}
}Create proxy
keystringRequiredThe unique key of the proxy
filtersobjectis_autocompletebooleanWhether or not this search engine is used as an autocomplete search
click_trackingobjectindexesarray[ProxyIndex]keystringThe unique key of the proxy
filtersobjectis_autocompletebooleanWhether or not this search engine is used as an autocomplete search
click_trackingobjectindexesarray[ProxyIndex]created_atintegerint64
updated_atintegerint64
curl https://afosto.app/api/instant/proxies
-X POST
-d '{
"data": {
"key": "afosto",
"filters": {
"show_for": "products",
"sorting": [
"category",
"price"
],
"options_count": 5,
"max_options_count": 25
},
"is_autocomplete": null,
"click_tracking": {
"is_enabled": null
},
"indexes": [
{
"alias": "products",
"template": {
"name": null,
"mapping": [
{}
]
},
"results_per_page": 10,
"filters": [
{
"key": "category",
"options_count": 10,
"max_options_count": 10
}
]
}
]
}
}'
-H "Content-Type: application/json"
-H "Authorization: Bearer {token}"
{
"data": {
"key": "afosto",
"filters": {
"show_for": "products",
"sorting": [
"category",
"price"
],
"options_count": 5,
"max_options_count": 25
},
"is_autocomplete": null,
"click_tracking": {
"is_enabled": null
},
"indexes": [
{
"alias": "products",
"template": {
"name": null,
"mapping": [
{}
]
},
"results_per_page": 10,
"filters": [
{
"key": "category",
"options_count": 10,
"max_options_count": 10
}
]
}
],
"created_at": null,
"updated_at": null
},
"page": {}
}View proxy
idstringRequiredkeystringThe unique key of the proxy
filtersobjectis_autocompletebooleanWhether or not this search engine is used as an autocomplete search
click_trackingobjectindexesarray[ProxyIndex]created_atintegerint64
updated_atintegerint64
curl https://afosto.app/api/instant/proxies/{id}
-X GET
-H "Authorization: Bearer {token}"
{
"data": {
"key": "afosto",
"filters": {
"show_for": "products",
"sorting": [
"category",
"price"
],
"options_count": 5,
"max_options_count": 25
},
"is_autocomplete": null,
"click_tracking": {
"is_enabled": null
},
"indexes": [
{
"alias": "products",
"template": {
"name": null,
"mapping": [
{}
]
},
"results_per_page": 10,
"filters": [
{
"key": "category",
"options_count": 10,
"max_options_count": 10
}
]
}
],
"created_at": null,
"updated_at": null
},
"page": {}
}Update proxy
filtersobjectis_autocompletebooleanWhether or not this search engine is used as an autocomplete search
click_trackingobjectindexesarray[ProxyIndex]RequiredidstringRequiredcurl https://afosto.app/api/instant/proxies/{id}
-X PUT
-d '{
"data": {
"filters": {
"show_for": "products",
"sorting": [
"category",
"price"
],
"options_count": 5,
"max_options_count": 25
},
"is_autocomplete": null,
"click_tracking": {
"is_enabled": null
},
"indexes": [
{
"alias": "products",
"template": {
"name": null,
"mapping": [
{}
]
},
"results_per_page": 10,
"filters": [
{
"key": "category",
"options_count": 10,
"max_options_count": 10
}
]
}
]
}
}'
-H "Content-Type: application/json"
-H "Authorization: Bearer {token}"
Delete proxy
idstringRequiredcurl https://afosto.app/api/instant/proxies/{id}
-X DELETE
-H "Authorization: Bearer {token}"