threads_search_locations
Search for Threads-supported locations by keyword or coordinates to obtain location IDs for tagging posts.
Instructions
Search Threads-supported locations by keyword or coordinates. Returns a list of location objects (id, name, address, city, country, latitude, longitude, postal_code) whose id can be passed as location_id to the four threads_publish_* tools to tag a post. Either q or both latitude+longitude must be provided. Requires the threads_location_tagging permission; without app approval, the endpoint restricts results to the literal query 'Menlo Park' for testing.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "threads_search_locations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Search query (e.g., 'Menlo Park'). Either q or both latitude+longitude must be provided. If your app does not yet have the threads_location_tagging permission, the API restricts results to the literal query 'Menlo Park' for testing. | |
| latitude | No | Latitude in decimal degrees (-90..90). Must be provided together with longitude. | |
| longitude | No | Longitude in decimal degrees (-180..180). Must be provided together with latitude. |