Toutiao Web Keyword Search
Searches Toutiao web articles by keyword. Use it to discover relevant articles for topic research, media monitoring, or source collection.
/v1/toutiao/search_v2
$0.10
- Price
- $0.10 per successful call, Failed calls are free
- Endpoint ID
toutiao.search_v2
Parameters
-
keywordstring RequiredSearch keyword or query.
Example
咖啡
Code samples
curl -G "https://api.mofa-ai.com/v1/toutiao/search_v2" \
-H "Authorization: Bearer $MOFA_API_KEY" \
--data-urlencode 'keyword=咖啡'
import os
import requests
resp = requests.get(
"https://api.mofa-ai.com/v1/toutiao/search_v2",
headers={"Authorization": f"Bearer {os.environ['MOFA_API_KEY']}"},
params={
"keyword": "咖啡",
},
timeout=60,
)
body = resp.json()
if body["success"]:
print(body["cost_usd"], body["data"])
else:
print(body["error"], body["message"])
const url = new URL("https://api.mofa-ai.com/v1/toutiao/search_v2");
url.search = new URLSearchParams({
keyword: "咖啡",
});
const resp = await fetch(url, {
headers: { Authorization: `Bearer ${process.env.MOFA_API_KEY}` },
});
const body = await resp.json();
if (body.success) console.log(body.cost_usd, body.data);
else console.error(body.error, body.message);
Example response
There is no example response for this endpoint yet.
Try it
Sign in to call this endpoint from this page. Successful calls are billed to your balance, failed calls are free, and new accounts get $0.50 of trial credit.
More Toutiao endpoints
-
Article Details
$0.02Retrieves details for a Toutiao article identified by its article ID. Use it to look up a known article for content review, archiving, or related media analy…
/v1/toutiao/get_article_detail_v1
-
Video Details
$0.02Retrieves details for a Toutiao video identified by its video ID. Use it to look up a known video for content review, archiving, or related media analysis.
/v1/toutiao/get_video_detail_v1
-
User Profile
$0.02Retrieves a Toutiao user profile identified by user ID. Use it to look up a known account for creator research, profile review, or related article analysis.
/v1/toutiao/get_user_detail_v1
-
User ID
$0.02Resolves the user ID associated with a Toutiao profile URL. Use it to convert a known profile link into the identifier required for subsequent user-profile l…
/v1/toutiao/get_user_id_v1