PPC and SEO Rank Tracking API Documentation (v1)
Add and manage keywords programmatically to our weekly SEO and PPC rank tracking platform for Google and Bing.
Get list of groups by name
query Parameters
listName | string Name of group list |
api_key | string User's secret key |
Responses
OK
InternalServerError
Request samples
- cURL
- JS
- C#
- PHP
curl "https://www.spyfu.com/apis/weeklytracking_api/get_groups?api_key=SECRET_KEY"
Response samples
- 200
- {
- "domainId": "-8280301796433908807",
- "domainName": "spyfu.com",
- "listId": "2af68ab7-2f6b-47de-9659-52ab0d0a4fef",
- "listName": "BoomBam",
- "listType": "PPC"
Get list of groups by domain
query Parameters
domainName required | string Domain query |
api_key | string User's secret key |
Responses
OK
InternalServerError
Request samples
- cURL
- JS
- C#
- PHP
curl "https://www.spyfu.com/apis/weeklytracking_api/get_groups_by_domain?domainName=spyfu.com&api_key=SECRET_KEY"
Response samples
- 200
- {
- "domainId": "-8280301796433908807",
- "domainName": "spyfu.com",
- "listId": "2af68ab7-2f6b-47de-9659-52ab0d0a4fef",
- "listName": "BoomBam",
- "listType": "PPC"
Get list of terms by list ID
query Parameters
listId required | string List ID |
api_key | string User's secret key |
Responses
OK
InternalServerError
Request samples
- cURL
- JS
- C#
- PHP
curl "https://www.spyfu.com/apis/weeklytracking_api/get_terms?listId=LIST_GUID&api_key=SECRET_KEY"
Response samples
- 200
- {
- "bing_Ad_History_Overview": -2147483648,
- "bing_Ad_Position": -2147483648,
- "bing_Ad_Position_Change": -2147483648,
- "bing_Extracted_Hour": 2017031923,
- "bing_Organic_History_Overview": -2147483648,
- "bing_Organic_Position": -2147483648,
- "bing_Organic_Position_Change": -2147483648,
- "bing_Search_Date_Id": 20170319,
- "google_Ad_History_Overview": -2147483648,
- "google_Ad_Position": -2147483648,
- "google_Ad_Position_Change": -2147483648,
- "google_Extracted_Hour": 2017032103,
- "google_Organic_History_Overview": 99099,
- "google_Organic_Position": 1,
- "google_Organic_Position_Change": 0,
- "google_Search_Date_Id": 20170319,
- "keyword": "keyword groupie",
- "last_Checked_Bing": "3/19/2017 11:00:00 PM",
- "last_Checked_Google": "3/21/2017 3:00:00 AM",
- "term_Id": 25564552
Add terms to group
query Parameters
groupName required | string Name of group |
domainName required | string Domain query |
isSeo required | string Flag for organic tracking |
isPpc required | string Flag for paid tracking |
keywordCsv required | string 64-base encoded comma separated keywords to add |
api_key | string User's secret key |
Responses
OK
InternalServerError
Request samples
- cURL
- JS
- C#
- PHP
curl "https://www.spyfu.com/apis/weeklytracking_api/add_terms?groupName=slippers&domainName=spyfu.com&isSeo=true&isPpc=false&keywordCsv=YnVubnkgc2xpcHBlcnMsZnV6enkgYnVubnkgc2xpcHBlcnMsZmx1ZmZ5IGJ1bm55IHNsaXBwZXJz&api_key=SECRET_KEY"
Response samples
- 200
Delete term from group
query Parameters
domainId required | string Domain ID |
termId required | string Term ID |
listId required | string List ID |
api_key | string User's secret key |
Responses
OK
InternalServerError
Request samples
- cURL
- JS
- C#
- PHP
curl "https://www.spyfu.com/apis/weeklytracking_api/delete_term?domainId=-8280301796433908807&termId=2300426&listId=LIST_GUID&api_key=SECRET_KEY"
Response samples
- 200
Delete group list
query Parameters
domainId required | string Domain ID |
listId required | string List ID |
isSeo required | boolean Flag for organic vs paid terms |
api_key | string User's secret key |
Responses
OK
InternalServerError
Request samples
- cURL
- JS
- C#
- PHP
curl "https://www.spyfu.com/apis/weeklytracking_api/delete_group?domainId=-8280301796433908807&listId=LIST_GUID&isSeo=true&api_key=SECRET_KEY"
Response samples
- 200
Get term metrics
query Parameters
isSeo required | string Flag for organic vs paid terms |
domainId required | string Domain ID |
termId required | string Term ID |
api_key | string User's secret key |
Responses
OK
InternalServerError
Request samples
- cURL
- JS
- C#
- PHP
curl "https://www.spyfu.com/apis/weeklytracking_api/get_term_data?isSeo=true&domainId=-8280301796433908807&termId=2300426&api_key=SECRET_KEY"
Response samples
- 200
- "keyword": null,
- "keywords": [
- {
- "ad_Url": null,
- "body": null,
- "extracted_Hour": null,
- "position": 0,
- "search_Date_Id": 0,
- "search_Engine": null,
- "title": null
- "last_Checked_Bing": null,
- "last_Checked_Google": null,
- "termId": 0,
- "message": null,
- "success": true,
- "redirect_url": null,
- "resultCount": 0