AnswerThePublic

App · 8 actions

Research what people search for around a keyword and pull AnswerThePublic's reports into your work.

Actions

ActionWhat it does
Ask AI about a searchAsk ChatGPT or Gemini one of a search's prompts, or your own question about its results.
Create searchResearch a keyword on one source or all of them.
Get accountGet your workspace, plan and how many searches and reads are left.
Get AI answerGet the answer to a question asked with Ask AI about a search, once it is ready.
Get reportGet a finished search's keywords with their volume, cost per click, intent and sentiment, filtered and sorted as you choose.
Get searchGet one source's search and its suggestions, or check whether it has finished.
List AI promptsList the AI prompts of a ChatGPT or Gemini search.
List searchesList one page of your workspace's searches, most recently updated first.

Ask ChatGPT or Gemini one of a search's prompts, or your own question about its results. Uses plan credits.

Inputs

SearchreporttextRequired
The search's ID (parent_search_id), or one source's search ID.
Prompt IDai_prompt_idtext
A prompt's ID from List AI prompts. Give this or a question.
Questionquestiontext
Your own question about the search's results. Give this or a prompt ID.

Outputs

dataobject
The response from AnswerThePublic.
Example output
{
  "data": {
    "data": {
      "task_id": "c0ffee00-1234-4abc-9def-000000000003"
    },
    "message": "OK"
  }
}

Research a keyword on one source or all of them. Uses a search credit unless the same search ran in the last 24 hours.

Inputs

KeywordkeywordtextRequired
The word or phrase to research.
LanguagelanguagetextRequired
A two-letter language code, such as en, es or pt.
RegionregiontextRequired
A two-letter region code, such as us, gb or de.
Sourceprovidertext
Search only this source. Leave empty to search them all.One of: gweb (Google), youtube, bing, amazon, tiktok, instagram, chatgpt, gemini.

Outputs

dataobject
The response from AnswerThePublic.
Example output
{
  "data": {
    "data": {
      "created_at": "2026-11-20T10:00:00Z",
      "keyword": "marketing automation",
      "language": "en",
      "parent_search_id": "4b0f8e4e-8f5c-4f6e-9d55-2f0c7d1b9a11",
      "region": "us",
      "searches": [
        {
          "id": "9c3e1f2a-7b6d-4c5e-8f9a-0b1c2d3e4f5a",
          "provider": "gweb",
          "status": "completed"
        }
      ],
      "status": "completed",
      "updated_at": "2026-11-20T10:02:30Z",
      "workspace_id": "a2f1c3d4-5e6f-4a7b-8c9d-0e1f2a3b4c5d"
    },
    "message": "Created"
  }
}

Get account

Get your workspace, plan and how many searches and reads are left.

Inputs

None.

Outputs

dataobject
The response from AnswerThePublic.
Example output
{
  "data": {
    "data": {
      "api_version": "beta",
      "plan_slug": "business-month-4",
      "quota": {
        "reads": {
          "limit": 2000,
          "period": "day",
          "remaining": 1988,
          "resets_at": "2026-11-21T00:00:00Z",
          "used": 12
        },
        "searches": {
          "limit": 200,
          "period": "cycle",
          "remaining": 150,
          "resets_at": "2026-12-01T00:00:00Z"
        }
      },
      "token": {
        "created_at": "2026-11-20T09:00:00Z",
        "expires_at": "2027-11-20T00:00:00Z",
        "id": "7e8f9a0b-0000-4000-8000-000000000002",
        "name": "Lodol",
        "prefix": "atp_pk_live_a1b2c3",
        "scopes": [
          "searches:read",
          "reports:read"
        ]
      },
      "user": {
        "email": "you@example.com",
        "first_name": "Ada",
        "id": "1d2c3b4a-0000-4000-8000-000000000001",
        "last_name": "Lovelace"
      },
      "workspace": {
        "atp_tier": "t2",
        "id": "a2f1c3d4-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
        "name": "Acme",
        "slug": "acme"
      }
    },
    "message": "OK"
  }
}

Get AI answer

Get the answer to a question asked with Ask AI about a search, once it is ready. An answer can be collected only once.

Inputs

SearchreporttextRequired
The search's ID (parent_search_id), or one source's search ID.
Task IDtask_idtextRequired
The task ID that Ask AI about a search returned.

Outputs

dataobject
The response from AnswerThePublic.
Example output
{
  "data": {
    "data": {
      "ai_answer": {},
      "status": "completed"
    },
    "message": "OK"
  }
}

Get report

Get a finished search's keywords with their volume, cost per click, intent and sentiment, filtered and sorted as you choose.

Inputs

