Use when the user wants new versus lost external backlinks/inbound links or referring domains over time for one target and date range.
Resources
1Install
npx skillscat add finpeakinc/frevana-skills/backlinks-timeseries-new-lost-summary Install via the SkillsCat registry.
Backlinks Timeseries New Lost Summary
Call Frevana's /service/backlinks/timeseries-new-lost-summary endpoint and return the Backlinks API response unchanged.
Purpose
This skill is for new versus lost backlinks or referring domains over time for one target and date range.
Required input:
target
Output:
- validated response JSON from Frevana/Backlinks provider
This skill validates that the response is JSON and returns it unchanged. Do not rewrite or reshape the returned data unless the user explicitly asks for a transformation.
What This Skill Needs
FREVANA_TOKENin the environment variables, or an explicit--tokenoverride for the current runcurlbashpython3
Execution Order
- Confirm the user has provided the required input.
- Prefer the bundled script over ad hoc
curlcommands. - Let the script read
FREVANA_TOKENfirst. - In interactive shell usage, if
FREVANA_TOKENis missing, the script may prompt for it. - In non-interactive or agent workflows, fail fast if the token is missing and tell the user to set
FREVANA_TOKENor pass--tokenexplicitly. - Return the validated response JSON, or summarize it only if the user asks for a summary.
- The script saves the JSON response to
./out/by default.
Command
bash <skill-path>/scripts/get_backlinks_timeseries_new_lost_summary.sh --target frevana.com --date-from 2026-06-01 --date-to 2026-07-01Save response JSON to a specific file
bash <skill-path>/scripts/get_backlinks_timeseries_new_lost_summary.sh --target frevana.com --date-from 2026-06-01 --date-to 2026-07-01 \
--output ./out/backlinks-timeseries-new-lost-summary-result.jsonRequest Shape
Frevana endpoint:
POST /service/backlinks/timeseries-new-lost-summarySupported request fields for this API:
target, date_from, date_to, group_range, include_subdomains, tag
The script only sends fields supported by this API. Do not pass unsupported fields. Do not pass API keys, output paths, or request metadata in the payload; Frevana handles server-side details.
Response Shape
The API returns JSON. This skill validates the response as JSON and returns it unchanged.
Output
- Success: the script validates that the response body is JSON and prints it to stdout
- Default file path:
./out/backlinks-timeseries-new-lost-summary-<UTC timestamp>-<pid>.json - With
--output: the same JSON is written to the specified file path instead - Failure: the script prints the response body or parsing error and exits non-zero
Notes
- Do not echo the Bearer token back to the user
- Use
--filters-json,--backlinks-filters-json,--custom-mode-json,--targets-json, or--exclude-targets-jsonfor structured values --targets,--exclude-targets, and--order-byaccept comma-separated values- Boolean options accept
true,false,1,0,yes,no,on, oroff