কে প্রতিক্রিয়া জানাতে পারে তার উপর ফর্ম নির্মাতাদের আরও নিয়ন্ত্রণ দিতে, আমরা উত্তরদাতাদের জন্য দানাদার নিয়ন্ত্রণ প্রবর্তন করছি। 31 জানুয়ারী, 2026-এর পরে API দিয়ে তৈরি করা ফর্মগুলি ডিফল্টরূপে একটি অপ্রকাশিত অবস্থায় থাকবে। আরও জানতে,
Google ফর্মগুলিতে API পরিবর্তনগুলি দেখুন।
ওভারভিউ
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
Google Forms API হল একটি RESTful ইন্টারফেস যা আপনাকে ফর্ম এবং কুইজগুলি তৈরি এবং সংশোধন করতে, ফর্মের প্রতিক্রিয়া এবং কুইজ গ্রেডগুলি পুনরুদ্ধার করতে, স্বয়ংক্রিয় প্রতিক্রিয়া সহ কুইজের উত্তর কী সেট আপ করতে এবং পুশ বিজ্ঞপ্তিগুলি পেতে দেয়৷ এই API এর সবচেয়ে সাধারণ ব্যবহারগুলির মধ্যে নিম্নলিখিত কাজগুলি অন্তর্ভুক্ত রয়েছে:
- একটি ফর্ম বা কুইজ তৈরি করুন
- প্রকাশ করুন এবং উত্তরদাতাদের পরিচালনা করুন
- একটি ফর্ম বা কুইজ আপডেট করুন
- একটি ফর্ম বা কুইজ থেকে প্রতিক্রিয়া পুনরুদ্ধার করুন
- ফর্ম বিষয়বস্তু এবং মেটাডেটা পড়ুন
- সেট আপ করুন এবং পুশ বিজ্ঞপ্তি গ্রহণ করুন
- নিম্নলিখিতটি ফর্ম API-এ ব্যবহৃত সাধারণ পদগুলির একটি তালিকা:
- ফর্ম
একটি Google ফর্ম ডকুমেন্ট, তৈরি এবং ড্রাইভে সংরক্ষিত। প্রতিটি ফর্ম একটি Form
রিসোর্স দ্বারা প্রতিনিধিত্ব করা হয় এবং একটি অনন্য formId
মান রয়েছে, যার মধ্যে অক্ষর, সংখ্যা, হাইফেন বা আন্ডারস্কোর রয়েছে। আপনি একটি Google ফর্ম URL-এ ফর্ম আইডি খুঁজে পেতে পারেন:
https://docs.google.com/forms/d/FORM_ID/edit
- কুইজ
একটি নির্দিষ্ট ধরনের Google Forms নথি যা একটি উত্তর কী-এর বিপরীতে ফর্মের প্রতিক্রিয়াগুলির গ্রেডিংয়ের অনুমতি দেয়৷ একটি ক্যুইজ শুধুমাত্র batchUpdate()
পদ্ধতি ব্যবহার করে তৈরি করা যেতে পারে একটি বিদ্যমান ফর্মের isQuiz
সেটিংসটিকে true
আপডেট করতে।
- গ্রেডিং
- একটি পয়েন্ট মান, উত্তর কী, এবং একটি প্রশ্নের জন্য প্রতিক্রিয়া, যখন
isQuiz
true
হয় তখন প্রয়োগ করা হয়। Grading
সম্পদ দ্বারা প্রতিনিধিত্ব. - প্রতিক্রিয়া
-
Feedback
সংস্থান দ্বারা প্রতিনিধিত্ব করা একটি কুইজে একটি প্রশ্নের উত্তর দেওয়ার সময় শেষ ব্যবহারকারীকে দেওয়া একটি প্রতিক্রিয়া।
- আইটেম
একটি ফর্মের একটি একক উপাদান, আইটেম সংস্থান দ্বারা প্রতিনিধিত্ব করা হয়৷ Item
একটি পুনরাবৃত্তি উপাদান যা একটি বিভাগ, প্রশ্ন গ্রুপ, প্রশ্ন, পাঠ্য, চিত্র, বা ভিডিও থাকতে পারে।
- প্রশ্ন
ফর্মে একটি একক প্রশ্ন, Question
সংস্থান দ্বারা প্রতিনিধিত্ব করা হয়।
- প্রশ্ন গ্রুপ
প্রশ্নগুলির একটি গ্রুপ যা সকলেই সম্ভাব্য উত্তরগুলির একই সেট ভাগ করে (উদাহরণস্বরূপ, 1 থেকে 5 রেটিংগুলির একটি গ্রিড)। QuestionGroupItem
রিসোর্স দ্বারা প্রতিনিধিত্ব করা হয়।
- ধারা
একটি বিভাগ হল একটি ফর্মকে একাধিক পৃষ্ঠায় বিভক্ত করার এবং শর্তযুক্ত যুক্তি যোগ করার একটি উপায় (যেমন ব্যবহারকারী কীভাবে উত্তর দেয় তার উপর ভিত্তি করে শুধুমাত্র নির্দিষ্ট প্রশ্নগুলি দেখানো)। বিভাগগুলি PageBreakItem
সম্পদের সাথে মিলে যায়৷
- উত্তর
একটি প্রশ্নের শেষ ব্যবহারকারীর উত্তর, Answer
সংস্থান দ্বারা প্রতিনিধিত্ব করা হয়। উভয় গ্রেড তথ্য (যদি উপস্থিত থাকে), মেটাডেটা এবং উত্তরের বিষয়বস্তু অন্তর্ভুক্ত করে।
- প্রতিক্রিয়া
শেষ ব্যবহারকারীর একটি ফর্ম জমা দেওয়া, FormResponse
সংস্থান দ্বারা প্রতিনিধিত্ব করা৷
- ঘড়ি
একটি ট্রিগার যা হয় ফর্ম স্কিমা পরিবর্তনগুলির পরিবর্তনগুলিকে ট্র্যাক করে (যেমন প্রশ্নগুলির সম্পাদনা) বা প্রতিক্রিয়া জমা দেওয়া ফর্ম এবং একটি পরিবর্তন ঘটলে একটি পুশ বিজ্ঞপ্তি পাঠায়৷ Watch
রিসোর্স দ্বারা প্রতিনিধিত্ব.
ফর্ম এবং ক্যুইজগুলি পরিচালনা করার সময়, বিভিন্ন ক্ষেত্রগুলি কীভাবে নির্দিষ্ট করতে হয় তা বোঝা জটিল হতে পারে, কারণ অনেকগুলি ফর্ম অবজেক্ট একাধিক উপায়ে একে অপরের ভিতরে নেস্ট করা যেতে পারে। একটি ফর্ম ম্যাপের ভিজ্যুয়াল রিপ্রেজেন্টেশন কীভাবে ক্ষেত্রগুলিতে ম্যাপ করে তা দেখতে, আমরা আপনার অ্যাপ্লিকেশন তৈরি করতে পারে এমন ফর্মগুলির কয়েকটি উদাহরণ তৈরি করতে UI ব্যবহার করার পরামর্শ দিই৷ তারপর forms.get()
পদ্ধতি ব্যবহার করে সংশ্লিষ্ট JSON পুনরুদ্ধার করুন যাতে আপনি তুলনা করতে পারেন। উদাহরণস্বরূপ, এই উদাহরণের কুইজটি নিম্নলিখিত JSON-এর সাথে মিলে যায়:
{
"formId": "FORM_ID",
"info": {
"title": "Famous Black Women",
"description": "Please complete this quiz based off of this week's readings for class.",
"documentTitle": "API Example Quiz"
},
"settings": {
"quizSettings": {
"isQuiz": true
}
},
"revisionId": "00000021",
"responderUri": "https://docs.google.com/forms/d/e/1FAIpQLSd0iBLPh4suZoGW938EU1WIxzObQv_jXto0nT2U8HH2KsI5dg/viewform",
"items": [
{
"itemId": "5d9f9786",
"imageItem": {
"image": {
"contentUri": "DIRECT_URL",
"properties": {
"alignment": "LEFT"
}
}
}
},
{
"itemId": "72b30353",
"title": "Which African American woman authored \"I Know Why the Caged Bird Sings\"?",
"questionItem": {
"question": {
"questionId": "25405d4e",
"required": true,
"grading": {
"pointValue": 2,
"correctAnswers": {
"answers": [
{
"value": "Maya Angelou"
}
]
}
},
"choiceQuestion": {
"type": "RADIO",
"options": [
{
"value": "Maya Angelou"
},
{
"value": "bell hooks"
},
{
"value": "Alice Walker"
},
{
"value": "Roxane Gay"
}
]
}
}
}
},
{
"itemId": "0a4859c8",
"title": "Who was the first Dominican-American woman elected to state office?",
"questionItem": {
"question": {
"questionId": "37fff47a",
"grading": {
"pointValue": 2,
"correctAnswers": {
"answers": [
{
"value": "Grace Diaz"
}
]
}
},
"choiceQuestion": {
"type": "RADIO",
"options": [
{
"value": "Rosa Clemente"
},
{
"value": "Grace Diaz"
},
{
"value": "Juana Matias"
},
{
"value": "Sabrina Matos"
}
]
}
}
}
}
],
"publishSettings" : {
"isPublished": true,
"isAcceptingResponses": true
}
}
পরবর্তী পদক্ষেপ
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-08-29 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-08-29 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],["The Google Forms API facilitates creating, modifying, and retrieving data from forms and quizzes. Key actions include creating and updating forms/quizzes, retrieving responses, reading form content/metadata, and setting up push notifications. Quizzes can include grading, answer keys, and feedback. Forms consist of *Items*, like *Questions*, *Question Groups*, and *Sections*. User input is stored as *Answers* in *Responses*. *Watches* track form changes and trigger push notifications.\n"],null,["# Overview\n\nThe Google Forms API is a RESTful interface that lets you create and modify forms\nand quizzes, retrieve form responses and quiz grades, set up quiz answer keys\nwith automatic feedback, and receive push notifications. The most common uses\nof this API include the following tasks:\n\n- Create a form or quiz\n- Publish and manage responders\n- Update a form or quiz\n- Retrieve responses from a form or quiz\n- Read form content and metadata\n- Set up and receive push notifications\n\nThe following is a list of common terms used in the Forms API:\n*Form*\n\n: A Google Forms document, created and stored in Drive. Each\n form is represented by a\n [`Form`](/workspace/forms/api/reference/rest/v1/forms) resource\n and has a unique `formId` value, containing letters, numbers, hyphens, or\n underscores. You can find the form ID in a Google Forms URL:\n\n: `https://docs.google.com/forms/d/FORM_ID/edit`\n\n*Quiz*\n\n: A specific type of Google Forms document that allows for grading of the\n form responses against an answer key. A quiz can only be created by using\n the [`batchUpdate()`](/workspace/forms/api/reference/rest/v1/forms/batchUpdate)\n method to update the `isQuiz` setting on an existing form to `true`.\n\n *Grading*\n : A point value, answer key, and feedback for a question, applied when\n `isQuiz` is `true`. Represented by the\n [`Grading`](/workspace/forms/api/reference/rest/v1/forms#grading) resource.\n\n *Feedback*\n : A response given to the end user when responding to a question on a quiz,\n represented by the [`Feedback`](/workspace/forms/api/reference/rest/v1/Feedback)\n resource.\n\n*Item*\n\n: A single element in a form, represented by the\n [Item](/workspace/forms/api/reference/rest/v1/forms#item) resource. `Item` is a\n repeating element which can contain a section, question group, question,\n text, image, or video.\n\n*Question*\n\n: A single question on the form, represented by the\n [`Question`](/workspace/forms/api/reference/rest/v1/forms#question) resource.\n\n*Question group*\n\n: A group of questions that all share the same set of possible answers (for\n example, a grid of ratings from 1 to 5). Represented by the\n [`QuestionGroupItem`](/workspace/forms/api/reference/rest/v1/forms#questiongroupitem)\n resource.\n\n*Section*\n\n: A section is a way to break up a form into multiple pages and add\n conditional logic (such as only showing certain questions based on how the\n user answers). Sections correspond to the\n [`PageBreakItem`](/workspace/forms/api/reference/rest/v1/forms#PageBreakItem)\n resource.\n\n*Answer*\n\n: The end user's answer to a question, represented by the\n [`Answer`](/workspace/forms/api/reference/rest/v1/forms.responses#Answer)\n resource. Includes both grade information (if present), metadata, and the\n content of the answer.\n\n*Response*\n\n: The end user's submission of a form, represented by the\n [`FormResponse`](/workspace/forms/api/reference/rest/v1/forms.responses)\n resource.\n\n*Watch*\n\n: A trigger that tracks changes to either form schema changes (such as edits\n to questions) or form response submissions and sends a push notification when\n a change occurs. Represented by the\n [`Watch`](/workspace/forms/api/reference/rest/v1/forms.watches) resource.\n\nForm structure\n--------------\n\nWhen managing forms and quizzes, understanding how to specify different fields\ncan be complicated, given that many of the form objects can be nested inside\neach other in multiple ways. To see how the visual representation of a form\nmaps to the fields, we recommend using the UI to create a few examples of\nforms your application might generate. Then retrieve the corresponding JSON\nusing the\n[`forms.get()`](/workspace/forms/api/reference/rest/v1/forms/get) method\nso you can compare. For example,\n[this example quiz](https://docs.google.com/forms/d/e/1FAIpQLSd0iBLPh4suZoGW938EU1WIxzObQv_jXto0nT2U8HH2KsI5dg/viewform)\ncorresponds to the following JSON: \n\n {\n \"formId\": \"FORM_ID\",\n \"info\": {\n \"title\": \"Famous Black Women\",\n \"description\": \"Please complete this quiz based off of this week's readings for class.\",\n \"documentTitle\": \"API Example Quiz\"\n },\n \"settings\": {\n \"quizSettings\": {\n \"isQuiz\": true\n }\n },\n \"revisionId\": \"00000021\",\n \"responderUri\": \"https://docs.google.com/forms/d/e/1FAIpQLSd0iBLPh4suZoGW938EU1WIxzObQv_jXto0nT2U8HH2KsI5dg/viewform\",\n \"items\": [\n {\n \"itemId\": \"5d9f9786\",\n \"imageItem\": {\n \"image\": {\n \"contentUri\": \"DIRECT_URL\",\n \"properties\": {\n \"alignment\": \"LEFT\"\n }\n }\n }\n },\n {\n \"itemId\": \"72b30353\",\n \"title\": \"Which African American woman authored \\\"I Know Why the Caged Bird Sings\\\"?\",\n \"questionItem\": {\n \"question\": {\n \"questionId\": \"25405d4e\",\n \"required\": true,\n \"grading\": {\n \"pointValue\": 2,\n \"correctAnswers\": {\n \"answers\": [\n {\n \"value\": \"Maya Angelou\"\n }\n ]\n }\n },\n \"choiceQuestion\": {\n \"type\": \"RADIO\",\n \"options\": [\n {\n \"value\": \"Maya Angelou\"\n },\n {\n \"value\": \"bell hooks\"\n },\n {\n \"value\": \"Alice Walker\"\n },\n {\n \"value\": \"Roxane Gay\"\n }\n ]\n }\n }\n }\n },\n {\n \"itemId\": \"0a4859c8\",\n \"title\": \"Who was the first Dominican-American woman elected to state office?\",\n \"questionItem\": {\n \"question\": {\n \"questionId\": \"37fff47a\",\n \"grading\": {\n \"pointValue\": 2,\n \"correctAnswers\": {\n \"answers\": [\n {\n \"value\": \"Grace Diaz\"\n }\n ]\n }\n },\n \"choiceQuestion\": {\n \"type\": \"RADIO\",\n \"options\": [\n {\n \"value\": \"Rosa Clemente\"\n },\n {\n \"value\": \"Grace Diaz\"\n },\n {\n \"value\": \"Juana Matias\"\n },\n {\n \"value\": \"Sabrina Matos\"\n }\n ]\n }\n }\n }\n }\n ],\n \"publishSettings\" : {\n \"isPublished\": true,\n \"isAcceptingResponses\": true\n }\n }\n\nNext steps\n----------\n\n- To learn about developing with Google Workspace APIs, including handling authentication and authorization, refer to [Get started as a Workspace developer](/workspace/guides/getstarted-overview).\n- To learn how to configure and run a basic Forms API app, read the [Quickstarts overview](/workspace/forms/api/guides/quickstarts-overview)."]]