Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8306347
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T18:18:49+00:00 2026-06-08T18:18:49+00:00

After SQL API was deprecated searching solution to migrate from SQL API https://www.google.com/fusiontables/api/query?sql= to

  • 0

After SQL API was deprecated searching solution to migrate from SQL API
https://www.google.com/fusiontables/api/query?sql= to https://www.googleapis.com/fusiontables/v1/query?sql= like here

I got:

var URLHead = 'https://www.google.com/fusiontables/api/query?sql='
var URLTable = encodeURI('SELECT id,COUNT() FROM TABLE_ID')
var URLTail = '&access_token='+ TOKEN +'&jsonCallback=?'
var queryURL = URLHead + URLTable + URLTail
var jqxhr = $.get(queryURL, myFT.TABLE, "jsonp")

this.myFT.TABLE = function (DATA) {
  var counter = parseInt(DATA.table.rows[0].toString().substr(1))
  alert(counter )
}

I need:

var URLHead = 'https://www.googleapis.com/fusiontables/v1/query?sql='
var URLTable = encodeURI('SELECT id,COUNT() FROM TABLE_ID')
var URLTail = '&access_token='+ TOKEN +'&jsonCallback=?'
var queryURL = URLHead + URLTable + URLTail
var jqxhr = $.get(queryURL, myFT.TABLE, "jsonp")

this.myFT.TABLE = function (DATA) {
  var counter = parseInt(DATA.table.rows[0].toString().substr(1))
  alert(counter )
}

Looks like it’s not so easy to migrate from SQL API to /fusiontables/v1/ for me.

EDIT:
1. Try to change the jsonCallback to callback – not helped!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T18:18:50+00:00Added an answer on June 8, 2026 at 6:18 pm

    Finaly! Found pure and simple solution by replacing jQuery examp. with google-api-javascript-client

    Don’t forget to add into head tag
    <script src="https://apis.google.com/js/client.js?onload=load"></script>

    myTable1 = new FT('table1_id')
    myTable1.run('SELECT * FROM ', myTable1, ' ORDER BY id ASC ')
    
    function FT(table_id)
    {
      this.counter = 0
      this.table = table_id
      //
      gapi.client.setApiKey('Api_Key')
      //
      this.run = function (q, cls, order)
      {
        gapi.client.load('fusiontables', 'v1', function(){
          var request = gapi.client.fusiontables.query.sqlGet({'sql': q + cls.table + order});
          request.execute(function(DATA){cls.exec(DATA)});
        });
      }
      //
      this.exec = function (DATA)
      { 
        alert(DATA.result.rows.length)
      }
    }
    

    EDIT:

    Or simply just like in first example above change this
    var URLTable = encodeURI('SELECT id,COUNT() FROM TABLE_ID')
    to this
    var URLTable = encodeURI('SELECT COUNT() FROM TABLE_ID')

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Anyone knows why my sql query doesn't work after using a try catch function?
I hace sql query through this i want to calculate the records after 05:00:00
I recently followed this tutorial on Google Cloud SQL and GWT: http://code.google.com/apis/sql/docs/developers_guide_java.html I deployed
I have some records after SQL generating: YEARS MONTHS SUMMONTH SUMQUARTER QTR ----- ------
I'm creating a trigger in SQL Server after INSERT, UPDATE and DELETE. Is there
What is the difference between INSTEAD OF and AFTER trigger in SQL Server? INSTEAD
After running the following SQL statements, you will see that, MySQL has automatically created
Shortly after I installed MS SQL Server 2008 on my machine, I forgot the
I tried to install sql server 2005.After the installation i want to open sql
After having a period of logshipping failures going unnoticed (due to a stopped SQL

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.