Data API / DataForSEO / Business Data
Live Social Media Reddit Tasks
Intended to return Reddit sharing counts for targets. 🔴 Currently unavailable upstream: it answers status_code 50304, This function temporarily unavailable. Please contact support, with no tasks array at all - the failure is at the top level of the envelope, not inside a task. Wrapped in DataForSEO's envelope: data in tasks[0].result, outcome in tasks[0].status_code - a rejected request still returns HTTP 200. The Pinterest sibling post_dataforseo_business_social_media_pinterest_live works and costs almost nothing; for Reddit content itself, the reddit server reads the platform directly.
Параметры
Параметров пути, запроса и заголовков нет.
Тело запроса
targetsstring[]Обязательныйtarget URLs required field target page should be specified with its absolute URL (including http:// or https://) example:
https://dataforseo.com/Note: you can specify 10 targets maximum. You will be charged per earch URL you specify in this arraytagstringНеобязательныйuser-defined task identifier optional field the character limit is 255 you can use this parameter to identify the task and match it with the result you will find the specified
tagvalue in thedataobject of the response
Пример запроса
curl -X POST "https://openapi.felo.ai/v1/beta/dataforseo/business_data/social_media/reddit/live" \
-H "Authorization: Bearer $FELO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"targets": [
"<string>"
],
"tag": "<string>"
}'Ответ
Поля ответа
versionstringНеобязательныйthe current version of the API
status_codeintegerНеобязательныйgeneral status code you can find the full list of the response codes here Note: we strongly recommend designing a necessary system for handling related exceptional or error conditions
status_messagestringНеобязательныйgeneral informational message you can find the full list of general informational messages here
timestringНеобязательныйexecution time, seconds
costnumberНеобязательныйtotal tasks cost, USD
tasks_countintegerНеобязательный*the number of tasks in the
tasksarray*tasks_errorintegerНеобязательный*the number of tasks in the
tasksarray returned with an error*tasksstring[]Необязательныйarray of tasks
idstringНеобязательныйunique task identifier in our system in the Universally unique identifier (UUID) format
status_codeintegerНеобязательныйstatus code of the task generated by DataForSEO; can be within the following range: 10000-60000
status_messagestringНеобязательныйinformational message of the task
timestringНеобязательныйexecution time, seconds
costnumberНеобязательныйcost of the task, USD
result_countintegerНеобязательныйnumber of elements in the
resultarraypathstring[]НеобязательныйURL path
dataobjectНеобязательныйcontains the same parameters that you specified in the POST request
resultstring[]Необязательныйarray of results
typestringНеобязательный*type of element = ‘social\_media\_reddit\_item’*
page_urlstringНеобязательныйURL of the page the data is provided for corresponding URL you specified in the
targetsarray when setting a taskreddit reviewsstring[]Необязательныйreddit reviews for the page\_url
subredditstringНеобязательныйthe name of the subreddit
author_namestringНеобязательныйnickname of the author nicknname of the user who published the post in the subreddit and shared the URL
titlestringНеобязательныйtitle of the subreddit post
permalinkstringНеобязательныйURL to the subreddit post
subreddit_membersintegerНеобязательныйnumber of subreddit members