Get Results
With the Get Results endpoint you can retrieve the results of a previously made search. The response contains a list with the plugin results, the date of the performed search and the search query.
https://api.ploogins.com/v1/get_results?search_id=072c2b17-4f8d-4e69-9814-5fdf598ce759
GET Params
There is only one search parameter passed to the get_results
endpoint:
Name | Type | Description | Example |
---|---|---|---|
search_id* | string (UUID) | The search intent ID received when the query was performed | 072c2b17-4f8d-4e69-9814-5fdf598ce759 |
Request Example
In order to obtain the results of a Ploogins previous query, it is necessary to call the endpoint using the GET method with the 'search_id' parameter.
- CURL
- Javascript
- Python
curl -X GET "https://api.ploogins.com/v1/get_results?search_id=072c2b17-4f8d-4e69-9814-5fdf598ce759" \
-H "Authorization: Bearer YOUR-API-TOKEN"
const headers = new Headers();
headers.append("Authorization", "Bearer YOUR-API-TOKEN");
const requestOptions = {
method: 'GET',
headers: headers,
redirect: follow
};
fetch("https://api.ploogins.com/v1/get_results?search_id=072c2b17-4f8d-4e69-9814-5fdf598ce759")
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
import requests
headers = {
'Authorization': 'Bearer YOUR-API-TOKEN'
}
response = requests.request("POST", url, headers=headers)
print(response.text)
Response Example
{
"search": "Sirvelia",
"results": [
{
"id": 99295,
"name": "Protect My Content",
"slug": "protect-my-content",
"tags": [
"content",
"protect"
],
"added": "2023-12-06",
"chunk": 0,
"author": "Sirvelia",
"blocks": [],
"rating": 0,
"banners": {
"low": "https://ps.w.org/protect-my-content/assets/banner-772x250.png?rev=3006909",
"high": "https://ps.w.org/protect-my-content/assets/banner-1544x500.png?rev=3006909"
},
"ratings": {
"1": 0,
"2": 0,
"3": 0,
"4": 0,
"5": 0
},
"version": "1.0.8",
"homepage": "https://github.com/Sirvelia/protect-my-content/",
"icon_src": "https://ps.w.org/protect-my-content/assets/icon-256x256.png?rev=3006903",
"sections": {
"faq": "\n<dt id='is%20a%20good%20idea%20to%20block%20and%20protect%20the%20content%20of%20my%20website%3F'>\nIs a good idea to block and protect the content of my website?\n</h4>\n<p>\n<p>There may be some cases, when you want your content to be private or at least protect from others copying and distributing it.</p>\n</p>\n\n",
"reviews": "",
"changelog": "<h4>1.0.8</h4>\n<ul>\n<li>Readme updated.</li>\n</ul>\n<h4>1.0.5</h4>\n<ul>\n<li>Readme updated.</li>\n</ul>\n<h4>1.0.4</h4>\n<ul>\n<li>Initial release.</li>\n</ul>\n",
"description": "<p>A simple WordPress plugin that helps protecting the site’s content from humans and bots.</p>\n<p>There are some protections available:</p>\n<ul>\n<li>Disable Contextual Menu: disable right mouse button click site-wide</li>\n<li>Disable Text Selection: disable the ability to select text throughout the site</li>\n<li>Disable Feed:<br />\ndisable the content feed provided by WordPress</li>\n<li>Disable Iframe Embedding:<br />\nprevents embedding any website URL in an Iframe</li>\n<li>Protect REST API: protect the REST API for only logged in users</li>\n</ul>\n<p>Admin settings are available in Settings/Content Protection.</p>\n",
"screenshots": "<ol><li><a href=\"https://ps.w.org/protect-my-content/assets/screenshot-1.png?rev=3006903\"><img src=\"https://ps.w.org/protect-my-content/assets/screenshot-1.png?rev=3006903\" alt=\"Settings\"></a><p>Settings</p></li></ol>",
"installation": "<p>This section describes how to install the plugin and get it working.</p>\n<ol>\n<li>Upload <code>protect-my-content</code> folder to the <code>/wp-content/plugins/</code> directory</li>\n<li>Activate the plugin through the ‘Plugins’ menu in WordPress</li>\n</ol>\n"
},
"versions": {
"1.0.0": "https://downloads.wordpress.org/plugin/protect-my-content.1.0.0.zip",
"1.0.3": "https://downloads.wordpress.org/plugin/protect-my-content.1.0.3.zip",
"1.0.4": "https://downloads.wordpress.org/plugin/protect-my-content.1.0.4.zip",
"1.0.5": "https://downloads.wordpress.org/plugin/protect-my-content.1.0.5.zip",
"1.0.6": "https://downloads.wordpress.org/plugin/protect-my-content.1.0.6.zip",
"1.0.7": "https://downloads.wordpress.org/plugin/protect-my-content.1.0.7.zip",
"1.0.8": "https://downloads.wordpress.org/plugin/protect-my-content.1.0.8.zip",
"trunk": "https://downloads.wordpress.org/plugin/protect-my-content.zip"
},
"downloads": 917,
"blueprints": null,
"stable_tag": "1.0.8",
"description": "<p>A simple WordPress plugin that helps protecting the site’s content from humans and bots.</p>\n<p>There are some protections available:</p>\n<ul>\n<li>Disable Contextual Menu: disable right mouse button click site-wide</li>\n<li>Disable Text Selection: disable the ability to select text throughout the site</li>\n<li>Disable Feed:<br />\ndisable the content feed provided by WordPress</li>\n<li>Disable Iframe Embedding:<br />\nprevents embedding any website URL in an Iframe</li>\n<li>Protect REST API: protect the REST API for only logged in users</li>\n</ul>\n<p>Admin settings are available in Settings/Content Protection.</p>\n",
"donate_link": "https://sirvelia.com/",
"num_ratings": 0,
"screenshots": {
"1": {
"src": "https://ps.w.org/protect-my-content/assets/screenshot-1.png?rev=3006903",
"caption": "Settings"
}
},
"support_url": "https://wordpress.org/support/plugin/protect-my-content/",
"block_assets": [],
"contributors": "Amadeu Arderiu,Sirvelia",
"last_updated": "2024-03-24",
"preview_link": "",
"download_link": "https://downloads.wordpress.org/plugin/protect-my-content.1.0.8.zip",
"author_profile": "https://profiles.wordpress.org/amadeuarderiu/",
"business_model": null,
"language_packs": [
{
"slug": "protect-my-content",
"type": "plugin",
"package": "https://downloads.wordpress.org/translation/plugin/protect-my-content/1.0.8/ca.zip",
"updated": "2023-12-07 20:13:46",
"version": "1.0.8",
"language": "ca"
},
{
"slug": "protect-my-content",
"type": "plugin",
"package": "https://downloads.wordpress.org/translation/plugin/protect-my-content/1.0.8/es_ES.zip",
"updated": "2023-12-07 18:43:16",
"version": "1.0.8",
"language": "es_ES"
}
],
"repository_url": "",
"tested_version": "6.4.5",
"upgrade_notice": {},
"active_installs": 0,
"support_threads": 0,
"requires_plugins": [],
"requires_version": "6.0.0",
"short_description": "A simple WordPress plugin that helps protecting the site's content from humans and bots.",
"author_block_count": 0,
"author_block_rating": 0,
"wp_directory_status": "published",
"contributor_profiles": {
"sirvelia": {
"avatar": "https://secure.gravatar.com/avatar/873a08edfc2f4a2ac241177e620836cf?s=96&d=monsterid&r=g",
"profile": "https://profiles.wordpress.org/sirvelia/",
"display_name": "Sirvelia"
},
"amadeuarderiu": {
"avatar": "https://secure.gravatar.com/avatar/f87c8057e548b87080ccefb723c74fb1?s=96&d=monsterid&r=g",
"profile": "https://profiles.wordpress.org/amadeuarderiu/",
"display_name": "Amadeu Arderiu"
}
},
"required_php_version": "7.4",
"commercial_support_url": "",
"support_threads_resolved": 0
},
...
],
"date": "2024-10-21T07:59:49.835488+00:00"
}