Look Up Polymarket Slug
curl --request GET \
--url https://api.entityml.com/api/v1/lookup/slugimport requests
url = "https://api.entityml.com/api/v1/lookup/slug"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.entityml.com/api/v1/lookup/slug', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.entityml.com/api/v1/lookup/slug",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.entityml.com/api/v1/lookup/slug"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.entityml.com/api/v1/lookup/slug")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.entityml.com/api/v1/lookup/slug")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"success": true,
"type": "<string>",
"event_title": "<string>",
"markets": [
{
"conditionId": "<string>",
"question": "<string>",
"slug": "<string>",
"active": true,
"closed": true
}
]
}Utilities
Look Up Polymarket Slug
Resolve a Polymarket event slug, market slug, or full Polymarket URL into one or more condition IDs.
GET
/
api
/
v1
/
lookup
/
slug
Look Up Polymarket Slug
curl --request GET \
--url https://api.entityml.com/api/v1/lookup/slugimport requests
url = "https://api.entityml.com/api/v1/lookup/slug"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.entityml.com/api/v1/lookup/slug', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.entityml.com/api/v1/lookup/slug",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.entityml.com/api/v1/lookup/slug"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.entityml.com/api/v1/lookup/slug")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.entityml.com/api/v1/lookup/slug")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"success": true,
"type": "<string>",
"event_title": "<string>",
"markets": [
{
"conditionId": "<string>",
"question": "<string>",
"slug": "<string>",
"active": true,
"closed": true
}
]
}Request
No authentication is required. The alias
GET /api/v1/polymarket/lookup/slug is also available.Query Parameters
string
required
A Polymarket event slug, market slug, or full Polymarket URL. Full URLs are normalized automatically.
Response
boolean
true when a matching event or market is found.string
Match type:
event when the slug resolves to an event with multiple markets, or market when it resolves to a single market.string
Event title or market question returned by the upstream Polymarket lookup.
array
Example
curl "https://api.entityml.com/api/v1/lookup/slug?slug=will-bitcoin-reach-100k"
curl "https://api.entityml.com/api/v1/lookup/slug?slug=https://polymarket.com/event/will-bitcoin-reach-100k"
import requests
response = requests.get(
"https://api.entityml.com/api/v1/lookup/slug",
params={"slug": "will-bitcoin-reach-100k"},
timeout=30,
)
print(response.json())
Example response
{
"success": true,
"type": "event",
"event_title": "Will Bitcoin reach $100k?",
"markets": [
{
"conditionId": "0x1234abcd",
"question": "Will Bitcoin reach $100k by end of 2026?",
"slug": "will-bitcoin-reach-100k",
"active": true,
"closed": false
}
]
}