Stack Exchange Network
Stack Exchange network consists of 181 Q&A communities including
Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchange
Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. It only takes a minute to sign up.
Sign up to join this community
Anybody can ask a question
The best answers are voted up and rise to the top
10 years, 4 months ago
I was wondering if there is a feature in the API that I could use to retrieve various features of a question on the Stack Exchange network when I know the actual URL of the question.
Nov 11, 2012 at 23:48
113 2 2 bronze badges
The API allows you to
get question data based on ID, so since all forms of question URLs for Stack Exchange sites have an ID in them, you can pull that value out and pass it to the
Likewise, if you don't know the specific site in advance, you can pull out the hostname and
pass that in dynamically.
As an example, I parse out similar information in a
userscript I maintain.
Nov 12, 2012 at 0:25
Tim Stone ♦ Tim Stone
4,696 3 3 gold badges 21 21 silver badges 32 32 bronze badges
log in to answer this question.
Not the answer you're looking for? Browse other questions tagged
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our
Accept all cookies
Necessary cookies only