curl --request POST \
--url https://api.juicer.io/v1/feeds/{feed_id}/sources \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"platform": "Instagram",
"term": "nasa",
"term_type": "username",
"options": {
"retweets": "<string>",
"replies": "<string>",
"only_reels": "<string>",
"only_posts": "<string>"
}
}
'import requests
url = "https://api.juicer.io/v1/feeds/{feed_id}/sources"
payload = {
"platform": "Instagram",
"term": "nasa",
"term_type": "username",
"options": {
"retweets": "<string>",
"replies": "<string>",
"only_reels": "<string>",
"only_posts": "<string>"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
platform: 'Instagram',
term: 'nasa',
term_type: 'username',
options: {
retweets: '<string>',
replies: '<string>',
only_reels: '<string>',
only_posts: '<string>'
}
})
};
fetch('https://api.juicer.io/v1/feeds/{feed_id}/sources', 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.juicer.io/v1/feeds/{feed_id}/sources",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'platform' => 'Instagram',
'term' => 'nasa',
'term_type' => 'username',
'options' => [
'retweets' => '<string>',
'replies' => '<string>',
'only_reels' => '<string>',
'only_posts' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.juicer.io/v1/feeds/{feed_id}/sources"
payload := strings.NewReader("{\n \"platform\": \"Instagram\",\n \"term\": \"nasa\",\n \"term_type\": \"username\",\n \"options\": {\n \"retweets\": \"<string>\",\n \"replies\": \"<string>\",\n \"only_reels\": \"<string>\",\n \"only_posts\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
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.juicer.io/v1/feeds/{feed_id}/sources")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"platform\": \"Instagram\",\n \"term\": \"nasa\",\n \"term_type\": \"username\",\n \"options\": {\n \"retweets\": \"<string>\",\n \"replies\": \"<string>\",\n \"only_reels\": \"<string>\",\n \"only_posts\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.juicer.io/v1/feeds/{feed_id}/sources")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"platform\": \"Instagram\",\n \"term\": \"nasa\",\n \"term_type\": \"username\",\n \"options\": {\n \"retweets\": \"<string>\",\n \"replies\": \"<string>\",\n \"only_reels\": \"<string>\",\n \"only_posts\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": 123,
"platform": "<string>",
"term": "<string>",
"term_type": "<string>",
"name": "<string>",
"options": {},
"syncable": true,
"unsyncable_reason": "<string>",
"synced_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z"
},
"meta": {
"replayed": true
}
}{
"data": {
"id": 123,
"platform": "<string>",
"term": "<string>",
"term_type": "<string>",
"name": "<string>",
"options": {},
"syncable": true,
"unsyncable_reason": "<string>",
"synced_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z"
}
}{
"error": {
"code": "feed_limit_reached",
"message": "Your Free plan allows 1 feed(s). Upgrade to create more.",
"details": {
"name": [
"can't be blank"
]
},
"action": {
"type": "upgrade_plan",
"current_plan": "small",
"current_plan_display_name": "Free",
"required_plan": "large",
"required_plan_display_name": "Pro",
"upgrade_url": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
}
}
}{
"error": {
"code": "feed_limit_reached",
"message": "Your Free plan allows 1 feed(s). Upgrade to create more.",
"details": {
"name": [
"can't be blank"
]
},
"action": {
"type": "upgrade_plan",
"current_plan": "small",
"current_plan_display_name": "Free",
"required_plan": "large",
"required_plan_display_name": "Pro",
"upgrade_url": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
}
}
}{
"error": {
"code": "feed_limit_reached",
"message": "Your Free plan allows 1 feed(s). Upgrade to create more.",
"details": {
"name": [
"can't be blank"
]
},
"action": {
"type": "upgrade_plan",
"current_plan": "small",
"current_plan_display_name": "Free",
"required_plan": "large",
"required_plan_display_name": "Pro",
"upgrade_url": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
}
}
}{
"error": {
"code": "feed_limit_reached",
"message": "Your Free plan allows 1 feed(s). Upgrade to create more.",
"details": {
"name": [
"can't be blank"
]
},
"action": {
"type": "upgrade_plan",
"current_plan": "small",
"current_plan_display_name": "Free",
"required_plan": "large",
"required_plan_display_name": "Pro",
"upgrade_url": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
}
}
}Add a source to a feed
Creates a new source and performs an initial sync to fetch posts.
Some platforms (like LinkedIn) sync asynchronously — check syncable status after creation.
Use GET /platforms to see available platforms and their supported term types.
Example — Reddit: use term_type: "channel" with a subreddit name
(or reddit.com/r/... URL) to pull a subreddit’s posts, or
term_type: "mentions" with any keyword to pull Reddit search results:
{ "platform": "Reddit", "term": "aww", "term_type": "channel" }
{ "platform": "Reddit", "term": "your brand", "term_type": "mentions" }
Returns 422 with:
error.code = "source_limit_reached"when the feed’s source limit is reached: with an upgrade action under a feed plan, without one when the limit is the one the feed’s owner or manager set on the feed, under a paid API plan.error.code = "daily_source_creation_limit_reached"or"monthly_source_creation_limit_reached"when the account has created as many sources as its feed plan allows in the rolling 24 hours or 30 days, deleted sources included (see Plan Limits). The upgrade action is included when your own account is the one at its cap.error.code = "social_account_required"and a connect action when the platform requires OAuth and no account is connected.
Returns 402 with error.code = "insufficient_credits" when a paid API plan governs the feed’s
account and its credit balance can’t cover the source’s first fetch. Nothing is fetched or created.
Safe retries. Send an Idempotency-Key header. After a timeout or a 5xx, retry with the
same key and body: the source may have been created anyway, and the retry returns it with 200
and meta.replayed: true instead of creating a second one. A replay during the initial sync may
show fewer posts than the finished sync will.
409idempotency_request_in_progress: the first request hasn’t saved the source yet. WaitRetry-Afterseconds and retry.422idempotency_key_reused: the key was already used for a different request. The same body on another feed counts as a different request.404: the feed was deleted (or is no longer yours) since the first request.- A request rejected with a
4xx(for exampleinsufficient_credits) doesn’t use up the key, so you can fix it and retry with the same key.
Keys are UTF-8 text of up to 255 characters, belong to your account and don’t expire. One key can create one feed and one source. Deleting the source frees its key.
curl --request POST \
--url https://api.juicer.io/v1/feeds/{feed_id}/sources \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"platform": "Instagram",
"term": "nasa",
"term_type": "username",
"options": {
"retweets": "<string>",
"replies": "<string>",
"only_reels": "<string>",
"only_posts": "<string>"
}
}
'import requests
url = "https://api.juicer.io/v1/feeds/{feed_id}/sources"
payload = {
"platform": "Instagram",
"term": "nasa",
"term_type": "username",
"options": {
"retweets": "<string>",
"replies": "<string>",
"only_reels": "<string>",
"only_posts": "<string>"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
platform: 'Instagram',
term: 'nasa',
term_type: 'username',
options: {
retweets: '<string>',
replies: '<string>',
only_reels: '<string>',
only_posts: '<string>'
}
})
};
fetch('https://api.juicer.io/v1/feeds/{feed_id}/sources', 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.juicer.io/v1/feeds/{feed_id}/sources",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'platform' => 'Instagram',
'term' => 'nasa',
'term_type' => 'username',
'options' => [
'retweets' => '<string>',
'replies' => '<string>',
'only_reels' => '<string>',
'only_posts' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.juicer.io/v1/feeds/{feed_id}/sources"
payload := strings.NewReader("{\n \"platform\": \"Instagram\",\n \"term\": \"nasa\",\n \"term_type\": \"username\",\n \"options\": {\n \"retweets\": \"<string>\",\n \"replies\": \"<string>\",\n \"only_reels\": \"<string>\",\n \"only_posts\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
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.juicer.io/v1/feeds/{feed_id}/sources")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"platform\": \"Instagram\",\n \"term\": \"nasa\",\n \"term_type\": \"username\",\n \"options\": {\n \"retweets\": \"<string>\",\n \"replies\": \"<string>\",\n \"only_reels\": \"<string>\",\n \"only_posts\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.juicer.io/v1/feeds/{feed_id}/sources")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"platform\": \"Instagram\",\n \"term\": \"nasa\",\n \"term_type\": \"username\",\n \"options\": {\n \"retweets\": \"<string>\",\n \"replies\": \"<string>\",\n \"only_reels\": \"<string>\",\n \"only_posts\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": 123,
"platform": "<string>",
"term": "<string>",
"term_type": "<string>",
"name": "<string>",
"options": {},
"syncable": true,
"unsyncable_reason": "<string>",
"synced_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z"
},
"meta": {
"replayed": true
}
}{
"data": {
"id": 123,
"platform": "<string>",
"term": "<string>",
"term_type": "<string>",
"name": "<string>",
"options": {},
"syncable": true,
"unsyncable_reason": "<string>",
"synced_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z"
}
}{
"error": {
"code": "feed_limit_reached",
"message": "Your Free plan allows 1 feed(s). Upgrade to create more.",
"details": {
"name": [
"can't be blank"
]
},
"action": {
"type": "upgrade_plan",
"current_plan": "small",
"current_plan_display_name": "Free",
"required_plan": "large",
"required_plan_display_name": "Pro",
"upgrade_url": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
}
}
}{
"error": {
"code": "feed_limit_reached",
"message": "Your Free plan allows 1 feed(s). Upgrade to create more.",
"details": {
"name": [
"can't be blank"
]
},
"action": {
"type": "upgrade_plan",
"current_plan": "small",
"current_plan_display_name": "Free",
"required_plan": "large",
"required_plan_display_name": "Pro",
"upgrade_url": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
}
}
}{
"error": {
"code": "feed_limit_reached",
"message": "Your Free plan allows 1 feed(s). Upgrade to create more.",
"details": {
"name": [
"can't be blank"
]
},
"action": {
"type": "upgrade_plan",
"current_plan": "small",
"current_plan_display_name": "Free",
"required_plan": "large",
"required_plan_display_name": "Pro",
"upgrade_url": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
}
}
}{
"error": {
"code": "feed_limit_reached",
"message": "Your Free plan allows 1 feed(s). Upgrade to create more.",
"details": {
"name": [
"can't be blank"
]
},
"action": {
"type": "upgrade_plan",
"current_plan": "small",
"current_plan_display_name": "Free",
"required_plan": "large",
"required_plan_display_name": "Pro",
"upgrade_url": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
}
}
}