{"uid":"cap_T0Ep6CvpfAjQ9sZ9dIy7X","slug":"facebook-location-id-resolver-256ea76f","name":"Facebook Location ID Resolver","description":"Resolve a place name (city, region, or country) to Facebook location IDs.","url":"https://x402.apidirect.io/v1/facebook/locations?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["query"],"properties":{"query":{"type":"string","maxLength":500,"description":"Place name to resolve, e.g. \"London\" or \"Paris, France\" (max 500 characters)"}}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_4He8YiqpXztgX4GjW_kYN","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Resolves a place name (city, region, or country) to Facebook location IDs for use in Facebook targeting and search.","exampleAgentPrompt":"Can you resolve 'London' to its Facebook location ID so I can use it for ad targeting?","exampleUseCases":[{"title":"Facebook Ad Campaign Location Targeting","prompt":"I'm setting up a Facebook ad campaign and need the Facebook location IDs for Berlin, Munich, and Hamburg — can you look those up for me?"},{"title":"Geo-targeted Event Promotion Setup","prompt":"I want to promote a Facebook event in the Paris, France area — can you find the Facebook location ID for Paris so I can use it in the event settings?"},{"title":"Multi-country Social Media Research","prompt":"I need the Facebook location IDs for Brazil, Argentina, and Chile for a social media analysis project — can you resolve those country names for me?"}],"resultDescription":"Returns Facebook location IDs corresponding to the queried place name, enabling use in Facebook advertising targeting, event creation, group management, or social media automation workflows.","failureModes":["Place name not recognized or too ambiguous — returns empty or no results","Misspelled or non-existent place name — returns no matching location IDs","Rate limiting or payment failure — HTTP 402 or 429 error","Query string exceeds 500 character limit — validation error","Ambiguous place name with multiple matches — may return multiple location IDs requiring disambiguation"],"whenToPreferThis":"Use this endpoint when you need to translate human-readable place names into Facebook-specific location IDs for use in Facebook ad targeting, event creation, or social media automation. Prefer this over manual lookup when building automated pipelines that need to programmatically resolve geographic names to Facebook's internal location codes.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T19:07:37.042Z","isFirstParty":false,"canonicalSlug":"facebook-location-id-resolver-256ea76f"}