AI Summary Only API
Overview
It is possible to fetch only the AI summary, inside or outside your project.
To do so, use the following endpoint:
- For AI summary only inside your project
https://api.talkwalker.com/api/v1/search/p/<project_id>/summary?access_token=<access_token>
- For AI summary only outside any project
https://api.talkwalker.com/api/v1/search/summary?access_token=<access_token>&q=query
note
This endpoint is used when only the AI summaries are needed, without any associated results. To retrieve the AI summaries along with the related results, you should use the following API endpoints:
Parameters
parameter | description | required? | default value |
---|---|---|---|
access_token | a read/write token specified in the API application | required | |
q | The query to search for | only in case of outside project request |
Example
Get the AI Summary for results containing the word cats
.
Command
'https://api.talkwalker.com/api/v1/search/summary?access_token=demo&q=cats'
Response
{
"status_code": "0",
"status_message": "OK",
"request": "GET /api/v1/search/summary?access_token=demo&q=cats",
"summary": {
"summary": "The texts discuss various topics related to cats, such as their affectionate nature, their tendency to form close bonds with each other, and their ability to provide comfort during difficult times. Some posts highlight the importance of adopting pets instead of shopping for them or reveal unexpected allergies that people may have to certain animals. Additionally, there are stories about how pets can bring joy and companionship into our lives despite challenges like wildfires."
}
}