Экспорт ключевых слов для поискового запроса (export_keywords_csv)
export_keywords_csv
Экспорт ключевых слов для поискового запроса
http://api.serpstat.com/v3/export_keywords_csv?query=example&token=XXX&se=XXX
Ключевая фраза | Кол-во запросов | Стоимость | Конкуренция в PPC, % | Найдено результатов | Кол-во запросов (шир. соотв.) | region_queries_count_phrase | Спецэлементы в выдаче | Географические идентификаторы | social_domains | Правильное написание | Keyword length | lang | difficulty |
tatoo girl | 320 | 0 | 1 | 1020000000 | 0 | 0 | video | amazon,vimeo,wikipedia,pinterest,twitter,vk,instagram,facebook | 2 | 5.97 | |||
tatoos on hand | 40 | 0 | 0 | 44200000 | 0 | 0 | yelp, |
tattoos on hand | 3 | en | 0.6 | ||
10 | 0 | 0 | 57300000 | 0 | 0 | pinterest, |
tattoo words | 2 | en | 42.72 | |||
star wars |
10 | 0 | 0 | 21500000 | 0 | 0 | pinterest, |
star wars tattoo | 3 | en | 13.44 | ||
10 | 0 | 0 | 3320000 | 0 | 0 | facebook |
tattoo kit | 2 | en | ||||
tony moly 7days tatoo eyebrow купить киев | 30 | 0.02361 | 99 | 51 | 0 | 0 | related_search,local_pack,pic | киев | pinterest,facebook | 7 | 0.01 | ||
10 | 0 | 0 | 26800 | 0 | 0 | pic | 3 | 0.01 | |||||
tatoo vilnius | 10 | 0 | 0 | 431000 | 0 | 0 | map_local | facebook, |
tattoo |
2 | lt | 0.01 | |
fenix |
10 | 0 | 0 | 701000 | 0 | 0 | tripadvisor,instagram,yelp,pinterest,twitter,vk,youtube,linkedin,tumblr,foursquare,facebook | fenix tattoo | 2 | en | 1.28 | ||
tatoo remover | 10 | 0 | 28 | 403000 | 0 | 0 | yelp, |
tattoo remover | 2 | en | |||
tatoo рисунки | 10 | 0 | 0 | 0 | 0 | 0 | 2 | ||||||
nipple |
10 | 0 | 0 | 857000 | 0 | 0 | pinterest,youtube, |
nipple tattoo | 2 | en | |||
hand |
10 | 0 | 0 | 11400000 | 0 | 0 | hand tattoos for women | 4 | en | ||||
женские tatoo | 1 | 0 | 0 | 0 | 0 | 0 | 2 | ||||||
3d |
20 | 0 | 4 | 18800000 | 58 | 0 | reddit,yelp,pinterest,vimeo,vk,youtube,facebook | 3d tattoo | 2 | en | |||
10 | 0 | 0 | 69900000 | 0 | 0 | tattoo hand | 2 | en | |||||
10 | 0 | 0 | 1260000 | 0 | 0 | tattoo symbols | 2 | en | |||||
10 | 0 | 0 | 7640000 | 0 | 0 | pinterest, |
tattoo machine | 2 | de | ||||
chiara |
10 | 0 | 0 | 277000 | 0 | 0 | instagram, |
chiara |
3 | it | |||
10 | 0 | 0 | 698000 | 0 | 0 | instagram,yelp, |
tattoo scorpion | 2 | en | 19.52 | |||
10 | 0 | 0 | 7640000 | 0 | 0 | pinterest, |
tattoo machine | 2 | en | ||||
gold |
10 | 0 | 0 | 56000000 | 0 | 0 | gold tattoo | 2 | en | ||||
10 | 0 | 0 | 6080000 | 73 | 0 | map |
instagram,yelp,pinterest,wikipedia,twitter,vk,youtube,linkedin,tumblr,amazon,foursquare,facebook,vimeo | tattoo world | 2 | en | |||
10 | 0 | 71 | 55500000 | 0 | 0 | map_local | pinterest,yelp,facebook, |
2 | en | 52.9 | |||
snake |
10 | 0 | 0 | 1160000 | 0 | 0 | snake tattoo | 2 | en | ||||
10 | 0 | 0 | 44100000 | 0 | 0 | tattoo in hand | 3 | en | |||||
prison |
10 | 0 | 0 | 2020000 | 0 | 0 | tumblr,youtube,amazon, |
prison tattoo | 2 | en | |||
imagens tatoo pantera negra | 1 | 0 | 0 | 59 | 0 | 0 | video | foursquare |
4 | 0.01 |
import codecs
import json
import pprint
import urllib.request as urlrequest
from urllib.parse import urlencode
host = 'http://api.serpstat.com/v3'
method = 'export_keywords_csv'
params = {
'query': 'buy%20laptop',
'se': 'g_us',
'token': 'ijmiom4f5m34905g03um8342dm04923lre3w'}
api_url = "{host}/{method}?{params}".format(
host=host,
method=method,
params=urlencode(params, safe=',')
)
try:
csv_data = urlrequest.urlopen(api_url).read()
except Exception as e0:
print("API request error: {error}".format(error=e0))
codecs.open('csv_data.csv', mode='w', encoding='utf8').write(csv_data.decode('utf8'))