Google Keyword Competition Info Script
Broad competition
Exact competition
AllInURL
AllInTitle
AllInAnchor
AllInText
It's a pain typing that for each word, so I wrote a script that pulls the info all at once.
Written in ASP and needs the Microsoft.XMLHTTP object, so this will only work on Windows Servers.
Feel free to use, distribute, modify or whatever. Works for me but I make no guarantees.
Ask questions here if you have any. If I can help, I will.
Results Screen Shot
Attachment 4127
Script
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>Google Keyword Competition Stats </TITLE>
<style type="text/css">
body {font: normal 12pt arial}
</style>
<!--
If would be nice if you left in the below, but if you get some sort of savage glee by deleting it, then have at it.
Script by Dave, AKA Wedango on the WarriorForum
ASP blog: http://retrowebdev.blogspot.com/
He also does web sites and stuff: Webdango.com
-->
</HEAD>
<BODY>
Enter Your Keyword
<br><br>
<FORM METHOD=POST ACTION="goog-stats.asp">
<INPUT TYPE="text" NAME="keyword">
<INPUT TYPE="submit">
</FORM>
<%
Dim strKeyword
strKeyword = ""
strKeyword = Trim(Request.form("keyword"))
If strKeyword <> "" Then
Dim objXMLHTTP, strURL, iBroadComp, iExactComp, iAllInURL, iAllInTitle, iAllInAnchor
Set objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP")
Response.write("Results for <b>"&strKeyword&"</b><br><br>")
'broad competition
Response.write("Broad Competition: "& fKeywordStats("broad",strKeyword) &"<br>")
'exact competition
Response.write("Exact Competition: "& fKeywordStats("exact",strKeyword) &"<br>")
'allintitle
Response.write("All In Title: "& fKeywordStats("allintitle",strKeyword) &"<br>")
'allinurl
Response.write("All In URL: "& fKeywordStats("allinurl",strKeyword) &"<br>")
'allinanchor
Response.write("All In Anchor: "& fKeywordStats("allinanchor",strKeyword) &"<br>")
'allincontent
Response.write("All In Text: "& fKeywordStats("allintext",strKeyword) &"<br><br>")
Set objXMLHTTP = nothing
End If
%>
<%
Function fKeywordStats(TheType, TheKeyword)
Dim strURL, strHTML, vStart, vEnd, vLength
vStart = 0
vEnd = 0
vLength = 0
Select Case TheType
Case "broad"
strURL = "http://www.google.com/search?hl=en&q="&strKeyword&""
Case "exact"
strURL = "http://www.google.com/search?hl=en&q="""&strKeyword&""""
Case "allinurl"
strURL = "http://www.google.com/search?hl=en&q=allinurl%3A"&strKeyword&""
Case "allintitle"
strURL = "http://www.google.com/search?hl=en&q=allintitle%3A"&strKeyword&""
Case "allinanchor"
strURL = "http://www.google.com/search?hl=en&q=allinanchor%3A"&strKeyword&""
Case "allintext"
strURL = "http://www.google.com/search?hl=en&q=allintext%3A"&strKeyword&""
End Select
objXMLHTTP.Open "GET", strURL, false
objXMLHTTP.Send
strHTML = objXMLHTTP.responseText
vStart = Instr(strHTML,"</b> of about <b>") + 17
vEnd = Instr(strHTML,"</b> for <b>")
vLength = vEnd - vStart
If vStart > 17 then
strHTML = Mid(strHTML,vStart,vLength)
Else
strHTML = "no results"
End If
fKeywordStats = strHTML
End Function
%>
</BODY>
</HTML>
Get the exact methods I use in my No Joke Guides:
How to Build Income Earning Websites
Search Psychology and Keyword Brainstorming
How to Find a Profitable Niche
Read more tips at my NoJokeGuide blog
Get the exact methods I use in my No Joke Guides:
How to Build Income Earning Websites
Search Psychology and Keyword Brainstorming
How to Find a Profitable Niche
Read more tips at my NoJokeGuide blog