SearchreporttextRequired
The search's ID (parent_search_id), or one source's search ID.
Sourcesproviderslist
Only these sources. Leave empty for all.One or more of: gweb (Google), youtube, bing, amazon, tiktok, instagram, chatgpt, gemini.
Groupedgroupedtrue/false
On to group keywords by source and category as the dashboard does, off for one flat list.
Source bucketsource_nametext
Only one bucket, such as questions, prepositions, comparisons or alphabeticals.
Categorycategorytext
Only one category, such as a question word like how or why.
Keyword containssearch_stringtext
Only keywords containing this.
Intentsintentslist
Only keywords with these intents, such as informational.
Sentimentssentimentslist
Only keywords with these sentiments, such as positive.
Only newonly_newtrue/false
On for only keywords that weren't in the search's previous results.
Minimum volumerange_start_volumenumber
Only keywords searched at least this often a month.
Maximum volumerange_end_volumenumber
Only keywords searched at most this often a month.
Minimum cost per clickrange_start_costnumber
Only keywords costing at least this per click.
Maximum cost per clickrange_end_costnumber
Only keywords costing at most this per click.
Sort bysort_bytext
The field to sort by, such as volume, cost_per_click or keyword.
Ordersort_ordertext
Highest or lowest first.One of: desc (Highest first), asc (Lowest first).
Pagepagenumber
Which page to read, starting at 1.From 1 to 1000.
Page sizeper_pagenumber
How many keywords a page holds, up to 500. AnswerThePublic's default is 100.From 1 to 500.

Outputs

dataobject
The response from AnswerThePublic.
Example output
{
  "data": {
    "data": {
      "results": {
        "withheld_by_modifier": [
          {
            "count": 4,
            "modifier_name": "how",
            "source_name": "questions"
          }
        ],
        "withheld_results_count": 4
      }
    },
    "message": "OK"
  }
}

Get one source's search and its suggestions, or check whether it has finished.

Inputs

Search IDsearchtextRequired
One source's search ID, from a search's searches list.
Pagepagenumber
Which page to read, starting at 1.From 1 to 1000.
Page sizeper_pagenumber
How many suggestions a page holds, up to 500. AnswerThePublic's default is 100.From 1 to 500.

Outputs

dataobject
The response from AnswerThePublic.
Example output
{
  "data": {
    "data": {
      "search": {
        "created_at": "2026-11-20T10:00:00Z",
        "id": "9c3e1f2a-7b6d-4c5e-8f9a-0b1c2d3e4f5a",
        "keyword": "marketing automation",
        "language": "en",
        "parent_search_id": "4b0f8e4e-8f5c-4f6e-9d55-2f0c7d1b9a11",
        "provider": "gweb",
        "region": "us",
        "slug": "marketing-automation",
        "updated_at": "2026-11-20T10:02:30Z",
        "workspace_id": "a2f1c3d4-5e6f-4a7b-8c9d-0e1f2a3b4c5d"
      },
      "snapshot": {
        "results": {
          "withheld_by_modifier": [
            {
              "count": 4,
              "modifier_name": "how",
              "source_name": "questions"
            }
          ],
          "withheld_results_count": 4
        }
      },
      "status": "completed"
    },
    "message": "OK"
  }
}

List AI prompts

List the AI prompts of a ChatGPT or Gemini search. The first call for a search writes them and uses plan credits.

Inputs

SearchreporttextRequired
The search's ID (parent_search_id), or one source's search ID.
Pagepagenumber
Which page to read, starting at 1.From 1 to 1000.
Intentsintentslist
Only prompts with these intents, such as informational.

Outputs

dataobject
The response from AnswerThePublic.
Example output
{
  "data": {
    "data": {
      "page_info": {
        "next_page": 2,
        "page": 1,
        "per_page": 10,
        "total_pages": 3
      },
      "prompts": [
        {}
      ],
      "withheld_results_count": 0
    },
    "message": "OK"
  }
}

List searches

List one page of your workspace's searches, most recently updated first.

Inputs

Regionregiontext
A two-letter region code, such as us, gb or de.
Languagelanguagetext
A two-letter language code, such as en, es or pt.
Sourceprovidertext
Only searches that ran on this source.One of: gweb (Google), youtube, bing, amazon, tiktok, instagram, chatgpt, gemini.
Keyword containsqtext
Only searches whose keyword matches this.
Alphabetical ordersort_bytext
Sort by keyword instead of by last update.One of: asc (A to Z), desc (Z to A).
Pagepagenumber
Which page to read, starting at 1.From 1 to 1000.
Page sizeper_pagenumber
How many searches a page holds, up to 500. AnswerThePublic's default is 10.From 1 to 500.

Outputs

dataobject
The response from AnswerThePublic.
Example output
{
  "data": {
    "data": {
      "pagination": {
        "count": 42,
        "limit": 10,
        "next": 2,
        "page": 1,
        "pages": 5
      },
      "parent_searches": [
        {
          "created_at": "2026-11-20T10:00:00Z",
          "keyword": "marketing automation",
          "language": "en",
          "parent_search_id": "4b0f8e4e-8f5c-4f6e-9d55-2f0c7d1b9a11",
          "region": "us",
          "searches": [
            {
              "id": "9c3e1f2a-7b6d-4c5e-8f9a-0b1c2d3e4f5a",
              "provider": "gweb",
              "status": "completed"
            }
          ],
          "status": "completed",
          "updated_at": "2026-11-20T10:02:30Z",
          "workspace_id": "a2f1c3d4-5e6f-4a7b-8c9d-0e1f2a3b4c5d"
        }
      ]
    },
    "message": "OK"
  }
}

On this page