Pause one of a keyword's sources
curl --request POST \
--url https://api.nephia.cc/v1/keywords/{id}/sources/{source}/pause \
--header 'x-api-key: <api-key>'import requests
url = "https://api.nephia.cc/v1/keywords/{id}/sources/{source}/pause"
headers = {"x-api-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.nephia.cc/v1/keywords/{id}/sources/{source}/pause', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.nephia.cc/v1/keywords/{id}/sources/{source}/pause",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.nephia.cc/v1/keywords/{id}/sources/{source}/pause"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.nephia.cc/v1/keywords/{id}/sources/{source}/pause")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nephia.cc/v1/keywords/{id}/sources/{source}/pause")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"keyword": {
"id": "<string>",
"name": "<string>",
"kind": "catalog",
"globalCriteria": {},
"refreshIntervalSeconds": 123,
"sources": [
{
"source": "x",
"enabled": true,
"searches": [
{
"id": "<string>",
"label": "<string>",
"overridesEnabled": true,
"overrides": {},
"resolvedCriteria": {}
}
],
"refreshIntervalSeconds": 123
}
],
"webhookUrl": "<string>",
"webhookMode": "all",
"webhookEvents": [
"keyword.alert_fired"
],
"aiEnabled": true,
"aiPreset": "<string>",
"aiPrompt": "<string>",
"aiStep": {},
"sentimentEnabled": true,
"coBrandsEnabled": true,
"subjectRole": "own",
"color": "keyword-1",
"relevanceContext": "<string>",
"muteRules": [
"<unknown>"
],
"vipAuthors": [
"<unknown>"
],
"rules": [
"<unknown>"
],
"schedule": {},
"isActive": true,
"pausedReason": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
},
"blockedSources": [
{
"source": "x",
"reason": "<string>"
}
]
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "Rate limit exceeded",
"code": "TOO_MANY_REQUESTS"
}Keywords
Pause one of a keyword's sources
Stops the searches of one Source and leaves the keyword’s other Sources polling. Nothing on that Source is polled, charged or delivered until you resume it; its searches and the mentions it caught stay. Refused when the Source is not enabled on the keyword, when the keyword itself is paused, and when it is the last Source still polling: pause the keyword instead. Free: does not charge credits.
POST
/
v1
/
keywords
/
{id}
/
sources
/
{source}
/
pause
Pause one of a keyword's sources
curl --request POST \
--url https://api.nephia.cc/v1/keywords/{id}/sources/{source}/pause \
--header 'x-api-key: <api-key>'import requests
url = "https://api.nephia.cc/v1/keywords/{id}/sources/{source}/pause"
headers = {"x-api-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.nephia.cc/v1/keywords/{id}/sources/{source}/pause', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.nephia.cc/v1/keywords/{id}/sources/{source}/pause",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.nephia.cc/v1/keywords/{id}/sources/{source}/pause"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.nephia.cc/v1/keywords/{id}/sources/{source}/pause")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nephia.cc/v1/keywords/{id}/sources/{source}/pause")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"keyword": {
"id": "<string>",
"name": "<string>",
"kind": "catalog",
"globalCriteria": {},
"refreshIntervalSeconds": 123,
"sources": [
{
"source": "x",
"enabled": true,
"searches": [
{
"id": "<string>",
"label": "<string>",
"overridesEnabled": true,
"overrides": {},
"resolvedCriteria": {}
}
],
"refreshIntervalSeconds": 123
}
],
"webhookUrl": "<string>",
"webhookMode": "all",
"webhookEvents": [
"keyword.alert_fired"
],
"aiEnabled": true,
"aiPreset": "<string>",
"aiPrompt": "<string>",
"aiStep": {},
"sentimentEnabled": true,
"coBrandsEnabled": true,
"subjectRole": "own",
"color": "keyword-1",
"relevanceContext": "<string>",
"muteRules": [
"<unknown>"
],
"vipAuthors": [
"<unknown>"
],
"rules": [
"<unknown>"
],
"schedule": {},
"isActive": true,
"pausedReason": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
},
"blockedSources": [
{
"source": "x",
"reason": "<string>"
}
]
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "Rate limit exceeded",
"code": "TOO_MANY_REQUESTS"
}Authorizations
Headers
Path Parameters
Was this page helpful?