Add keyword to list
Adds a keyword to list
POST https://api.imagemash.io/v1/account/addKeywordToList
Headers
Name
Type
Description
apikey*
String
Your API Key
Request Body
Name
Type
Description
name*
String
Keyword that you want to add your list. It can be any string. If added expression found in Image URL, then further actions will be done. Avoid using small strings, It may block or allow other image URLs that contain this string.
Nice Eg. example.com
Bad Eg. img, logo, img.
// Empty Body{
msg: "error details"
details: "..."
} // Explanation of errorExample Codes
curl --location --request POST 'https://api.imagemash.io/v1/account/addKeywordToList' \
--header 'apikey: your_api_key' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'name=example.com/images'var client = new RestClient("https://api.imagemash.io/v1/account/addKeywordToList");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("apikey", "your_api_key");
request.AddHeader("Content-Type", "application/x-www-form-urlencoded");
request.AddParameter("name", "example.com/images");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);import java.io.*;
import okhttp3.*;
public class main {
public static void main(String []args) throws IOException{
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/x-www-form-urlencoded");
RequestBody body = RequestBody.create(mediaType, "name=example.com/images");
Request request = new Request.Builder()
.url("https://api.imagemash.io/v1/account/addKeywordToList")
.method("POST", body)
.addHeader("apikey", "your_api_key")
.addHeader("Content-Type", "application/x-www-form-urlencoded")
.build();
Response response = client.newCall(request).execute();
System.out.println(response.body().string());
}
}
var axios = require('axios');
var qs = require('qs');
var data = qs.stringify({
'name': 'example.com/images'
});
var config = {
method: 'post',
url: 'https://api.imagemash.io/v1/account/addKeywordToList',
headers: {
'apikey': 'your_api_key',
'Content-Type': 'application/x-www-form-urlencoded'
},
maxRedirects: 0,
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
import requests
url = "https://api.imagemash.io/v1/account/addKeywordToList"
payload='name=example.com%2Fimages'
headers = {
'apikey': 'your_api_key',
'Content-Type': 'application/x-www-form-urlencoded'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
require "uri"
require "net/http"
url = URI("https://api.imagemash.io/v1/account/addKeywordToList")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Post.new(url)
request["apikey"] = "your_api_key"
request["Content-Type"] = "application/x-www-form-urlencoded"
request.body = "name=example.com%2Fimages"
response = https.request(request)
puts response.read_body
Last updated