MCPcopy
hub / github.com/TheCraigHewitt/seomachine / _post

Method _post

data_sources/modules/dataforseo.py:43–48  ·  view source on GitHub ↗

Make POST request to DataForSEO API

(self, endpoint: str, data: List[Dict])

Source from the content-addressed store, hash-verified

41 self.session.headers.update(self.headers)
42
43 def _post(self, endpoint: str, data: List[Dict]) -> Dict:
44 """Make POST request to DataForSEO API"""
45 url = f"{self.base_url}{endpoint}"
46 response = self.session.post(url, json=data)
47 response.raise_for_status()
48 return response.json()
49
50 def _first_task(self, response: Dict[str, Any]) -> Optional[Dict[str, Any]]:
51 tasks = response.get("tasks")

Callers 7

get_rankingsMethod · 0.95
get_serp_dataMethod · 0.95
analyze_competitorMethod · 0.95
get_keyword_ideasMethod · 0.95
get_questionsMethod · 0.95
get_domain_metricsMethod · 0.95
check_ranking_historyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected