Take the 2-minute tour ×
Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. It's 100% free, no registration required.

I am trying to retrieve list of c# questions using http://api.stackoverflow.com/1.0/questions?title=true&tagged="c#".

But I get JSON response related to c questions.

Response :

{
  "total": 24404,
  "page": 1,
  "pagesize": 30,
  "questions": [
    {
      "tags": [
        "c",
        "math",
        "float",
        "modulo",
        "interval"
      ],
      "answer_count": 4,
      "favorite_count": 0,
      "question_timeline_url": "/questions/4633177/timeline",
      "question_comments_url": "/questions/4633177/comments",
      "question_answers_url": "/questions/4633177/answers",
      "question_id": 4633177,
      "owner": {
        "user_id": 435129,
        "user_type": "registered",
        "display_name": "Ohmu",
        "reputation": 601,
        "email_hash": "05cfeb4116c85cbe70cd3003ee0e092c"
      },
      "creation_date": 1294476894,
      "last_edit_date": 1294491196,
      "last_activity_date": 1294491196,
      "up_vote_count": 0,
      "down_vote_count": 0,
      "view_count": 31,
      "score": 0,
      "community_owned": false,
      "title": "C: How to wrap a float to the interval [-pi, pi)"
    },
....

well if I try it for vb.net [http://api.stackoverflow.com/1.0/questions?title=true&tagged="vb.net"] I get the right response.

I don't know what's wrong with the query string? Can some one point me in a right direction.

Thanks.

share|improve this question
add comment

1 Answer 1

up vote 7 down vote accepted

You need to encode the # character (to %23)

http://api.stackoverflow.com/1.0/questions?title=true&tagged=c%23

share|improve this answer
1  
Maybe we should make an HTML entity chart so this is avoided in the future. –  Nathan Osman Jan 8 '11 at 18:19
    
Thanks a lot : ) –  Searock Jan 9 '11 at 2:38
add comment

You must log in to answer this question.

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