Social media5 min readBy Purrkey teamUpdated

How to look up Facebook Pages and profiles by name

Look up each brand name in Facebook's quick search and return a short identity table with name, ID, URL, profile image and verified status

On this page

You have 12 brand names from a partner list and need to confirm which map to Facebook Pages before outreach. Run each name through anyapi.facebook.page_lookup and turn the matches into a short identity table. No run has been executed for this article, so the worksheet below is a design, not a result

The deliverable is one row per brand name with the query, returned name, Facebook id, URL, profile image and verified flag. Add found and reason beside each row in your working copy so an empty search has a place to land

Task and worksheet design

Example input: query set to plumber chicago. Replace it with a name from your list. The 12 names in the agent prompt are invented examples as well

Values here are placeholders showing the shape

querynameidurlimageisVerified
plumber chicago(display name)(numeric string)(Facebook URL)(signed image URL)true or false

The result list can mix Pages and personal profiles. A row with a personal profile is not a Page row, even when the display name looks close to the brand. Use the name and url together before you assign follow-up

Input fields and the seven-match cap

query is required. Put the name in as you would type it into Facebook's search box. An example query is plumber chicago; for a partner list, the query comes from the brand or profile name being checked

limit is optional. It accepts 1 to 7 and defaults to 7. Facebook's quick search answers a name with at most 7 matches, so limit cannot exceed 7. That cap belongs to the tool, not a setting you can raise. Keep the first pass at 7 unless you have a reason to ask for fewer

Agents call it through POST /v1/runs with toolId anyapi.facebook.page_lookup. The tool id is anyapi.facebook.page_lookup

Read the output fields

found says whether the call produced a result. When it is false, reason is not_found; the contract calls a found: false answer a successful call, not an error. When it is true, data.items holds the matches in Facebook's order

Each item carries the fields that drive the worksheet:

  • name: display name of the Page or profile
  • id: numeric Facebook id as a string
  • url: Facebook URL of the Page or profile
  • image: profile picture URL. Facebook signs it in the query string, so it works only as returned and expires
  • isVerified: whether Facebook shows the verified badge on this Page or profile

The tool returns basic identity fields only. It cannot return category, followers, phone or website

A verified badge is a signal about the account, not a match to your partner list by itself. Sort ambiguous rows by name and url, keep the id for deduplication, and do not store the signed image URL as a permanent asset

The agent prompt

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to look up 12
brand names with anyapi.facebook.page_lookup. Check the current inputs
and price of anyapi.facebook.page_lookup before running anything. Call
the tool once per name with query set to the name as typed into
Facebook's search box and limit set to 7. Return a table with query,
found, name, id, url, image, isVerified and reason. Leave the identity
fields empty when found is false. Do not guess matches.

Example names, replace with your partner list:
Acme Plumbing
Bluebird Bakery
Cedar Dental Studio
Dovetail Legal
Elm Street Cycles
Fable Print Shop
Granite Fitness
Harbor Pet Care
Indigo Bookstore
Juniper Landscaping
Kestrel Coffee
Lumen Optics

The prompt asks the agent to check the current inputs and price first because the contract can change. It also asks for a table, not a prose report. Swap the example names for your 12 partner names before the run

Estimated tool cost

Prices from the Purrkey catalog, read November 13, 2026. The catalog lists the unit as max_call, which means Maximum per call. Successful runs settle at the actual AnyAPI charge. The totals below are ceilings, not settled charges

StepFormulaUnit pricePlanned quantityTotal
Single-name lookupcalls x max price$0.06315 per call1$0.06315
Twelve-name listcalls x max price$0.06315 per call12$0.7578

The twelve-name plan assumes one call per brand name. A found: false answer is still a successful call in the contract's terms. Model fees for the agent are not counted

Run the first name

Open Facebook page lookup and run one example name before you send the full partner list. Use plumber chicago as the first query if you want to see the table shape

Get started by giving this to your agent

  • Claude Code
  • Codex
  • Gemini CLI
  • Cursor
  • GitHub Copilot
Set up https://purrkey.app/SKILL.md, then use Purrkey to show me what I can do with Facebook.
Explore Facebook tools and pricing

FAQ

How do I look up a Facebook Page by name?

Run the name through anyapi.facebook.page_lookup as the query value. The result lists matches in Facebook's order with name, id, url, image and isVerified.

What inputs does anyapi.facebook.page_lookup take?

query is required and should be the name as typed into Facebook's search box. limit is optional, accepts 1 to 7, and defaults to 7.

How many matches can a Facebook name lookup return?

Facebook's quick search answers a name with at most 7 matches, so limit cannot exceed 7.

What does the output include?

The output has found, data.items and, when nothing is found, reason. Each item has name, id, url, image and isVerified.

Can the lookup return personal profiles as well as Pages?

Yes. The contract says matches can include personal profiles as well as Pages.

What happens when no match is found?

found is false and reason is not_found; the contract calls this a successful call, not an error.

How much does it cost to look up 12 brand names?

At most $0.7578 at the listed ceiling of $0.06315 per call for 12 calls. The single-name lookup is at most $0.06315.

Next step

Try this with Facebook

The tool directory lists every endpoint with its current price. Inspect the inputs there, then let your agent run a small batch before scaling up.

See Facebook tools

Share this article