1

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.

1 Answer 1

2

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 /questions/{ids} route.

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.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .