Douyin Content Guide Valid Dates
https://api.sandbase.ai/v1/api/douyin/index/content-valid-dateReturns the valid date ranges supported by the Douyin content guide index. Helps clients determine allowable date intervals before requesting trend and guide statistics.
- Cena
- $0.001USD / wywołanie
- Metoda
- POST
- Odpowiedź
- JSON
- Parametry
- 0 wymaganych · 0 opcjonalnych
Playground
[
{
"data": {
"day": "20260818",
"earliest_week": "20260524",
"month": "20260731",
"week": "20260816"
}
}
]Przykłady
Wybierz przykład, aby wczytać jego dane wejściowe i wynik do playgroundu.
README API
Douyin Content Guide Valid Dates API
Returns the latest valid dates for the Douyin content guide index. It needs no input. The response gives one date for day, week and month data, plus the earliest week available.
Use cases
- Set the maximum selectable date in a date picker for a Douyin content guide dashboard.
- Check the latest
day,weekormonthvalue before you request content trend data. - Limit weekly queries to the range between
earliest_weekandweek. - Pick the most recent valid date for a scheduled report job.
Request
curl -X POST "https://api.sandbase.ai/v1/api/douyin/index/content-valid-date" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
The result is returned in outputs[0].data.
Example response
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"day": "20261101",
"earliest_week": "20260809",
"month": "20261031",
"week": "20261101"
}
Response fields
| Field | Meaning |
|---|---|
day | Latest valid date for daily data, as a YYYYMMDD string. |
week | Latest valid date for weekly data, as a YYYYMMDD string. |
earliest_week | Earliest valid date for weekly data. Use it as the lower bound of a weekly range. |
month | Latest valid date for monthly data, as a YYYYMMDD string. The value in the example is the last day of a month. |
Notes
- Send an empty JSON object
{}. The API has no request parameters. - All dates are strings in
YYYYMMDDformat. - Only the weekly data has an earliest date in this response. The response shows no earliest date for
dayormonth. - For valid dates of other Douyin Index data types, call Douyin Index Valid Dates.
Pricing
$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Zacznij tworzyć
Wyślij pierwsze żądanie
Punkt końcowy API platformy z jednolitym uwierzytelnianiem i śledzeniem użycia.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/index/content-valid-date" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'2. Uwierzytelnianie
Ustaw klucz API SandBase w środowisku serwera. Żądania używają uwierzytelniania Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Przechowuj klucz na serwerze. Nie ujawniaj go w kodzie przeglądarkowym.
3. Parametry
Nie opublikowano schematu parametrów dla tego API.
4. Odpowiedź
Zapisany przykładowy response dla tego API; podczas wyświetlania nie jest wykonywane żadne żądanie na żywo.
[
{
"data": {
"day": "20260818",
"earliest_week": "20260524",
"month": "20260731",
"week": "20260816"
}
}
]Odkryj więcej
Powiązane APIs
| API | Cena | Odpowiedź |
|---|---|---|
Douyin | $0.001 za wywołanie | JSON |
Douyin | $0.001 za wywołanie | JSON |
Douyin | $0.001 za wywołanie | JSON |
Douyin | $0.001 za wywołanie | JSON |
Douyin | $0.001 za wywołanie | JSON |
Douyin | $0.001 za wywołanie | JSON |
Przewodniki:Best Douyin API in 2026: Pricing Compared
Pytania
FAQ
Jak używać API Douyin Content Guide Valid Dates?
Wyślij żądanie POST do https://api.sandbase.ai/v1/api/douyin/index/content-valid-date z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.
Ile kosztuje API Douyin Content Guide Valid Dates?
$0.001 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.
Jakie parametry przyjmuje API Douyin Content Guide Valid Dates?
Douyin Content Guide Valid Dates nie przyjmuje żadnych parametrów wejściowych; wyślij pustą treść JSON.
Co zwraca API Douyin Content Guide Valid Dates?
Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.
Czy potrzebuję konta deweloperskiego Douyin lub klucza API?
Nie. Douyin Content Guide Valid Dates działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API Douyin.
